diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-12-07 22:56:07 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-12-07 23:13:20 +0100 |
commit | 3ae78cac88d38b9ab913ee0100b00ad1151db306 (patch) | |
tree | 448b60520a8b47f9b3d3d9be4dd6d93be52beeb1 /libguile/posix.c | |
parent | 99dbafd66ace1b3c66b3e0f963411377627a62f8 (diff) | |
download | guile-3ae78cac88d38b9ab913ee0100b00ad1151db306.tar.gz |
Improve doc of `getaffinity' and `setaffinity'.
* doc/ref/posix.texi (Processes): Add cross-reference from `setaffinity'
and `getaffinity' to the corresponding node in the glibc manual.
* libguile/posix.c (scm_getaffinity, scm_setaffinity): Likewise.
Diffstat (limited to 'libguile/posix.c')
-rw-r--r-- | libguile/posix.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libguile/posix.c b/libguile/posix.c index 2a2a77bf2..652f63d7d 100644 --- a/libguile/posix.c +++ b/libguile/posix.c @@ -1930,7 +1930,9 @@ SCM_DEFINE (scm_getaffinity, "getaffinity", 1, 0, 0, "has its corresponding bit set in the returned bitvector.\n" "The number of bits set is a good estimate of how many CPUs\n" "Guile can use without stepping on other processes' toes.\n\n" - "Currently this procedure is only defined on GNU variants.\n") + "Currently this procedure is only defined on GNU variants\n" + "(@pxref{CPU Affinity, @code{sched_getaffinity},, libc, The\n" + "GNU C Library Reference Manual}).\n") #define FUNC_NAME s_scm_getaffinity { int err; @@ -1954,7 +1956,9 @@ SCM_DEFINE (scm_setaffinity, "setaffinity", 2, 0, 0, "Install the CPU affinity mask @var{mask}, a bitvector, for\n" "the process or thread with ID @var{pid}. The return value\n" "is unspecified.\n\n" - "Currently this procedure is only defined on GNU variants.\n") + "Currently this procedure is only defined on GNU variants\n" + "(@pxref{CPU Affinity, @code{sched_setaffinity},, libc, The\n" + "GNU C Library Reference Manual}).\n") #define FUNC_NAME s_scm_setaffinity { cpu_set_t cs; |