dns stub resolver: increase buffer size to handle chained CNAMEs
[musl] / include / sched.h
index 05d40b1..204c34f 100644 (file)
@@ -18,10 +18,16 @@ extern "C" {
 
 struct sched_param {
        int sched_priority;
-       int sched_ss_low_priority;
-       struct timespec sched_ss_repl_period;
-       struct timespec sched_ss_init_budget;
-       int sched_ss_max_repl;
+       int __reserved1;
+#if _REDIR_TIME64
+       long __reserved2[4];
+#else
+       struct {
+               time_t __reserved1;
+               long __reserved2;
+       } __reserved2[2];
+#endif
+       int __reserved3;
 };
 
 int    sched_get_priority_max(int);
@@ -43,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
@@ -116,7 +124,7 @@ __CPU_op_func_S(XOR, ^)
 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
 #define CPU_FREE(set) free(set)
 
-#define CPU_SETSIZE 128
+#define CPU_SETSIZE 1024
 
 #define CPU_SET(i, set) CPU_SET_S(i,sizeof(cpu_set_t),set)
 #define CPU_CLR(i, set) CPU_CLR_S(i,sizeof(cpu_set_t),set)
@@ -130,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