~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-ia64/resource.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _ASM_IA64_RESOURCE_H
  2 #define _ASM_IA64_RESOURCE_H
  3 
  4 /*
  5  * Resource limits
  6  *
  7  * Copyright (C) 1998, 1999 Hewlett-Packard Co
  8  * Copyright (C) 1998, 1999 David Mosberger-Tang <davidm@hpl.hp.com>
  9  */
 10 
 11 #define RLIMIT_CPU      0               /* CPU time in ms */
 12 #define RLIMIT_FSIZE    1               /* Maximum filesize */
 13 #define RLIMIT_DATA     2               /* max data size */
 14 #define RLIMIT_STACK    3               /* max stack size */
 15 #define RLIMIT_CORE     4               /* max core file size */
 16 #define RLIMIT_RSS      5               /* max resident set size */
 17 #define RLIMIT_NPROC    6               /* max number of processes */
 18 #define RLIMIT_NOFILE   7               /* max number of open files */
 19 #define RLIMIT_MEMLOCK  8               /* max locked-in-memory address space */
 20 #define RLIMIT_AS       9               /* address space limit */
 21 #define RLIMIT_LOCKS    10              /* maximum file locks held */
 22 
 23 #define RLIM_NLIMITS    11
 24 
 25 /*
 26  * SuS says limits have to be unsigned.
 27  * Which makes a ton more sense anyway.
 28  */
 29 #define RLIM_INFINITY  (~0UL)
 30 
 31 # ifdef __KERNEL__
 32 
 33 #define INIT_RLIMITS                                    \
 34 {                                                       \
 35         { RLIM_INFINITY, RLIM_INFINITY },               \
 36         { RLIM_INFINITY, RLIM_INFINITY },               \
 37         { RLIM_INFINITY, RLIM_INFINITY },               \
 38         {      _STK_LIM, RLIM_INFINITY },               \
 39         {             0, RLIM_INFINITY },               \
 40         { RLIM_INFINITY, RLIM_INFINITY },               \
 41         {             0,             0 },               \
 42         {      INR_OPEN,     INR_OPEN  },               \
 43         { RLIM_INFINITY, RLIM_INFINITY },               \
 44         { RLIM_INFINITY, RLIM_INFINITY },               \
 45         { RLIM_INFINITY, RLIM_INFINITY },               \
 46 }
 47 
 48 # endif /* __KERNEL__ */
 49 
 50 #endif /* _ASM_IA64_RESOURCE_H */
 51 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.