The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/include/asm-alpha/resource.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #ifndef _ALPHA_RESOURCE_H
    2 #define _ALPHA_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_NOFILE   6               /* max number of open files */
   15 #define RLIMIT_AS       7               /* address space limit(?) */
   16 #define RLIMIT_NPROC    8               /* max number of processes */
   17 #define RLIMIT_MEMLOCK  9               /* max locked-in-memory address space */
   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.  Fine, it's unsigned, but
   24  * we retain the old value for compatibility, especially with DU. 
   25  * When you run into the 2^63 barrier, you call me.
   26  */
   27 #define RLIM_INFINITY   0x7ffffffffffffffful
   28 
   29 #ifdef __KERNEL__
   30 
   31 #define INIT_RLIMITS                                                    \
   32 {                                                                       \
   33     {LONG_MAX, LONG_MAX},                       /* RLIMIT_CPU */        \
   34     {LONG_MAX, LONG_MAX},                       /* RLIMIT_FSIZE */      \
   35     {LONG_MAX, LONG_MAX},                       /* RLIMIT_DATA */       \
   36     {_STK_LIM, LONG_MAX},                       /* RLIMIT_STACK */      \
   37     {       0, LONG_MAX},                       /* RLIMIT_CORE */       \
   38     {LONG_MAX, LONG_MAX},                       /* RLIMIT_RSS */        \
   39     {INR_OPEN, INR_OPEN},                       /* RLIMIT_NOFILE */     \
   40     {LONG_MAX, LONG_MAX},                       /* RLIMIT_AS */         \
   41     {LONG_MAX, LONG_MAX},                       /* RLIMIT_NPROC */      \
   42     {LONG_MAX, LONG_MAX},                       /* RLIMIT_MEMLOCK */    \
   43     {LONG_MAX, LONG_MAX},                       /* RLIMIT_LOCKS */      \
   44 }
   45 
   46 #endif /* __KERNEL__ */
   47 
   48 #endif /* _ALPHA_RESOURCE_H */

Cache object: 8570d42863bace806836ba17a7ef4c6f


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.