提交 b6e7c664 编写于 作者: R Rich Felker

add missing legacy LFS64 macros in sys/resource.h

based on patch by Felix Janda, with RLIM64_SAVED_CUR and
RLIM64_SAVED_MAX added for completeness.
上级 fc431d3f
...@@ -96,6 +96,9 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); ...@@ -96,6 +96,9 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
#define RLIM_NLIMITS RLIMIT_NLIMITS #define RLIM_NLIMITS RLIMIT_NLIMITS
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) #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 getrlimit64 getrlimit
#define setrlimit64 setrlimit #define setrlimit64 setrlimit
#define rlimit64 rlimit #define rlimit64 rlimit
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册