[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 06/27: getaffinity, setaffinity docstring cleanup
From: |
Andy Wingo |
Subject: |
[Guile-commits] 06/27: getaffinity, setaffinity docstring cleanup |
Date: |
Mon, 25 Jul 2016 09:53:45 +0000 (UTC) |
wingo pushed a commit to branch master
in repository guile.
commit 9222e05ef15e62c0f4c99506646447200e47e8c6
Author: Andy Wingo <address@hidden>
Date: Mon Jul 11 22:17:59 2016 +0200
getaffinity, setaffinity docstring cleanup
* libguile/posix.c (scm_getaffinity, scm_setaffinity): Clean up
docstrings. Obviously if you have the function, you don't need to be
told that you have it in the docstring.
---
libguile/posix.c | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/libguile/posix.c b/libguile/posix.c
index 452b9e3..66b2bed 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -1958,7 +1958,6 @@ SCM_DEFINE (scm_setpriority, "setpriority", 3, 0, 0,
#endif /* HAVE_SETPRIORITY */
#ifdef HAVE_SCHED_GETAFFINITY
-
static SCM
cpu_set_to_bitvector (const cpu_set_t *cs)
{
@@ -1983,10 +1982,7 @@ SCM_DEFINE (scm_getaffinity, "getaffinity", 1, 0, 0,
"process @var{pid}. Each CPU the process has affinity with\n"
"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"
- "(@pxref{CPU Affinity, @code{sched_getaffinity},, libc, The\n"
- "GNU C Library Reference Manual}).\n")
+ "Guile can use without stepping on other processes' toes.")
#define FUNC_NAME s_scm_getaffinity
{
int err;
@@ -2000,19 +1996,14 @@ SCM_DEFINE (scm_getaffinity, "getaffinity", 1, 0, 0,
return cpu_set_to_bitvector (&cs);
}
#undef FUNC_NAME
-
#endif /* HAVE_SCHED_GETAFFINITY */
#ifdef HAVE_SCHED_SETAFFINITY
-
SCM_DEFINE (scm_setaffinity, "setaffinity", 2, 0, 0,
(SCM pid, SCM mask),
"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"
- "(@pxref{CPU Affinity, @code{sched_setaffinity},, libc, The\n"
- "GNU C Library Reference Manual}).\n")
+ "is unspecified.")
#define FUNC_NAME s_scm_setaffinity
{
cpu_set_t cs;
@@ -2041,7 +2032,6 @@ SCM_DEFINE (scm_setaffinity, "setaffinity", 2, 0, 0,
return SCM_UNSPECIFIED;
}
#undef FUNC_NAME
-
#endif /* HAVE_SCHED_SETAFFINITY */
- [Guile-commits] 27/27: Avoid compilation warnings about alloca in read.c, (continued)
- [Guile-commits] 27/27: Avoid compilation warnings about alloca in read.c, Andy Wingo, 2016/07/25
- [Guile-commits] 04/27: More robust setuid, setgid, etc detection, Andy Wingo, 2016/07/25
- [Guile-commits] 17/27: doc: Do not gender the programmer., Andy Wingo, 2016/07/25
- [Guile-commits] 24/27: Use non-deprecated HAVE_STRUCT_TM_TM_ZONE, Andy Wingo, 2016/07/25
- [Guile-commits] 07/27: More specific status:exit-val et al compilation guards, Andy Wingo, 2016/07/25
- [Guile-commits] 12/27: Add popen feature, Andy Wingo, 2016/07/25
- [Guile-commits] 10/27: Rename win32-uname.[ch] to posix-w32.[ch], Andy Wingo, 2016/07/25
- [Guile-commits] 16/27: Update uname implementation in posix-w32, Andy Wingo, 2016/07/25
- [Guile-commits] 22/27: Gnulib: Add dirname-lgpl., Andy Wingo, 2016/07/25
- [Guile-commits] 14/27: Fix MinGW build error, Andy Wingo, 2016/07/25
- [Guile-commits] 06/27: getaffinity, setaffinity docstring cleanup,
Andy Wingo <=
- [Guile-commits] 13/27: Update NEWS, Andy Wingo, 2016/07/25
- [Guile-commits] 26/27: Fix --without-threads against threaded BDW-GC, Andy Wingo, 2016/07/25
- [Guile-commits] 08/27: Factor start_child out of open_process, Andy Wingo, 2016/07/25
- [Guile-commits] 21/27: doc: Add unquote and unquote-splicing examples., Andy Wingo, 2016/07/25
- [Guile-commits] 23/27: Use gnulib for basename / dirname, Andy Wingo, 2016/07/25
- [Guile-commits] 15/27: Fix unused static variables in net_db.c, Andy Wingo, 2016/07/25
- [Guile-commits] 25/27: Reimplement null-threads as inline functions, Andy Wingo, 2016/07/25
- [Guile-commits] 18/27: Allow mkstemp! to have optional "mode" argument, Andy Wingo, 2016/07/25
- [Guile-commits] 20/27: Untabify posix-w32.c, Andy Wingo, 2016/07/25
- [Guile-commits] 11/27: Add POSIX shims for MinGW, Andy Wingo, 2016/07/25