From 6f0b2e1f0fd3f2ce5a983c2e768619bb2739d8dd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 29 Apr 2004 21:55:45 +0000 Subject: [BZ #130, BZ #131] 2004-04-28 Carlos O'Donell * sysdeps/unix/sysv/linux/mq_getattr.c: Include . * sysdeps/unix/sysv/linux/mq_notify.c: Likewise. * sysdeps/unix/sysv/linux/mq_open.c: Likewise. * sysdeps/unix/sysv/linux/mq_receive.c: Likewise. * sysdeps/unix/sysv/linux/mq_send.c: Likewise. * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix prototypes and description [BZ #131]. * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130]. Patch by Ed Catmur . * string/tst-inlcall.c (main): Add test for strpbrk. --- manual/resource.texi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'manual') diff --git a/manual/resource.texi b/manual/resource.texi index 0c394f2..df77408 100644 --- a/manual/resource.texi +++ b/manual/resource.texi @@ -1367,12 +1367,12 @@ affinity mask can be retrieved from the system. @comment sched.h @comment GNU -@deftypefun int sched_getaffinity (pid_t @var{pid}, cpu_set_t *@var{cpuset}) +@deftypefun int sched_getaffinity (pid_t @var{pid}, size_t @var{cpusetsize}, cpu_set_t *@var{cpuset}) This functions stores the CPU affinity mask for the process or thread -with the ID @var{pid} in the memory pointed to by @var{cpuset}. If -successful, the function always initializes all bits in the -@code{cpu_set_t} object and returns zero. +with the ID @var{pid} in the @var{cpusetsize} bytes long bitmap +pointed to by @var{cpuset}. If successful, the function always +initializes all bits in the @code{cpu_set_t} object and returns zero. If @var{pid} does not correspond to a process or thread on the system the or the function fails for some other reason, it returns @code{-1} @@ -1395,12 +1395,12 @@ interface must be provided for that. @comment sched.h @comment GNU -@deftypefun int sched_setaffinity (pid_t @var{pid}, const cpu_set_t *@var{cpuset}) +@deftypefun int sched_setaffinity (pid_t @var{pid}, size_t @var{cpusetsize}, const cpu_set_t *@var{cpuset}) -This function installs the affinity mask pointed to by @var{cpuset} -for the process or thread with the ID @var{pid}. If successful the -function returns zero and the scheduler will in future take the -affinity information into account. +This function installs the @var{cpusetsize} bytes long affinity mask +pointed to by @var{cpuset} for the process or thread with the ID @var{pid}. +If successful the function returns zero and the scheduler will in future +take the affinity information into account. If the function fails it will return @code{-1} and @code{errno} is set to the error code: -- cgit v1.1