diff options
-rw-r--r-- | include/asm-sparc/resource.h | 6 | ||||
-rw-r--r-- | include/asm-sparc64/resource.h | 20 |
2 files changed, 6 insertions, 20 deletions
diff --git a/include/asm-sparc/resource.h b/include/asm-sparc/resource.h index 985948a41299..fe163cafb4c7 100644 --- a/include/asm-sparc/resource.h +++ b/include/asm-sparc/resource.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * resource.h: Resource definitions. | 2 | * resource.h: Resource definitions. |
3 | * | 3 | * |
4 | * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) | 4 | * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu) |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #ifndef _SPARC_RESOURCE_H | 7 | #ifndef _SPARC_RESOURCE_H |
@@ -14,12 +14,16 @@ | |||
14 | #define RLIMIT_NOFILE 6 /* max number of open files */ | 14 | #define RLIMIT_NOFILE 6 /* max number of open files */ |
15 | #define RLIMIT_NPROC 7 /* max number of processes */ | 15 | #define RLIMIT_NPROC 7 /* max number of processes */ |
16 | 16 | ||
17 | #if defined(__sparc__) && defined(__arch64__) | ||
18 | /* Use generic version */ | ||
19 | #else | ||
17 | /* | 20 | /* |
18 | * SuS says limits have to be unsigned. | 21 | * SuS says limits have to be unsigned. |
19 | * We make this unsigned, but keep the | 22 | * We make this unsigned, but keep the |
20 | * old value for compatibility: | 23 | * old value for compatibility: |
21 | */ | 24 | */ |
22 | #define RLIM_INFINITY 0x7fffffff | 25 | #define RLIM_INFINITY 0x7fffffff |
26 | #endif | ||
23 | 27 | ||
24 | #include <asm-generic/resource.h> | 28 | #include <asm-generic/resource.h> |
25 | 29 | ||
diff --git a/include/asm-sparc64/resource.h b/include/asm-sparc64/resource.h index 4f08fb5e4ca4..46e3bc0de476 100644 --- a/include/asm-sparc64/resource.h +++ b/include/asm-sparc64/resource.h | |||
@@ -1,19 +1 @@ | |||
1 | /* | #include <asm-sparc/resource.h> | |
2 | * resource.h: Resource definitions. | ||
3 | * | ||
4 | * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu) | ||
5 | */ | ||
6 | |||
7 | #ifndef _SPARC64_RESOURCE_H | ||
8 | #define _SPARC64_RESOURCE_H | ||
9 | |||
10 | /* | ||
11 | * These two resource limit IDs have a Sparc/Linux-specific ordering, | ||
12 | * the rest comes from the generic header: | ||
13 | */ | ||
14 | #define RLIMIT_NOFILE 6 /* max number of open files */ | ||
15 | #define RLIMIT_NPROC 7 /* max number of processes */ | ||
16 | |||
17 | #include <asm-generic/resource.h> | ||
18 | |||
19 | #endif /* !(_SPARC64_RESOURCE_H) */ | ||