resource.h 1004 B

1234567891011121314151617181920212223242526272829303132333435
  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, 99, 2000 by Ralf Baechle
  7. * Copyright (C) 1999 Silicon Graphics, Inc.
  8. */
  9. #ifndef _ASM_RESOURCE_H
  10. #define _ASM_RESOURCE_H
  11. /*
  12. * These five resource limit IDs have a MIPS/Linux-specific ordering,
  13. * the rest comes from the generic header:
  14. */
  15. #define RLIMIT_NOFILE 5 /* max number of open files */
  16. #define RLIMIT_AS 6 /* address space limit */
  17. #define RLIMIT_RSS 7 /* max resident set size */
  18. #define RLIMIT_NPROC 8 /* max number of processes */
  19. #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */
  20. /*
  21. * SuS says limits have to be unsigned.
  22. * Which makes a ton more sense anyway,
  23. * but we keep the old value on MIPS32,
  24. * for compatibility:
  25. */
  26. #ifndef __mips64
  27. # define RLIM_INFINITY 0x7fffffffUL
  28. #endif
  29. #include <asm-generic/resource.h>
  30. #endif /* _ASM_RESOURCE_H */