summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2011-09-09 21:55:42 (GMT)
committerJesus Cea <jcea@jcea.es>2011-09-09 21:55:42 (GMT)
commitf2cb4e8b35ead656a86902c00bc6bc293533d89f (patch)
treed53c0046fd379e5462664c46c3da0bee8682e855 /Modules/posixmodule.c
parent1e1c8f49132fb72da05be6495debd1a89b5d3d3b (diff)
downloadcpython-f2cb4e8b35ead656a86902c00bc6bc293533d89f.zip
cpython-f2cb4e8b35ead656a86902c00bc6bc293533d89f.tar.gz
cpython-f2cb4e8b35ead656a86902c00bc6bc293533d89f.tar.bz2
Close issue 12952: Solaris/Illumos (OpenIndiana) Scheduling policies
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index d67cada..d9d9acb 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -11301,12 +11301,12 @@ all_ins(PyObject *d)
#endif
#ifdef HAVE_SCHED_H
+ if (ins(d, "SCHED_OTHER", (long)SCHED_OTHER)) return -1;
if (ins(d, "SCHED_FIFO", (long)SCHED_FIFO)) return -1;
if (ins(d, "SCHED_RR", (long)SCHED_RR)) return -1;
#ifdef SCHED_SPORADIC
if (ins(d, "SCHED_SPORADIC", (long)SCHED_SPORADIC) return -1;
#endif
- if (ins(d, "SCHED_OTHER", (long)SCHED_OTHER)) return -1;
#ifdef SCHED_BATCH
if (ins(d, "SCHED_BATCH", (long)SCHED_BATCH)) return -1;
#endif
@@ -11316,6 +11316,18 @@ all_ins(PyObject *d)
#ifdef SCHED_RESET_ON_FORK
if (ins(d, "SCHED_RESET_ON_FORK", (long)SCHED_RESET_ON_FORK)) return -1;
#endif
+#ifdef SCHED_SYS
+ if (ins(d, "SCHED_SYS", (long)SCHED_SYS)) return -1;
+#endif
+#ifdef SCHED_IA
+ if (ins(d, "SCHED_IA", (long)SCHED_IA)) return -1;
+#endif
+#ifdef SCHED_FSS
+ if (ins(d, "SCHED_FSS", (long)SCHED_FSS)) return -1;
+#endif
+#ifdef SCHED_FX
+ if (ins(d, "SCHED_FX", (long)SCHED_FSS)) return -1;
+#endif
#endif
#ifdef HAVE_ATTR_XATTR_H