linux-old/include/asm-mips/resource.h
<<
>>
Prefs
   1/*
   2 * This file is subject to the terms and conditions of the GNU General Public
   3 * License.  See the file "COPYING" in the main directory of this archive
   4 * for more details.
   5 *
   6 * Copyright (C) 1995, 96, 98, 2000 by Ralf Baechle
   7 */
   8#ifndef _ASM_RESOURCE_H
   9#define _ASM_RESOURCE_H
  10
  11/*
  12 * Resource limits
  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_NOFILE 5                 /* max number of open files */
  20#define RLIMIT_AS 6                     /* mapped memory */
  21#define RLIMIT_RSS 7                    /* max resident set size */
  22#define RLIMIT_NPROC 8                  /* max number of processes */
  23#define RLIMIT_MEMLOCK 9                /* max locked-in-memory address space */
  24#define RLIMIT_LOCKS    10              /* maximum file locks held */
  25
  26#define RLIM_NLIMITS 11                 /* Number of limit flavors.  */
  27
  28#ifdef __KERNEL__
  29
  30/*
  31 * SuS says limits have to be unsigned.
  32 * Which makes a ton more sense anyway.
  33 */
  34#define RLIM_INFINITY   0x7fffffffUL
  35
  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        { INR_OPEN,      INR_OPEN      },               \
  44        { RLIM_INFINITY, RLIM_INFINITY },               \
  45        { RLIM_INFINITY, RLIM_INFINITY },               \
  46        { 0,             0             },               \
  47        { RLIM_INFINITY, RLIM_INFINITY },               \
  48        { RLIM_INFINITY, RLIM_INFINITY },               \
  49}
  50
  51#endif /* __KERNEL__ */
  52
  53#endif /* _ASM_RESOURCE_H */
  54
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.