Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ulimit(2) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

brk(2)

write(2)

ULIMIT(2)

NAME

ulimit − get and set user limits

SYNOPSIS

#include <ulimit.h>

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

DESCRIPTION

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

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

UL_SETFSIZE Set the file size limit of the process to the value of the optional second argument.  Any process may decrease this limit, but only a process with an effective user ID of super-user may increase the limit.  Note that the limit must be specified in units of 512-byte blocks. 

UL_GETMAXBRK Get the maximum possible break value.  See brk(2). Depending on system resources such as swap space, this maximum may not be attainable at a given time.

ERRORS

Ulimit will fail if one or more of the following conditions is true. 

­[EINVAL] cmd is not in the correct range. 

­[EPERM] Ulimit will fail and the limit will be unchanged if a process with an effective user ID other than super-user attempts to increase its file size limit. 

RETURN VALUE

Upon successful completion, a non-negative value is returned.  Errors return a -1, with errno set appropriately. 

SEE ALSO

brk(2), write(2). 

STANDARDS CONFORMANCE

ulimit: SVID2, XPG2, XPG3

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

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