Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ulimit(3C) — UTek 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

limit(1csh)

ulimit(1sh)

unlimit(1csh)

brk(2)

getrlimit(2)

sbrk(2)

setrlimit(2)

write(2)



ULIMIT(3C)              COMMAND REFERENCE              ULIMIT(3C)



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 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.

          2  Set 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
             superuser may increase the limit.  Ulimit will fail
             and the limit will be unchanged if a process with an
             effective user ID other than superuser attempts to
             increase its file size limit.  [EPERM]

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

RETURN VALUE
     Upon successful completion, a nonnegative value is returned.
     Otherwise, a value of -1 is returned and errno is set to
     indicate the error.

SEE ALSO
     limit(1csh), ulimit(1sh), unlimit(1csh), brk(2),
     getrlimit(2), sbrk(2), setrlimit(2), and write(2).




















Printed 5/12/88                                                 1





































































%%index%%
na:312,84;
sy:396,597;
de:993,1047;
rv:2040,327;
se:2367,334;
%%index%%000000000095

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