diff options
author | Rob Landley <rob@landley.net> | 2017-05-21 13:11:42 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-05-21 13:11:42 -0500 |
commit | f86f2f4e9a20d235b24ea86e4dddd0485165306f (patch) | |
tree | 83e2341019727a29ef59210926e6c83e15ccd146 /lib/portability.h | |
parent | 83b3531ec2876fa76817501bf1a38d4438ac39e6 (diff) | |
download | toybox-f86f2f4e9a20d235b24ea86e4dddd0485165306f.tar.gz |
Cleaup chrt
Diffstat (limited to 'lib/portability.h')
-rw-r--r-- | lib/portability.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/portability.h b/lib/portability.h index 01c77c67..e62de139 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -45,9 +45,13 @@ #define RLIMIT_RTTIME 15 #endif +// Introduced in Linux 3.1 #ifndef SEEK_DATA #define SEEK_DATA 3 #endif +#ifndef SEEK_HOLE +#define SEEK_HOLE 4 +#endif // We don't define GNU_dammit because we're not part of the gnu project, and // don't want to get any FSF on us. Unfortunately glibc (gnu libc) @@ -199,18 +203,18 @@ static inline void endutxent(void) {;} #ifndef O_NOFOLLOW #define O_NOFOLLOW 0 #endif - #ifndef O_NOATIME #define O_NOATIME 01000000 #endif - #ifndef O_CLOEXEC #define O_CLOEXEC 02000000 #endif - #ifndef O_PATH #define O_PATH 010000000 #endif +#ifndef SCHED_RESET_ON_FORK +#define SCHED_RESET_ON_FORK (1<<30) +#endif // Glibc won't give you linux-kernel constants unless you say "no, a BUD lite" // even though linux has nothing to do with the FSF and never has. |