01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ULIMIT ( 2) ULIMIT (2)<br />

NAME ulimit - get and set user limits<br />

SYNOPSIS<br />

long ulimit (cmd, newlimit}<br />

int cmd;<br />

long newlimit;<br />

DESCRIPTION<br />

This function provides for control over process limits. The cmd<br />

values available are:<br />

1 Get the process's file size limit. The limit is in units of 512byte<br />

blocks and is inherited by child processes. Files of any<br />

size can be read.<br />

2 Set the process's file size limit to the value of newlimit . Any<br />

process may decrease this limit, but only a process with an<br />

effective user ID of super-user may increase the limit. Ulimit<br />

will fail and the limit will be unchanged if a process with an<br />

effective user ID other than super-user attempts to increase<br />

its file size limit. [EPERMJ<br />

3 Get the maximum possible break value. See brk (2).<br />

RETURN VALUE<br />

Upon successful completion, a non-negative value is returned.<br />

Otherwise, a value of - 1 is returned and errno is set to indicate<br />

the error.<br />

SEE ALSO<br />

brk(2), write(2).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!