guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 03/05: getaffinity, setaffinity docstring cleanup


From: Andy Wingo
Subject: [Guile-commits] 03/05: getaffinity, setaffinity docstring cleanup
Date: Mon, 11 Jul 2016 20:55:11 +0000 (UTC)

wingo pushed a commit to branch stable-2.0
in repository guile.

commit 2ef67d08ef7c5ce6f8b62214b698b91c424cef22
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 68ad827..e3a435e 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -1957,7 +1957,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)
 {
@@ -1982,10 +1981,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;
@@ -1999,19 +1995,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;
@@ -2040,7 +2031,6 @@ SCM_DEFINE (scm_setaffinity, "setaffinity", 2, 0, 0,
   return SCM_UNSPECIFIED;
 }
 #undef FUNC_NAME
-
 #endif /* HAVE_SCHED_SETAFFINITY */
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]