sched.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
  2. /* Replacement <sched.h> for platforms that lack it.
  3. Copyright (C) 2008-2013 Free Software Foundation, Inc.
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. #ifndef _GL_M4_SCHED_H
  15. #if __GNUC__ >= 3
  16. #endif
  17. /* The include_next requires a split double-inclusion guard. */
  18. #if 0
  19. # include <sched.h>
  20. #endif
  21. #ifndef _GL_M4_SCHED_H
  22. #define _GL_M4_SCHED_H
  23. /* Get pid_t.
  24. This is needed on glibc 2.11 (see
  25. glibc bug <http://sourceware.org/bugzilla/show_bug.cgi?id=13198>)
  26. and Mac OS X 10.5. */
  27. #include <sys/types.h>
  28. #if !0
  29. # if !GNULIB_defined_struct_sched_param
  30. struct sched_param
  31. {
  32. int sched_priority;
  33. };
  34. # define GNULIB_defined_struct_sched_param 1
  35. # endif
  36. #endif
  37. #if !(defined SCHED_FIFO && defined SCHED_RR && defined SCHED_OTHER)
  38. # define SCHED_FIFO 1
  39. # define SCHED_RR 2
  40. # define SCHED_OTHER 0
  41. #endif
  42. #endif /* _GL_M4_SCHED_H */
  43. #endif /* _GL_M4_SCHED_H */