SYNOPSIS
#include <ulimit.h>
long ulimit(int cmd, ...);
DESCRIPTION
The
- UL_GETFSIZE
-
Gets the regular 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
-
Sets the regular file size limit of the process to the value of newlimit, taken as a long. Any process can decrease this limit; however, only a process with an effective user ID of super user can increase the limit.
The
PARAMETERS
- cmd
-
Is one of the UL_ constants listed in the DESCRIPTION section.
- ...
-
Represents a long integer used with UL_SETFSIZE to specify newlimit. The limit is in units of 512-byte blocks. This parameter is not used for any other cmd value.
RETURN VALUES
If successful,
CONFORMANCE
UNIX 98.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
On the NuTCRACKER Platform, ulimit(UL_GETFSIZE) always returns LONG_MAX, and attempts to reduce the limit with ulimit(UL_SETFSIZE) are silently ignored.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
write()
PTC MKS Toolkit 10.5 Documentation Build 40.