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

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

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

  1 /* $Id: resource.h,v 1.12 2000/09/23 02:09:21 davem Exp $
  2  * resource.h: Resource definitions.
  3  *
  4  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  5  */
  6 
  7 #ifndef _SPARC_RESOURCE_H
  8 #define _SPARC_RESOURCE_H
  9 
 10 /*
 11  * Resource limits
 12  */
 13 
 14 #define RLIMIT_CPU      0               /* CPU time in ms */
 15 #define RLIMIT_FSIZE    1               /* Maximum filesize */
 16 #define RLIMIT_DATA     2               /* max data size */
 17 #define RLIMIT_STACK    3               /* max stack size */
 18 #define RLIMIT_CORE     4               /* max core file size */
 19 #define RLIMIT_RSS      5               /* max resident set size */
 20 #define RLIMIT_NOFILE   6               /* max number of open files */
 21 #define RLIMIT_NPROC    7               /* max number of processes */
 22 #define RLIMIT_MEMLOCK  8               /* max locked-in-memory address space */
 23 #define RLIMIT_AS       9               /* address space limit */
 24 #define RLIMIT_LOCKS    10              /* maximum file locks held */
 25 
 26 #define RLIM_NLIMITS    11
 27 
 28 /*
 29  * SuS says limits have to be unsigned.
 30  * We make this unsigned, but keep the
 31  * old value.
 32  */
 33 #define RLIM_INFINITY   0x7fffffff
 34 
 35 #ifdef __KERNEL__
 36 #define INIT_RLIMITS                    \
 37 {                                       \
 38     {RLIM_INFINITY, RLIM_INFINITY},     \
 39     {RLIM_INFINITY, RLIM_INFINITY},     \
 40     {RLIM_INFINITY, RLIM_INFINITY},     \
 41     {_STK_LIM, RLIM_INFINITY},          \
 42     {       0, RLIM_INFINITY},          \
 43     {RLIM_INFINITY, RLIM_INFINITY},     \
 44     {INR_OPEN, INR_OPEN}, {0, 0},       \
 45     {RLIM_INFINITY, RLIM_INFINITY},     \
 46     {RLIM_INFINITY, RLIM_INFINITY},     \
 47     {RLIM_INFINITY, RLIM_INFINITY}      \
 48 }
 49 
 50 #endif /* __KERNEL__ */
 51 
 52 #endif /* !(_SPARC_RESOURCE_H) */
 53 

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