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

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

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

  1 /* $Id: resource.h,v 1.4 2000/01/27 23:45:30 ralf Exp $
  2  *
  3  * This file is subject to the terms and conditions of the GNU General Public
  4  * License.  See the file "COPYING" in the main directory of this archive
  5  * for more details.
  6  *
  7  * Copyright (C) 1995, 1996, 1998 by Ralf Baechle
  8  */
  9 #ifndef _ASM_RESOURCE_H
 10 #define _ASM_RESOURCE_H
 11 
 12 /*
 13  * Resource limits
 14  */
 15 #define RLIMIT_CPU 0                    /* CPU time in ms */
 16 #define RLIMIT_FSIZE 1                  /* Maximum filesize */
 17 #define RLIMIT_DATA 2                   /* max data size */
 18 #define RLIMIT_STACK 3                  /* max stack size */
 19 #define RLIMIT_CORE 4                   /* max core file size */
 20 #define RLIMIT_NOFILE 5                 /* max number of open files */
 21 #define RLIMIT_AS 6                     /* mapped memory */
 22 #define RLIMIT_RSS 7                    /* max resident set size */
 23 #define RLIMIT_NPROC 8                  /* max number of processes */
 24 #define RLIMIT_MEMLOCK 9                /* max locked-in-memory address space */
 25 #define RLIMIT_LOCKS    10              /* maximum file locks held */
 26 
 27 #define RLIM_NLIMITS 11                 /* Number of limit flavors.  */
 28 
 29 /*
 30  * SuS says limits have to be unsigned.
 31  * Which makes a ton more sense anyway.
 32  */
 33 #define RLIM_INFINITY   0x7fffffffUL
 34 
 35 #ifdef __KERNEL__
 36 
 37 #define INIT_RLIMITS                                    \
 38 {                                                       \
 39         { RLIM_INFINITY, RLIM_INFINITY },               \
 40         { RLIM_INFINITY, RLIM_INFINITY },               \
 41         { RLIM_INFINITY, RLIM_INFINITY },               \
 42         { _STK_LIM,      RLIM_INFINITY },               \
 43         {        0,      RLIM_INFINITY },               \
 44         { INR_OPEN,      INR_OPEN      },               \
 45         { RLIM_INFINITY, RLIM_INFINITY },               \
 46         { RLIM_INFINITY, RLIM_INFINITY },               \
 47         { 0,             0             },               \
 48         { RLIM_INFINITY, RLIM_INFINITY },               \
 49         { RLIM_INFINITY, RLIM_INFINITY },               \
 50 }
 51 
 52 #endif /* __KERNEL__ */
 53 
 54 #endif /* _ASM_RESOURCE_H */
 55 

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