projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc431d3
)
add missing legacy LFS64 macros in sys/resource.h
author
Rich Felker
<dalias@aerifal.cx>
Thu, 28 May 2015 19:37:23 +0000
(15:37 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 28 May 2015 19:37:23 +0000
(15:37 -0400)
based on patch by Felix Janda, with RLIM64_SAVED_CUR and
RLIM64_SAVED_MAX added for completeness.
include/sys/resource.h
patch
|
blob
|
history
diff --git
a/include/sys/resource.h
b/include/sys/resource.h
index 58392d64ba8f0792d29b2302fcb774a62f383214..cc33de7445e28e50e2f056f3861bd6173ff83167 100644
(file)
--- a/
include/sys/resource.h
+++ b/
include/sys/resource.h
@@
-96,6
+96,9
@@
int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
#define RLIM_NLIMITS RLIMIT_NLIMITS
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
+#define RLIM64_INFINITY RLIM_INFINITY
+#define RLIM64_SAVED_CUR RLIM_SAVED_CUR
+#define RLIM64_SAVED_MAX RLIM_SAVED_MAX
#define getrlimit64 getrlimit
#define setrlimit64 setrlimit
#define rlimit64 rlimit