resource.h 1.0 KB

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