Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include
File: sched.h
/* Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface.
[0] Fix | Delete
Copyright (C) 1996-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
#ifndef _SCHED_H
[18] Fix | Delete
#define _SCHED_H 1
[19] Fix | Delete
[20] Fix | Delete
#include <features.h>
[21] Fix | Delete
[22] Fix | Delete
/* Get type definitions. */
[23] Fix | Delete
#include <bits/types.h>
[24] Fix | Delete
[25] Fix | Delete
#define __need_size_t
[26] Fix | Delete
#define __need_NULL
[27] Fix | Delete
#include <stddef.h>
[28] Fix | Delete
[29] Fix | Delete
#include <bits/types/time_t.h>
[30] Fix | Delete
#include <bits/types/struct_timespec.h>
[31] Fix | Delete
#ifndef __USE_XOPEN2K
[32] Fix | Delete
# include <time.h>
[33] Fix | Delete
#endif
[34] Fix | Delete
[35] Fix | Delete
#ifndef __pid_t_defined
[36] Fix | Delete
typedef __pid_t pid_t;
[37] Fix | Delete
# define __pid_t_defined
[38] Fix | Delete
#endif
[39] Fix | Delete
[40] Fix | Delete
/* Get system specific constant and data structure definitions. */
[41] Fix | Delete
#include <bits/sched.h>
[42] Fix | Delete
#include <bits/cpu-set.h>
[43] Fix | Delete
[44] Fix | Delete
/* Backward compatibility. */
[45] Fix | Delete
#define sched_priority sched_priority
[46] Fix | Delete
#define __sched_priority sched_priority
[47] Fix | Delete
[48] Fix | Delete
[49] Fix | Delete
__BEGIN_DECLS
[50] Fix | Delete
[51] Fix | Delete
/* Set scheduling parameters for a process. */
[52] Fix | Delete
extern int sched_setparam (__pid_t __pid, const struct sched_param *__param)
[53] Fix | Delete
__THROW;
[54] Fix | Delete
[55] Fix | Delete
/* Retrieve scheduling parameters for a particular process. */
[56] Fix | Delete
extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW;
[57] Fix | Delete
[58] Fix | Delete
/* Set scheduling algorithm and/or parameters for a process. */
[59] Fix | Delete
extern int sched_setscheduler (__pid_t __pid, int __policy,
[60] Fix | Delete
const struct sched_param *__param) __THROW;
[61] Fix | Delete
[62] Fix | Delete
/* Retrieve scheduling algorithm for a particular purpose. */
[63] Fix | Delete
extern int sched_getscheduler (__pid_t __pid) __THROW;
[64] Fix | Delete
[65] Fix | Delete
/* Yield the processor. */
[66] Fix | Delete
extern int sched_yield (void) __THROW;
[67] Fix | Delete
[68] Fix | Delete
/* Get maximum priority value for a scheduler. */
[69] Fix | Delete
extern int sched_get_priority_max (int __algorithm) __THROW;
[70] Fix | Delete
[71] Fix | Delete
/* Get minimum priority value for a scheduler. */
[72] Fix | Delete
extern int sched_get_priority_min (int __algorithm) __THROW;
[73] Fix | Delete
[74] Fix | Delete
/* Get the SCHED_RR interval for the named process. */
[75] Fix | Delete
extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
[76] Fix | Delete
[77] Fix | Delete
[78] Fix | Delete
#ifdef __USE_GNU
[79] Fix | Delete
/* Access macros for `cpu_set'. */
[80] Fix | Delete
# define CPU_SETSIZE __CPU_SETSIZE
[81] Fix | Delete
# define CPU_SET(cpu, cpusetp) __CPU_SET_S (cpu, sizeof (cpu_set_t), cpusetp)
[82] Fix | Delete
# define CPU_CLR(cpu, cpusetp) __CPU_CLR_S (cpu, sizeof (cpu_set_t), cpusetp)
[83] Fix | Delete
# define CPU_ISSET(cpu, cpusetp) __CPU_ISSET_S (cpu, sizeof (cpu_set_t), \
[84] Fix | Delete
cpusetp)
[85] Fix | Delete
# define CPU_ZERO(cpusetp) __CPU_ZERO_S (sizeof (cpu_set_t), cpusetp)
[86] Fix | Delete
# define CPU_COUNT(cpusetp) __CPU_COUNT_S (sizeof (cpu_set_t), cpusetp)
[87] Fix | Delete
[88] Fix | Delete
# define CPU_SET_S(cpu, setsize, cpusetp) __CPU_SET_S (cpu, setsize, cpusetp)
[89] Fix | Delete
# define CPU_CLR_S(cpu, setsize, cpusetp) __CPU_CLR_S (cpu, setsize, cpusetp)
[90] Fix | Delete
# define CPU_ISSET_S(cpu, setsize, cpusetp) __CPU_ISSET_S (cpu, setsize, \
[91] Fix | Delete
cpusetp)
[92] Fix | Delete
# define CPU_ZERO_S(setsize, cpusetp) __CPU_ZERO_S (setsize, cpusetp)
[93] Fix | Delete
# define CPU_COUNT_S(setsize, cpusetp) __CPU_COUNT_S (setsize, cpusetp)
[94] Fix | Delete
[95] Fix | Delete
# define CPU_EQUAL(cpusetp1, cpusetp2) \
[96] Fix | Delete
__CPU_EQUAL_S (sizeof (cpu_set_t), cpusetp1, cpusetp2)
[97] Fix | Delete
# define CPU_EQUAL_S(setsize, cpusetp1, cpusetp2) \
[98] Fix | Delete
__CPU_EQUAL_S (setsize, cpusetp1, cpusetp2)
[99] Fix | Delete
[100] Fix | Delete
# define CPU_AND(destset, srcset1, srcset2) \
[101] Fix | Delete
__CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, &)
[102] Fix | Delete
# define CPU_OR(destset, srcset1, srcset2) \
[103] Fix | Delete
__CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, |)
[104] Fix | Delete
# define CPU_XOR(destset, srcset1, srcset2) \
[105] Fix | Delete
__CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, ^)
[106] Fix | Delete
# define CPU_AND_S(setsize, destset, srcset1, srcset2) \
[107] Fix | Delete
__CPU_OP_S (setsize, destset, srcset1, srcset2, &)
[108] Fix | Delete
# define CPU_OR_S(setsize, destset, srcset1, srcset2) \
[109] Fix | Delete
__CPU_OP_S (setsize, destset, srcset1, srcset2, |)
[110] Fix | Delete
# define CPU_XOR_S(setsize, destset, srcset1, srcset2) \
[111] Fix | Delete
__CPU_OP_S (setsize, destset, srcset1, srcset2, ^)
[112] Fix | Delete
[113] Fix | Delete
# define CPU_ALLOC_SIZE(count) __CPU_ALLOC_SIZE (count)
[114] Fix | Delete
# define CPU_ALLOC(count) __CPU_ALLOC (count)
[115] Fix | Delete
# define CPU_FREE(cpuset) __CPU_FREE (cpuset)
[116] Fix | Delete
[117] Fix | Delete
[118] Fix | Delete
/* Set the CPU affinity for a task */
[119] Fix | Delete
extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
[120] Fix | Delete
const cpu_set_t *__cpuset) __THROW;
[121] Fix | Delete
[122] Fix | Delete
/* Get the CPU affinity for a task */
[123] Fix | Delete
extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
[124] Fix | Delete
cpu_set_t *__cpuset) __THROW;
[125] Fix | Delete
#endif
[126] Fix | Delete
[127] Fix | Delete
__END_DECLS
[128] Fix | Delete
[129] Fix | Delete
#endif /* sched.h */
[130] Fix | Delete
[131] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function