*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> ulimit (3)              



NAME    [Toc]    [Back]

       ulimit - get and set user limits

SYNOPSIS    [Toc]    [Back]

       #include <ulimit.h>

       long ulimit(int cmd, long newlimit);

DESCRIPTION    [Toc]    [Back]

       Warning:  This  routine is obsolete. The include file is no longer provided
 by glibc.	Use getrlimit(2), setrlimit(2) and sysconf(3) instead.
       For the shell command ulimit, see bash(1).

       The  ulimit  call  will	get or set some limit for the current process.
       The cmd argument can have one of the following values.

       UL_GETFSIZE    [Toc]    [Back]
	      Return the limit on the size of a file, in units of 512 bytes.

       UL_SETFSIZE    [Toc]    [Back]
	      Set the limit on the size of a file.

       3      (Not  implemented  for  Linux.)	Return	the  maximum  possible
	      address of the data segment.

       4      (Implemented  but  no  symbolic  constant provided.)  Return the
	      maximum number of files that the calling process can open.

RETURN VALUE    [Toc]    [Back]

       On success, ulimit returns  a  nonnegative  value.   On	error,	-1  is
       returned, and errno is set appropriately.

ERRORS    [Toc]    [Back]

       EPERM  A non-root process tried to increase a limit.

CONFORMING TO    [Toc]    [Back]


SEE ALSO    [Toc]    [Back]

       bash(1), getrlimit(2), setrlimit(2), sysconf(3)

Linux 2.0			  1998-06-12			     ULIMIT(3)
[ Back ]
 Similar pages
Name OS Title
maxuprc HP-UX limits the maximum number of concurrent user processes per user
ulimit FreeBSD get and set process limits
ulimit NetBSD get and set process limits
ulimit Tru64 Set and gets process limits
sched_get_priority_min FreeBSD get scheduling parameter limits
getrlimit Linux get/set resource limits and usage
sched_rr_get_interval FreeBSD get scheduling parameter limits
sched_get_priority_max FreeBSD get scheduling parameter limits
limits FreeBSD set or display process resource limits
quota HP-UX display disk usage and limits
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service