pthread_mutex_init manual page

Ken Smith kensmith at cse.Buffalo.EDU
Wed Oct 1 10:18:09 PDT 2003


We received a PR that pointed out this section of the pthread_mutex_init(3)
manual page is not proper English:

 
     [EAGAIN]           The temporarily lacks the resources to create another
                        mutex.
 
I looked at the source code for it in:

	-current /usr/src/lib/libpthread/thread/thr_mutex.c
 	-stable /usr/src/lib/libc_r/uthread/uthread_mutex.c

In both cases unless I'm missing something that error code will never
be returned.

Should I fix it to say "The system temporarily lacks a non-memory
resource to create another mutex" (which I got from a programming
book I had on hand) or should I remove the reference to that error
code?

Thanks.

-- 
						Ken Smith
- From there to here, from here to      |       kensmith at cse.buffalo.edu
  there, funny things are everywhere.   |
                      - Theodore Geisel |


More information about the freebsd-threads mailing list