Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

brk(2)

setrlimit(2)

write(2V)

ULIMIT(3C)  —  COMPATIBILITY ROUTINES

NAME

ulimit − get and set user limits

SYNOPSIS

long ulimit(cmd, newlimit)
int cmd;

DESCRIPTION

This function is included for System V compatibility. 

This routine provides for control over process limits.  The cmd values available are:

1Get the process’s file size limit.  The limit is in units of 512-byte blocks and is inherited by child processes.  Files of any size can be read. 

2Set the process’s file size limit to the value of newlimit.  Any process may decrease this limit, but only a process with an effective user ID of super-user may increase the limit.  Ulimit will fail and the limit will be unchanged if a process with an effective user ID other than the super-user attempts to increase its file size limit. 

3Get the maximum possible break value.  See brk(2).

RETURN VALUE

Upon successful completion, a non-negative value is returned.  Otherwise a value of −1 is returned and errno is set to indicate the error. 

SEE ALSO

brk(2), setrlimit(2), write(2V)

Sun Release 3.2  —  Last change: 27 February 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026