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

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

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

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

~ [ 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.