Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ulimit(2) — sys5 — Apollo Domain/OS SR10.4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

brk(2)

write(2)

ULIMIT(2)                            SysV                            ULIMIT(2)



NAME
     ulimit - get and set user limits

SYNOPSIS
     #include <ulimit.h>

     long ulimit (cmd, newlimit)
     int cmd;
     long newlimit;

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

          UL_GETFSIZE
               Returns the process file size limit. The limit is in units of
               UBSIZE (512-byte) blocks (see the sys/param.h file) and is
               inherited by child processes.  Files of any size can be read.

          UL_SETFSIZE
               Sets the process file size limit for output operations to the
               value of the new_limit argument, and returns the new file size
               limit.  Any process can decrease this limit, but only a process
               with an effective user ID of super-user can increase the limit.

WARNING
     ulimit is effective in limiting the growth of regular files.  Pipes are
     currently limited to 5120 bytes.

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

ERRORS
     If the ulimit function fails, the limit remains unchanged and errno is
     set to one of the following values:

     [EPERM]   A process without appropriate system privilege attempts to
               increase the file size limit.

     [EINVAL]  The command argument is invalid.

SEE ALSO
     brk(2), write(2).

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