X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsched.h;h=fda4b484603093ab797df2fc3a29b187a2980927;hb=159d1f6c02569091c7a48bdb2e2e824b844a1902;hp=674bad7fefcf8c560df9869f18737a2cac7daac9;hpb=827aa8fbcac89a63c6efb986871663861500cd13;p=musl diff --git a/include/sched.h b/include/sched.h index 674bad7f..fda4b484 100644 --- a/include/sched.h +++ b/include/sched.h @@ -19,10 +19,14 @@ extern "C" { struct sched_param { int sched_priority; int __reserved1; +#if _REDIR_TIME64 + long __reserved2[4]; +#else struct { time_t __reserved1; long __reserved2; } __reserved2[2]; +#endif int __reserved3; }; @@ -45,10 +49,12 @@ int sched_yield(void); #ifdef _GNU_SOURCE #define CSIGNAL 0x000000ff +#define CLONE_NEWTIME 0x00000080 #define CLONE_VM 0x00000100 #define CLONE_FS 0x00000200 #define CLONE_FILES 0x00000400 #define CLONE_SIGHAND 0x00000800 +#define CLONE_PIDFD 0x00001000 #define CLONE_PTRACE 0x00002000 #define CLONE_VFORK 0x00004000 #define CLONE_PARENT 0x00008000 @@ -132,6 +138,10 @@ __CPU_op_func_S(XOR, ^) #endif +#if _REDIR_TIME64 +__REDIR(sched_rr_get_interval, __sched_rr_get_interval_time64); +#endif + #ifdef __cplusplus } #endif