Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104158
b: refs/heads/master
c: 68a61c8
h: refs/heads/master
v: v3
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Jul 18, 2008
1 parent 5ff420a commit b1c1eba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7acc483d21a6e45e6ec8dc1eec711f7881bc3f3f
refs/heads/master: 68a61c8d87dae7c7b7cc76ab01190475e87be0d9
6 changes: 5 additions & 1 deletion trunk/include/asm-sparc/resource.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* resource.h: Resource definitions.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
*/

#ifndef _SPARC_RESOURCE_H
Expand All @@ -14,12 +14,16 @@
#define RLIMIT_NOFILE 6 /* max number of open files */
#define RLIMIT_NPROC 7 /* max number of processes */

#if defined(__sparc__) && defined(__arch64__)
/* Use generic version */
#else
/*
* SuS says limits have to be unsigned.
* We make this unsigned, but keep the
* old value for compatibility:
*/
#define RLIM_INFINITY 0x7fffffff
#endif

#include <asm-generic/resource.h>

Expand Down
20 changes: 1 addition & 19 deletions trunk/include/asm-sparc64/resource.h
Original file line number Diff line number Diff line change
@@ -1,19 +1 @@
/*
* resource.h: Resource definitions.
*
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
*/

#ifndef _SPARC64_RESOURCE_H
#define _SPARC64_RESOURCE_H

/*
* These two resource limit IDs have a Sparc/Linux-specific ordering,
* the rest comes from the generic header:
*/
#define RLIMIT_NOFILE 6 /* max number of open files */
#define RLIMIT_NPROC 7 /* max number of processes */

#include <asm-generic/resource.h>

#endif /* !(_SPARC64_RESOURCE_H) */
#include <asm-sparc/resource.h>

0 comments on commit b1c1eba

Please sign in to comment.