]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
15 years agogetdents.2, pthread_attr_init.3, pthread_create.3, pthread_getattr_np.3, pthread_seta...
Michael Kerrisk [Tue, 11 Nov 2008 13:35:25 +0000 (08:35 -0500)] 
getdents.2, pthread_attr_init.3, pthread_create.3, pthread_getattr_np.3, pthread_setaffinity_np.3, pthread_setschedparam.3, pthread_tryjoin_np.3: Use consistent error-handling function names

Many older pages use a handle_error() macro to do simple
error handling from system and library function calls.
Switch these pages to do similar.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_tryjoin_np.3: minor: tidy up example code segment
Michael Kerrisk [Tue, 11 Nov 2008 13:33:43 +0000 (08:33 -0500)] 
pthread_tryjoin_np.3: minor: tidy up example code segment

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthreads.7: Tweak text on sigpause() cancellation point
Michael Kerrisk [Mon, 10 Nov 2008 19:32:43 +0000 (14:32 -0500)] 
pthreads.7: Tweak text on sigpause() cancellation point

In POSIX.1-2009, this function moves from the "must be"
to the "may be" list.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_setinheritsched.3: New page for pthread_attr_setinheritsched(3) and...
Michael Kerrisk [Mon, 10 Nov 2008 17:17:19 +0000 (12:17 -0500)] 
pthread_attr_setinheritsched.3: New page for pthread_attr_setinheritsched(3) and pthread_attr_getinheritsched(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agobindresvport.3: Since glibc 2.8, EPFNOSUPPORT error is now EAFNOSUPPORT
Michael Kerrisk [Mon, 10 Nov 2008 17:12:02 +0000 (12:12 -0500)] 
bindresvport.3: Since glibc 2.8, EPFNOSUPPORT error is now EAFNOSUPPORT

Glibc switched to using a POSIX-specified error code for
this error case.

http://bugs.linuxbase.org/show_bug.cgi?id=2375

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Stew Benedict <stewb@linux-foundation.org>
15 years agopthreads.7: Add section on cancellation points
Michael Kerrisk [Mon, 10 Nov 2008 17:00:51 +0000 (12:00 -0500)] 
pthreads.7: Add section on cancellation points

This section includes a list of the functions that must and
may be cancellation points.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agofsync.2: Update feature test macro requirements for fsync()
Michael Kerrisk [Sat, 8 Nov 2008 02:42:33 +0000 (21:42 -0500)] 
fsync.2: Update feature test macro requirements for fsync()

Since glibc 2.8, the fsync() declaration is also exposed if
_POSIX_C_SOURCE >= 200112L

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoclone.2: srcfix: added comment about CLONE_STOPPED going away in glibc 2.8
Michael Kerrisk [Sat, 8 Nov 2008 02:32:57 +0000 (21:32 -0500)] 
clone.2: srcfix: added comment about CLONE_STOPPED going away in glibc 2.8

15 years agomakecontext.3: grfix
Michael Kerrisk [Sat, 8 Nov 2008 01:57:48 +0000 (20:57 -0500)] 
makecontext.3: grfix

15 years agomakecontext.3: Add text on use of pointer arguments to makecontext()
Michael Kerrisk [Sat, 8 Nov 2008 01:31:15 +0000 (20:31 -0500)] 
makecontext.3: Add text on use of pointer arguments to makecontext()

Passing pointer arguments to makecontext() is possible,
but only on some architectures, and with no guarantees
of portability.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504699

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Paul Evans <leonerd@leonerd.org.uk>
15 years agogetpwnam.3: Add an EXAMPLE program for getpwnam_r()
Michael Kerrisk [Fri, 7 Nov 2008 22:05:13 +0000 (17:05 -0500)] 
getpwnam.3: Add an EXAMPLE program for getpwnam_r()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetgrnam.3: Rename arguments to getgrnam_r() and getgrgid_r()
Michael Kerrisk [Fri, 7 Nov 2008 21:32:52 +0000 (16:32 -0500)] 
getgrnam.3: Rename arguments to getgrnam_r() and getgrgid_r()

s/gbuf/grp/ and s/gbufp/result/, for consistency
with POSIX.1 argument names.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetpwnam.3: Rename arguments to getpwnam_r() and getpwuid_r()
Michael Kerrisk [Fri, 7 Nov 2008 21:13:51 +0000 (16:13 -0500)] 
getpwnam.3: Rename arguments to getpwnam_r() and getpwuid_r()

s/pwbuf/pwd/ and s/pwbufp/result/, for consistency
with POSIX.1 argument names.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetgrnam.3: Clarify and add more detail in RETURN VALUE description
Michael Kerrisk [Fri, 7 Nov 2008 21:09:11 +0000 (16:09 -0500)] 
getgrnam.3: Clarify and add more detail in RETURN VALUE description

The page was a bit fuzzy in describing the return values for
various cases.  In particular, it needed to be more explicit
in describing what happens for the "not found" case.

This is an analogous change to the previous change for
getpwnam.3, made after Andreas Henriksson's report.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504787

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetpwnam.3: Clarify and add more detail in RETURN VALUE description
Michael Kerrisk [Fri, 7 Nov 2008 21:07:40 +0000 (16:07 -0500)] 
getpwnam.3: Clarify and add more detail in RETURN VALUE description

The page was a bit fuzzy in describing the return values for
various cases.  In particular, it needed to be more explicit
in describing what happens for the "not found" case.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504787

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Andreas Henriksson <andreas@fatal.se>
15 years agogetgrnam.3: Clarify RETURN VALUE description
Michael Kerrisk [Fri, 7 Nov 2008 21:01:18 +0000 (16:01 -0500)] 
getgrnam.3: Clarify RETURN VALUE description

The page was a bit fuzzy in describing the return values for
various cases.  In particular, it needed to be more explicit
in describing what happens for the "not found" case.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504708

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Andreas Henriksson <andreas@fatal.se>
15 years agoclock_getres.3: wfix
Michael Kerrisk [Fri, 7 Nov 2008 17:33:04 +0000 (12:33 -0500)] 
clock_getres.3: wfix

15 years agoclock_getres.3: srcfix: Added FIXME
Michael Kerrisk [Fri, 7 Nov 2008 17:32:27 +0000 (12:32 -0500)] 
clock_getres.3: srcfix: Added FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoStart of man-pages-3.14: updating Changes and Changes.old
Michael Kerrisk [Fri, 7 Nov 2008 17:32:11 +0000 (12:32 -0500)] 
Start of man-pages-3.14: updating Changes and Changes.old

15 years agoStart of man-pages-3.14: updating .Announce and .lsm files
Michael Kerrisk [Fri, 7 Nov 2008 17:32:11 +0000 (12:32 -0500)] 
Start of man-pages-3.14: updating .Announce and .lsm files

15 years agoStart of man-pages-3.14: renaming .Announce and .lsm files
Michael Kerrisk [Fri, 7 Nov 2008 17:32:11 +0000 (12:32 -0500)] 
Start of man-pages-3.14: renaming .Announce and .lsm files

15 years agoReady for 3.13 man-pages-3.13
Michael Kerrisk [Fri, 7 Nov 2008 16:26:23 +0000 (11:26 -0500)] 
Ready for 3.13

15 years agoExpanded tabs
Michael Kerrisk [Fri, 7 Nov 2008 16:25:27 +0000 (11:25 -0500)] 
Expanded tabs

15 years agopthread_attr_getaffinity_np.3: Fix circular self-link reference
Michael Kerrisk [Fri, 7 Nov 2008 16:17:30 +0000 (11:17 -0500)] 
pthread_attr_getaffinity_np.3: Fix circular self-link reference

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_getattr_np.3, pthread_tryjoin_np.3: tstamp
Michael Kerrisk [Fri, 7 Nov 2008 15:35:39 +0000 (10:35 -0500)] 
pthread_getattr_np.3, pthread_tryjoin_np.3: tstamp

15 years agoChanges: Update changelog for 3.13 release
Michael Kerrisk [Fri, 7 Nov 2008 15:29:04 +0000 (10:29 -0500)] 
Changes: Update changelog for 3.13 release

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_setschedparam.3: tfix
Michael Kerrisk [Fri, 7 Nov 2008 15:06:14 +0000 (10:06 -0500)] 
pthread_setschedparam.3: tfix

15 years agopthread_attr_setschedparam.3: tfix
Michael Kerrisk [Fri, 7 Nov 2008 15:05:12 +0000 (10:05 -0500)] 
pthread_attr_setschedparam.3: tfix

15 years agopthread_attr_setschedpolicy.3: minor: s/policy/*policy/ in SYNOPSIS
Michael Kerrisk [Fri, 7 Nov 2008 15:02:55 +0000 (10:02 -0500)] 
pthread_attr_setschedpolicy.3: minor: s/policy/*policy/ in SYNOPSIS

15 years agopthread_attr_setschedpolicy.3: ffix
Michael Kerrisk [Fri, 7 Nov 2008 15:02:17 +0000 (10:02 -0500)] 
pthread_attr_setschedpolicy.3: ffix

15 years agoclock_getres.3: CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID not settable
Michael Kerrisk [Fri, 7 Nov 2008 14:05:19 +0000 (09:05 -0500)] 
clock_getres.3: CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID not settable

According to POSIX.1-2001, the CLOCK_PROCESS_CPUTIME_ID and
CLOCK_THREAD_CPUTIME_ID clocks should be settable, but
currently they are not.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_setschedprio.3: New page for pthread_setschedprio(3)
Michael Kerrisk [Thu, 6 Nov 2008 19:15:45 +0000 (14:15 -0500)] 
pthread_setschedprio.3: New page for pthread_setschedprio(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosched_setscheduler.2: tfix
Michael Kerrisk [Thu, 6 Nov 2008 19:10:03 +0000 (14:10 -0500)] 
sched_setscheduler.2: tfix

s/2.6.20/2.6.30/ to fix an earlier typo in the description
of the likely kernel version that will have fully fledged
real-time features.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_setschedparam.3: Rework text pointing to information on required permissions
Michael Kerrisk [Thu, 6 Nov 2008 19:05:00 +0000 (14:05 -0500)] 
pthread_setschedparam.3: Rework text pointing to information on required permissions

Rework the text that refers to sched_setscheduler(2) for
a description of the permissions required to change
the scheduling policy and priority.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_setschedparam.3: SEE ALSO: add getrlimit(2)
Michael Kerrisk [Thu, 6 Nov 2008 17:53:21 +0000 (12:53 -0500)] 
pthread_setschedparam.3: SEE ALSO: add getrlimit(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_setschedpolicy.3: Add pointer to EXAMPLE in pthread_setschedparam(3)
Michael Kerrisk [Thu, 6 Nov 2008 17:42:47 +0000 (12:42 -0500)] 
pthread_attr_setschedpolicy.3: Add pointer to EXAMPLE in pthread_setschedparam(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_setschedparam.3: Add pointer to EXAMPLE in pthread_setschedparam(3)
Michael Kerrisk [Thu, 6 Nov 2008 17:41:35 +0000 (12:41 -0500)] 
pthread_attr_setschedparam.3: Add pointer to EXAMPLE in pthread_setschedparam(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_getschedparam.3: New link to new pthread_setschedparam.3
Michael Kerrisk [Thu, 6 Nov 2008 17:39:39 +0000 (12:39 -0500)] 
pthread_getschedparam.3: New link to new pthread_setschedparam.3

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_setschedparam.3: New page for pthread_setschedparam(3) and pthread_getschedpa...
Michael Kerrisk [Thu, 6 Nov 2008 17:39:05 +0000 (12:39 -0500)] 
pthread_setschedparam.3: New page for pthread_setschedparam(3) and pthread_getschedparam(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_create.3, pthread_getattr_np.3: ffix: s/'/\\(aq/
Michael Kerrisk [Thu, 6 Nov 2008 16:44:25 +0000 (11:44 -0500)] 
pthread_create.3, pthread_getattr_np.3: ffix: s/'/\\(aq/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_setschedpolicy.3: srcfix: Added FIXME
Michael Kerrisk [Thu, 6 Nov 2008 16:22:38 +0000 (11:22 -0500)] 
pthread_attr_setschedpolicy.3: srcfix: Added FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_setaffinity_np.3: SEE ALSO: add pthread_self(3)
Michael Kerrisk [Thu, 6 Nov 2008 16:01:55 +0000 (11:01 -0500)] 
pthread_setaffinity_np.3: SEE ALSO: add pthread_self(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoresolver.3: Fix prototype of dn_expand()
Michael Kerrisk [Thu, 6 Nov 2008 15:31:58 +0000 (10:31 -0500)] 
resolver.3: Fix prototype of dn_expand()

The 4th argument is "char *", not "unsigned char *".
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504708

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Török Edwin <edwintorok@gmail.com>
15 years agopthreads.7: spfix
Michael Kerrisk [Thu, 6 Nov 2008 14:39:07 +0000 (09:39 -0500)] 
pthreads.7: spfix

15 years agopthreads.7: Add a section describing thread IDs
Michael Kerrisk [Thu, 6 Nov 2008 14:37:23 +0000 (09:37 -0500)] 
pthreads.7: Add a section describing thread IDs

In particular, note that in each pthreads function that takes
a thread ID argument, that ID by definition refers to a thread
in the same process as the caller.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosched_setaffinity.2: SEE ALSO: add sched_getcpu(3)
Michael Kerrisk [Thu, 6 Nov 2008 14:10:50 +0000 (09:10 -0500)] 
sched_setaffinity.2: SEE ALSO: add sched_getcpu(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_setaffinity_np.3: SEE ALSO: add sched_getcpu(3)
Michael Kerrisk [Thu, 6 Nov 2008 14:08:07 +0000 (09:08 -0500)] 
pthread_setaffinity_np.3: SEE ALSO: add sched_getcpu(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_getschedparam.3: New link to new pthread_attr_setschedparam.3
Michael Kerrisk [Wed, 5 Nov 2008 21:31:51 +0000 (16:31 -0500)] 
pthread_attr_getschedparam.3: New link to new pthread_attr_setschedparam.3

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_setschedparam.3: New page for pthread_attr_setschedparam(3) and pthread_...
Michael Kerrisk [Wed, 5 Nov 2008 21:31:22 +0000 (16:31 -0500)] 
pthread_attr_setschedparam.3: New page for pthread_attr_setschedparam(3) and pthread_attr_getschedparam(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_getschedpolicy.3: New link to new pthread_attr_setschedpolicy.3
Michael Kerrisk [Wed, 5 Nov 2008 21:30:59 +0000 (16:30 -0500)] 
pthread_attr_getschedpolicy.3: New link to new pthread_attr_setschedpolicy.3

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_setschedpolicy.3: New page for pthread_attr_setschedpolicy(3) and pthrea...
Michael Kerrisk [Wed, 5 Nov 2008 21:30:35 +0000 (16:30 -0500)] 
pthread_attr_setschedpolicy.3: New page for pthread_attr_setschedpolicy(3) and pthread_attr_getschedpolicy(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_setstacksize.3: EINVAL occurs on some systems if stacksize != page-size
Michael Kerrisk [Wed, 5 Nov 2008 14:43:20 +0000 (09:43 -0500)] 
pthread_attr_setstacksize.3: EINVAL occurs on some systems if stacksize != page-size

On MacOS X at least, pthread_attr_setstacksize(3) can fail
with EINVAL if 'stacksize' is not a multiple of the system
page size.  Best to mention this so as to aid people writing
portable programs.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Karsten Weiss <knweiss@gmail.com>
==
From: Karsten Weiss <knweiss@gmail.com>
Date: Fri, Oct 31, 2008 at 3:46 PM
Subject: pthread_create(3) - example bug + problems

[...]
A look in the pthread_set_stacksize man page on Mac revealed that on
Mac the stack size must not only be at least PTHREAD_STACK_MIN...
[...]
...but the new stack size must also be a multiple of the system page
size!

From pthread_attr_setstacksize(3):

    pthread_attr_setstacksize() will fail if:

    [EINVAL]           Invalid value for attr.
    [EINVAL]           stacksize is less than PTHREAD_STACK_MIN.
!!!  [EINVAL]           stacksize is not a multiple of the system page size.

See for yourself (PTHREAD_STACK_MIN==8192 on Mac OS X):

$ ./pthread_test -s $((8192*10-1)) a
pthread_attr_setstacksize: Invalid argument
$ ./pthread_test -s $((8192*10)) a
Thread 1: top of stack near 0xb0014f6c; argv_string=a
Joined with thread 1; returned value was A
$ ./pthread_test -s $((8192*10+1)) a
pthread_attr_setstacksize: Invalid argument

15 years agopthread_create.3: Fix bug in EXAMPLE program
Karsten Weiss [Wed, 5 Nov 2008 14:26:44 +0000 (09:26 -0500)] 
pthread_create.3: Fix bug in EXAMPLE program

The bug is in this part of the code:

    /* Allocate memory for pthread_create() arguments */

    tinfo = calloc(num_threads, num_threads);
    if (tinfo == NULL)
       errExit("calloc");

The calloc() line should read like this instead:

    tinfo = calloc(num_threads, sizeof(struct thread_info));

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_setaffinity_np.3, pthread_getattr_np.3, pthread_setaffinity_np.3, pthrea...
Michael Kerrisk [Wed, 5 Nov 2008 13:59:40 +0000 (08:59 -0500)] 
pthread_attr_setaffinity_np.3, pthread_getattr_np.3, pthread_setaffinity_np.3, pthread_tryjoin_np.3: Explain _np suffix

Add text to CONFORMING TO explaining that the "_np"
suffix is because these functions are non-portable.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Karsten Weiss <K.Weiss@science-computing.de>
15 years agopthread_attr_setaffinity_np.3: Remove EFAULT, add new EINVAL error
Michael Kerrisk [Wed, 5 Nov 2008 13:49:48 +0000 (08:49 -0500)] 
pthread_attr_setaffinity_np.3: Remove EFAULT, add new EINVAL error

EFAULT can't occur for these functions.  EINVAL can occur
for invalid 'attr' or 'cpuset' arguments.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_getaffinity_np.3: New link to new pthread_attr_setaffinity_np.3
Michael Kerrisk [Wed, 5 Nov 2008 04:40:45 +0000 (23:40 -0500)] 
pthread_attr_getaffinity_np.3: New link to new pthread_attr_setaffinity_np.3

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_attr_setaffinity_np.3: New page for pthread_attr_setaffinity_np(3) and pthrea...
Michael Kerrisk [Wed, 5 Nov 2008 04:39:33 +0000 (23:39 -0500)] 
pthread_attr_setaffinity_np.3: New page for pthread_attr_setaffinity_np(3) and pthread_attr_getaffinity_np(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_setaffinity_np.3: tfix
Michael Kerrisk [Wed, 5 Nov 2008 03:51:13 +0000 (22:51 -0500)] 
pthread_setaffinity_np.3: tfix

15 years agopthread_setaffinity_np.3: minor: fix function names in EXAMPLE diagnostic messages
Michael Kerrisk [Wed, 5 Nov 2008 03:40:58 +0000 (22:40 -0500)] 
pthread_setaffinity_np.3: minor: fix function names in EXAMPLE diagnostic messages

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_setaffinity_np.3: minor: Clean up SEE ALSO list
Michael Kerrisk [Wed, 5 Nov 2008 02:15:55 +0000 (21:15 -0500)] 
pthread_setaffinity_np.3: minor: Clean up SEE ALSO list

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_getaffinity_np.3: New link to new pthread_setaffinity_np.3
Michael Kerrisk [Wed, 5 Nov 2008 01:53:14 +0000 (20:53 -0500)] 
pthread_getaffinity_np.3: New link to new pthread_setaffinity_np.3

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_setaffinity_np.3: New page for pthread_setaffinity_np(3) and pthread_getaffin...
Michael Kerrisk [Wed, 5 Nov 2008 01:52:21 +0000 (20:52 -0500)] 
pthread_setaffinity_np.3: New page for pthread_setaffinity_np(3) and pthread_getaffinity_np(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoeventfd.2, getdents.2, mprotect.2, signalfd.2, timerfd_create.2, wait.2, backtrace...
Michael Kerrisk [Wed, 5 Nov 2008 01:42:45 +0000 (20:42 -0500)] 
eventfd.2, getdents.2, mprotect.2, signalfd.2, timerfd_create.2, wait.2, backtrace.3, clock_getcpuclockid.3, end.3, fmemopen.3, fopencookie.3, frexp.3, getaddrinfo.3, getdate.3, getgrouplist.3, getprotoent_r.3, getservent_r.3, gnu_get_libc_version.3, inet.3, inet_pton.3, makecontext.3, matherr.3, offsetof.3, pthread_attr_init.3, pthread_create.3, pthread_getattr_np.3, sem_wait.3, strftime.3, strtok.3, strtol.3, core.5: srcfix

s/\.R " "/\\\&/ as a way of getting a blank line after a .SS heading.
(Suggested by Sam Varshavchik <mrsam@courier-mta.com>)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosched_setaffinity.3: minor: rework EPERM text
Michael Kerrisk [Tue, 4 Nov 2008 22:06:01 +0000 (17:06 -0500)] 
sched_setaffinity.3: minor: rework EPERM text

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosched_setaffinity.2: Clarify EINVAL error for cpusetsize < kernel mask size
Michael Kerrisk [Tue, 4 Nov 2008 22:00:02 +0000 (17:00 -0500)] 
sched_setaffinity.2: Clarify EINVAL error for cpusetsize < kernel mask size

For sched_setaffinity(), the EINVAL error that occurs
if 'cpusetsize' is smaller than the kernel CPU set size only
occurs with kernels before 2.6.9.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosched_setaffinity.2: SEE ALSO: Add pthread_setaffinity_np(3)
Michael Kerrisk [Tue, 4 Nov 2008 21:36:45 +0000 (16:36 -0500)] 
sched_setaffinity.2: SEE ALSO: Add pthread_setaffinity_np(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agosched_setaffinity.2: wfix
Michael Kerrisk [Tue, 4 Nov 2008 18:56:30 +0000 (13:56 -0500)] 
sched_setaffinity.2: wfix

15 years agoreadlink.2: srcfix: Note that bufsiz has a signed type at kernel level
Michael Kerrisk [Tue, 4 Nov 2008 16:21:18 +0000 (11:21 -0500)] 
readlink.2: srcfix: Note that bufsiz has a signed type at kernel level

So on a direct syscall, the EINVAL could also occur for bufsiz < 0.
But at the moment, the error text is sufficiently vague
("bufsiz is not positive") that a change to the man page text
is probably not needed.

15 years agoepoll.7: Add error handling for epoll_wait() call in example code
Michael Kerrisk [Tue, 4 Nov 2008 15:56:17 +0000 (10:56 -0500)] 
epoll.7: Add error handling for epoll_wait() call in example code

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoepoll.7: Fix error handling after accept() in example code
Michael Kerrisk [Tue, 4 Nov 2008 15:53:36 +0000 (10:53 -0500)] 
epoll.7: Fix error handling after accept() in example code

Simply continuing after an error is in most cases wrong,
and can lead to infinite loops (e.g., for EMFILE).
So handle an error by terminating.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504202

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Olaf van der Spek <olafvdspek@gmail.com>
15 years agopipe.2: wfix: SYNPOSIS: add missing word "int"
Sam Varshavchik [Tue, 4 Nov 2008 14:16:00 +0000 (09:16 -0500)] 
pipe.2: wfix: SYNPOSIS: add missing word "int"

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoeventfd.2, mprotect.2, signalfd.2: ffix
Sam Varshavchik [Tue, 4 Nov 2008 14:03:49 +0000 (09:03 -0500)] 
eventfd.2, mprotect.2, signalfd.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_tryjoin_np.3: ffix
Sam Varshavchik [Tue, 4 Nov 2008 14:00:41 +0000 (09:00 -0500)] 
pthread_tryjoin_np.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoopen.2: tfix: in CONFORMING TO: s/POSIX.1-2001/POSIX.1-2008/
Ulrich Mueller [Tue, 4 Nov 2008 13:51:26 +0000 (08:51 -0500)] 
open.2: tfix: in CONFORMING TO: s/POSIX.1-2001/POSIX.1-2008/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoepoll.7: Improve example code
Michael Kerrisk [Sat, 1 Nov 2008 19:30:05 +0000 (14:30 -0500)] 
epoll.7: Improve example code

Fill in some gaps in example code (variable declarations,
adding listening socket to epoll set).
Give variables more meaningful names.
Other minor changes.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504202

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Olaf van der Spek <OlafvdSpek@gmail.com>
15 years agodup.2: wfix
Michael Kerrisk [Fri, 31 Oct 2008 01:43:16 +0000 (20:43 -0500)] 
dup.2: wfix

15 years agoumount.2: srcfix: remove out-of-date FIXME
Michael Kerrisk [Thu, 30 Oct 2008 17:26:25 +0000 (12:26 -0500)] 
umount.2: srcfix: remove out-of-date FIXME

15 years agoiso_8859-7.7: Add characters for Drachma and Greek Ypogegrammeni
Lefteris Dimitroulakis [Thu, 30 Oct 2008 16:08:19 +0000 (11:08 -0500)] 
iso_8859-7.7: Add characters for Drachma and Greek Ypogegrammeni

Lines for these two characters were added in the previous patch,
but the actual characters were not included in the 4th column
of the table.  This fixes that.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agopthread_exit.3: BUGS: thread group with a dead leader and stop signals
Michael Kerrisk [Thu, 30 Oct 2008 15:56:59 +0000 (10:56 -0500)] 
pthread_exit.3: BUGS: thread group with a dead leader and stop signals

Document the bug that can occur when a stop signal
is sent to a thread group whose leader has terminated.
http://thread.gmane.org/gmane.linux.kernel/611611
http://marc.info/?l=linux-kernel&m=122525468300823&w=2

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Bert Wesarg <bert.wesarg@googlemail.com>
15 years agosyscalls.2: srcfix: add FIXME
Michael Kerrisk [Thu, 30 Oct 2008 14:39:46 +0000 (09:39 -0500)] 
syscalls.2: srcfix: add FIXME

15 years agoChanges.old: wspfix
Michael Kerrisk [Thu, 30 Oct 2008 14:35:18 +0000 (09:35 -0500)] 
Changes.old: wspfix

15 years agoChanges.old: Add Contributors to 3.12 Changelog
Michael Kerrisk [Thu, 30 Oct 2008 13:47:52 +0000 (08:47 -0500)] 
Changes.old: Add Contributors to 3.12 Changelog

I forgot to do this before the 3.12 release.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agovfork.2: Child holds parent's memory until execve() or *termination*
Michael Kerrisk [Thu, 30 Oct 2008 13:12:12 +0000 (08:12 -0500)] 
vfork.2: Child holds parent's memory until execve() or *termination*

The page was phrased in a few places to describe the child as
holding the parent's memory until the child does an execve(2)
or an _exit(2).  The latter case should really be the more
general process termimation (i.e., either _exit(2) or abnormal
termination).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Valdis.Kletnieks@vt.edu
15 years agoChanges.old: Reformat 3.11 Changelog entries
Michael Kerrisk [Thu, 30 Oct 2008 02:09:46 +0000 (21:09 -0500)] 
Changes.old: Reformat 3.11 Changelog entries

To be consistent with format used in 3.12 changelog (and beyond)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoStart of man-pages-3.13: updating Changes and Changes.old
Michael Kerrisk [Thu, 30 Oct 2008 01:52:10 +0000 (20:52 -0500)] 
Start of man-pages-3.13: updating Changes and Changes.old

15 years agoStart of man-pages-3.13: updating .Announce and .lsm files
Michael Kerrisk [Thu, 30 Oct 2008 01:52:10 +0000 (20:52 -0500)] 
Start of man-pages-3.13: updating .Announce and .lsm files

15 years agoStart of man-pages-3.13: renaming .Announce and .lsm files
Michael Kerrisk [Thu, 30 Oct 2008 01:52:10 +0000 (20:52 -0500)] 
Start of man-pages-3.13: renaming .Announce and .lsm files

15 years agoReady for 3.12 man-pages-3.12
Michael Kerrisk [Wed, 29 Oct 2008 20:44:36 +0000 (15:44 -0500)] 
Ready for 3.12

15 years agoRemoved trailing white space at end of lines
Michael Kerrisk [Wed, 29 Oct 2008 20:43:44 +0000 (15:43 -0500)] 
Removed trailing white space at end of lines

15 years agoExpanded tabs
Michael Kerrisk [Wed, 29 Oct 2008 20:43:33 +0000 (15:43 -0500)] 
Expanded tabs

15 years agotimerfd_create.2, ctime.3, frexp.3, strftime.3, strtok.3, tty_ioctl.4, iso_8859-7...
Michael Kerrisk [Wed, 29 Oct 2008 20:36:12 +0000 (15:36 -0500)] 
timerfd_create.2, ctime.3, frexp.3, strftime.3, strtok.3, tty_ioctl.4, iso_8859-7.7: tstamp

15 years agoChanges: Update Changelog for 3.12 release
Michael Kerrisk [Wed, 29 Oct 2008 20:31:20 +0000 (15:31 -0500)] 
Changes: Update Changelog for 3.12 release

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agoopen.2: srcfix: add comments re NFS and O_APPEND
Michael Kerrisk [Wed, 29 Oct 2008 16:31:22 +0000 (11:31 -0500)] 
open.2: srcfix: add comments re NFS and O_APPEND

15 years agoreaddir.3: Fix text relating to DT_UNKNOWN and 'd_type' support
Christoph Hellwig [Wed, 29 Oct 2008 14:31:40 +0000 (09:31 -0500)] 
readdir.3: Fix text relating to DT_UNKNOWN and 'd_type' support

(This mirrors the previous change to getdents.2)
Some file systems provide partial support for 'dt_type',
returning DT_UNKNOWN for cases they don't support.
Update the discussion of 'd_type' and DT_UNKNOWN to
support this.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agogetdents.2: Fix text relating to DT_UNKNOWN and 'd_type' support
Christoph Hellwig [Wed, 29 Oct 2008 14:20:44 +0000 (09:20 -0500)] 
getdents.2: Fix text relating to DT_UNKNOWN and 'd_type' support

Some file systems provide partial support for 'dt_type',
returning DT_UNKNOWN for cases they don't support.
Update the discussion of 'd_type' and DT_UNKNOWN to
support this.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agovfork.2: grfix
Michael Kerrisk [Wed, 29 Oct 2008 13:34:38 +0000 (08:34 -0500)] 
vfork.2: grfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agovfork.2: minor: Clarify that standards text is current (not a draft).
Michael Kerrisk [Wed, 29 Oct 2008 13:33:00 +0000 (08:33 -0500)] 
vfork.2: minor: Clarify that standards text is current (not a draft).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
15 years agovfork.2: grfix
Michael Kerrisk [Wed, 29 Oct 2008 13:25:08 +0000 (08:25 -0500)] 
vfork.2: grfix

15 years agovfork.2: Clarify meaning of "child releases the parent's memory"
Michael Kerrisk [Wed, 29 Oct 2008 13:17:14 +0000 (08:17 -0500)] 
vfork.2: Clarify meaning of "child releases the parent's memory"

The man page was not explicit about how the memory used by
the child is released back to the parent.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Halesh S <halesh.s@india.com>
15 years agogetaddrinfo.3: Clarify error descriptions with some examples
Michael Kerrisk [Wed, 29 Oct 2008 03:31:02 +0000 (22:31 -0500)] 
getaddrinfo.3: Clarify error descriptions with some examples

Clarify the description of some errors by giving examples
that produce the errors.  (Text added for EAI_SERVICE and
EAI_SOCKTYPE.)

Also, add an error case for EAI_BADFLAGS.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: J.H.M. Dassen (Ray) <fsmla@xinara.org>