ulimit(2) ulimit(2)NAME ulimit - get and set user limits SYNOPSIS long ulimit(cmd, newlimit) int cmd; long newlimit; DESCRIPTION This function provides for control over process limits. The cmd values available are: 1 Get the file size limit of the process. The limit is in units of 512-byte blocks and is inherited by child processes. Files of any size can be read. 2 Set the file size limit of the process to the value of newlimit. Any process may decrease this limit, but only a process with an effective user ID of superuser may increase the limit. 3 Get the maximum possible break value (see brk(2)). STATUS MESSAGES AND VALUES Upon successful completion, a non-negative value is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. The ulimit command will fail and the limit will be unchanged if the following is true: EPERM a process with an effective user ID other than superuser attempts to increase its file size limit. SEE ALSO brk(2), write(2) January 1992 1