resource.h 770 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * resource.h: Resource definitions.
  4. *
  5. * Copyright (C) 1995,1996 David S. Miller ([email protected])
  6. */
  7. #ifndef _SPARC_RESOURCE_H
  8. #define _SPARC_RESOURCE_H
  9. /*
  10. * These two resource limit IDs have a Sparc/Linux-specific ordering,
  11. * the rest comes from the generic header:
  12. */
  13. #define RLIMIT_NOFILE 6 /* max number of open files */
  14. #define RLIMIT_NPROC 7 /* max number of processes */
  15. #if defined(__sparc__) && defined(__arch64__)
  16. /* Use generic version */
  17. #else
  18. /*
  19. * SuS says limits have to be unsigned.
  20. * We make this unsigned, but keep the
  21. * old value for compatibility:
  22. */
  23. #define RLIM_INFINITY 0x7fffffff
  24. #endif
  25. #include <asm-generic/resource.h>
  26. #endif /* !(_SPARC_RESOURCE_H) */