Add bindings to GNU `sched_setaffinity' and `sched_getaffinity'.
authorLudovic Courtès <ludo@gnu.org>
Wed, 1 Dec 2010 22:58:39 +0000 (23:58 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 2 Dec 2010 23:38:29 +0000 (00:38 +0100)
commitfe613fe25d55ac293fbce510a3ac6057b270fa31
treefc7847df11f18f38c82ba3283b88cb84d4dc68f7
parent50a4533f82e930adc357345e364672ac6c07ea16
Add bindings to GNU `sched_setaffinity' and `sched_getaffinity'.

* configure.ac: Add checks for `sched_setaffinity' and
  `sched_getaffinity'.

* doc/ref/posix.texi (Processes): Document `getaffinity' and
  `setaffinity'.

* libguile/posix.c (cpu_set_to_bitvector,
  scm_getaffinity)[HAVE_SCHED_GETAFFINITY]: New functions.
  (scm_setaffinity)[HAVE_SCHED_SETAFFINITY]: New function.

* libguile/posix.h (scm_getaffinity, scm_setaffinity): New declarations.

* test-suite/tests/posix.test ("affinity"): New test prefix.
configure.ac
doc/ref/posix.texi
libguile/posix.c
libguile/posix.h
test-suite/tests/posix.test