Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ulimit.h(3head) [sunos man page]

ulimit.h(3HEAD) 						      Headers							   ulimit.h(3HEAD)

NAME
ulimit.h, ulimit - ulimit commands SYNOPSIS
#include <ulimit.h> DESCRIPTION
The <ulimit.h> header defines the following symbolic constants used by the ulimit() function. UL_GETFSIZE Get maximum file size. UL_SETFSIZE Set maximum file size. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
ulimit(2), attributes(5), standards(5) SunOS 5.10 10 Sep 2004 ulimit.h(3HEAD)

Check Out this Related Man Page

ULIMIT(3)						   BSD Library Functions Manual 						 ULIMIT(3)

NAME
ulimit -- get and set process limits LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <ulimit.h> long ulimit(int cmd, ...); DESCRIPTION
The ulimit() function will get and set process limits. Currently this is limited to the maximum file size. The cmd argument is one of the following: UL_GETFSIZE will return the maximum file size in units of 512 blocks of the current process. UL_SETFSIZE will attempt to set the maximum file size of the current process and its children with the second argument expressed as a long. RETURN VALUES
Upon successful completion, ulimit() returns the value requested; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS
The ulimit() function will fail if: [EINVAL] The command specified was invalid. [EPERM] The limit specified to ulimit() would have raised the maximum limit value, and the caller is not the super-user. SEE ALSO
getrlimit(2) STANDARDS
The ulimit() function conforms to IEEE Std 1003.1-2001 (``POSIX.1''). HISTORY
The ulimit() function first appeared in FreeBSD 5.0. BUGS
The ulimit() function provides limited precision for setting and retrieving process limits. If there is a need for greater precision than the type long provides, the getrlimit(2) and setrlimit(2) functions should be considered. BSD
January 4, 2003 BSD
Man Page

4 More Discussions You Might Find Interesting

1. Programming

File descriptor constant

I have a requirement to close all the file descriptors from 3 to 1024 for a particular application. Right now, this is how I do it .. for ( int i = 3 ; i <= 1024; ++i ) close(i); The change I am looking at is, I want to do away with the number 1024 and replace it with a constant which... (4 Replies)
Discussion started by: vino
4 Replies

2. AIX

how to set the ulimit on AIX 5.2 version?

how to set the ulimit on AIX 5.2 version? (3 Replies)
Discussion started by: Shilpi
3 Replies

3. SCO

problem with ulimit

hi, i cant set ULIMIT for normal user (file size more than 2gb).but in root user it is working fine.in user it is giving error like "limit exceeded (priviledged user)". (2 Replies)
Discussion started by: prakrithi
2 Replies

4. UNIX for Advanced & Expert Users

Grep Command

Hi, I have encountered a problem with grep command. The max characters that grep can supported is 2048 as defined in LINE_MAX in hp-ux. I try setting $TK_GREP_LINE_MAX but this is not workable in HP-UX, anyone has experienced with setting the max characters supported by grep command. Well,... (5 Replies)
Discussion started by: dwgi32
5 Replies