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

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

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

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

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