ulimit (SunOS) ulimit (SunOS)
NAME
ulimit - Sets and gets user limits
SUN OS SYNOPSIS
long ulimit (
int command,
longt new_limit
);
DIGITAL UNIX SYNOPSIS
#include <ulimit.h>
long ulimit (
int command,
off_t new_limit,
... );
PARAMETERS
Specifies the form of control. The command parameter values follow:
Returns the process file size limit. The limit is in units of 512-byte
blocks (see the sys/param.h file) and is inherited by child processes.
Files of any size can be read. Sets the process file size limit for
output operations to the value of the new_limit parameter, and returns
the new file size limit. Any process can decrease this limit, but only
a process with superuser privilege can increase the limit. Returns the
maximum possible break value (described in the brk() and sbrk() func‐
tions). Specifies the new limit. Currently, this parameter is signif‐
icant only for UL_SETFSIZE.
DIFFERENCES
Requires the ulimit.h header file. Changes the declaration of newlimit
to off_t. Changes to symbolic constants for commands; SunOS uses con‐
stants. Digital UNIX requires SEC_LIMIT system privilege to increase
the ulimit; SunOS requires that the effective UID be super_user. Digi‐
tal UNIX does not support command 4 (Get the size of the process' file
descriptor table).
RELATED INFORMATION
Digital UNIX Functions:
ulimit(3), getdtablesize(2) delim off
ulimit (SunOS)