root/include/asm-sparc/resource.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /* $Id: resource.h,v 1.5 1995/11/25 02:32:35 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 RLIM_NLIMITS    9
  24 
  25 #ifdef __KERNEL__
  26 
  27 #define INIT_RLIMITS                                                    \
  28 {                                                                       \
  29     {LONG_MAX, LONG_MAX}, {LONG_MAX, LONG_MAX},                         \
  30     {LONG_MAX, LONG_MAX}, {_STK_LIM, _STK_LIM},                         \
  31     {       0, LONG_MAX}, {LONG_MAX, LONG_MAX},                         \
  32     {MAX_TASKS_PER_USER, MAX_TASKS_PER_USER}, {NR_OPEN, NR_OPEN},       \
  33     {LONG_MAX, LONG_MAX},                                               \
  34 }
  35 
  36 #endif /* __KERNEL__ */
  37 
  38 #endif /* !(_SPARC_RESOURCE_H) */

/* [previous][next][first][last][top][bottom][index][help] */