home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue6 / SDL.ZIP / !gcc / include / unixlib / h / ulimit < prev    next >
Encoding:
Text File  |  2006-09-17  |  1.2 KB  |  33 lines

  1. #ifndef __ULIMIT_H
  2. #define __ULIMIT_H
  3.  
  4. #include <features.h>
  5.  
  6. /* Constants used as the first parameter for `ulimit'.  They denote limits
  7.    which can be set or retrieved using this function.  */
  8. enum
  9. {
  10.   UL_GETFSIZE = 1,                      /* Return limit on the size of a file,
  11.                                            in units of 512 bytes.  */
  12.   UL_SETFSIZE,                          /* Set limit on the size of a file to
  13.                                            second argument.  */
  14.   __UL_GETMAXBRK,                       /* Return the maximum possible address
  15.                                            of the data segment.  */
  16.   __UL_GETOPENMAX                       /* Return the maximum number of files
  17.                                            that the calling process can open.*/
  18. };
  19.  
  20. __BEGIN_DECLS
  21.  
  22. /* Function depends on first parameter.
  23.    1 = Return the limit on the size of a file, in units of 512 bytes.
  24.    2 = Set the limit on the size of a file to new limit.  Only the
  25.        super-user can increase the limit.
  26.    3 = Return the maximum possible address of the data segment.
  27.    4 = Return the maximum number of files that the calling process can open.  */
  28. extern long int ulimit (int __cmd, ...) __THROW;
  29.  
  30. __END_DECLS
  31.  
  32. #endif
  33.