Commit Graph

142 Commits

Author SHA1 Message Date
sheldonh
51a648666d Whitespace-only change: fix hard sentence breaks in previous commit. 2000-08-28 10:11:56 +00:00
phantom
aadcb1fa9c Apply fixes from NetBSD to bring this manual page into reallity.
Inspired by: ru & 4.4BSD Design and Implementation
Obtained from: NetBSD
2000-08-28 09:27:28 +00:00
markm
6eedf9da32 Fix minor typo. 2000-07-27 19:13:32 +00:00
jasone
531e62c825 pthread_once --> pthread_once_t. 2000-07-19 16:38:07 +00:00
jasone
3006cee4d8 Change my email address in the copyright notices for the sake of consistency
(jasone@canonware.com --> jasone@freebsd.org).
2000-07-18 01:38:19 +00:00
jake
5b7ef4dfa5 Add MLINKS for queue(3) FOREACH_REVERSE and HEAD_INITIALIZER macros.
Forgotten by:	jake, archie
2000-06-12 15:28:08 +00:00
jake
dd687fadf8 (1) document *_HEAD_INITIALIZER
(2) fix a STAILQ_HEAD that should have been STAILQ_FIRST

Requested by:	(1) bde
		(2) W Gerald Hicks <jhix@mindspring.com>
2000-06-10 16:41:07 +00:00
chris
ef06afc4d3 Fix a misspelling: undefied -> undefined 2000-05-27 22:02:32 +00:00
phantom
b1bd5e2cc7 Add MLINKS for all macros decribed in queue.3 manpage. 2000-05-12 07:58:37 +00:00
bde
eae1aa7098 "Fixed" missing include in synopsis. POSIX.1-1996 only specifies
including <signal.h>, but that must be a bug in POSIX.1, because it
also specifies that the relevant prototype is [only] in <pthread.h>.
2000-05-11 16:13:18 +00:00
bde
5e51fa49c7 Fixed misspelling of a struct tag in a function parameter type. 2000-05-11 16:03:38 +00:00
sheldonh
14e9cd73ea Fix miscellaneous mdoc macro argument limit infringements.
PR:		18465
Reported by:	Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
2000-05-09 14:02:06 +00:00
phantom
a477158490 mdoc(7) cleanup:
. use real function names as `.Nm' macro argument in NAME section. It allows
them to appear in apropos(1) or whatis(1) output.

. replace empty lines with `.Pp' macro.

. replace hardcoded standard names with their `.St' macro equivalents.

. sort cross references in SEE ALSO section
2000-05-04 08:05:45 +00:00
jasone
2ba660079d Add missing .El macro. 2000-05-03 08:50:43 +00:00
jasone
03d029f134 Add missing man pages. Fix various compliance bugs, mostly having to do with
error return values.  Implement pthread_mutexattr_gettype().

PR:		docs/16537, docs/17538
2000-05-02 06:51:40 +00:00
archie
c0981040e1 Document TAILQ_FOREACH_REVERSE() and CIRCLEQ_FOREACH_REVERSE() macros.
Submitted by:	Jake Burkholder <jburkhol@home.com>
2000-05-01 18:22:59 +00:00
phantom
c8cd1c858c Introduce .Lb macro to libc_r manpages. 2000-04-22 15:50:29 +00:00
jhb
91203ebc06 Update STAILQ example to use STAILQ_REMOVE_HEAD instead of
TAILQ_REMOVE_HEAD.

PR:		docs/17590
Submitted by:	Benno Rice <benno@netizen.com.au>
2000-03-27 13:26:45 +00:00
sheldonh
244b8ead7d Remove more single-space hard sentence breaks. 2000-03-02 14:54:02 +00:00
sheldonh
329223e6f2 Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-02 09:14:21 +00:00
sheldonh
b45b9e3cde Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 14:50:24 +00:00
nik
c07240daf8 s/curses/ncurses/
PR:             docs/17061
Submitted by:   Udo Erdelhoff <ue@nathan.ruhr.de>
2000-03-01 10:46:05 +00:00
unfurl
faf23457e0 Removed pthread(3) references to non-existant pthread related manpages.
I discussed this with Jason Evans and he's put these on his to-do list.

PR:		16537
Submitted by:	AnarCat <beaupran@iro.umontreal.ca>
Approved by:	jasone
2000-02-18 02:10:38 +00:00
sheldonh
dd11088a42 Mandate the inclusion of <ieeefp.h> instead of <floatingpoint.h>. The
latter is just wrong.

There were many other problems spotted by bde, none of which are
addressed here.

Reviewed by:	bde
1999-12-24 08:43:19 +00:00
bde
6e13854ccb Fixed bitrot in synopsis. The change from "int *pshared" to "int pshared"
hadn't reached here.
1999-12-23 16:51:27 +00:00
phantom
606120b2a0 Sync with reality.
PR:		docs/15036
Submitted by:	Jake Burkholder <jburkhol@home.com>
1999-12-19 19:12:14 +00:00
phantom
47918de226 Fix typos
PR:		docs/14858
Submitted by:	OKAZAKI Tetsurou <okazaki@be.to>
1999-12-17 14:48:00 +00:00
chris
5a03b41405 Document pthread_create().
Reviewed by:	jasone
1999-12-16 22:36:54 +00:00
alfred
e7efcb5302 add pthread_cancel, obtained from OpenBSD.
eischen (Daniel Eischen) added wrappers to protect against cancled
threads orphaning internal resources.

the cancelability code is still a bit fuzzy but works for test
programs of my own, OpenBSD's and some examples from ORA's books.

add readdir_r to both libc and libc_r

add some 'const' attributes to function parameters

Reviewed by: eischen, jasone
1999-11-28 05:38:13 +00:00
peter
76f0c923fe $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
rse
592af9e5e3 Fix EINVAL related descriptions. 1999-08-20 07:00:22 +00:00
chris
e4023cb6fa Bad reference exit(2) changed to exit(3) 1999-08-14 08:05:46 +00:00
nik
f7a8bc4c04 Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:50:10 +00:00
jmg
9324a238d2 fix the links to the bitstring man page..
fix wording in man page, through != to
1999-06-25 04:51:49 +00:00
alex
f43ff516fd Removed extraneous comma in xrefs. 1999-05-14 21:03:23 +00:00
alex
e9fc5ab540 Added missing comma in xrefs. 1999-05-14 21:03:11 +00:00
kris
6f402caa86 Minor punctuation/grammar nits. 1999-04-30 13:12:44 +00:00
alex
787e89e027 Typo fix (set --> get).
Obtained from:	OpenBSD (David Leonard)
1999-03-22 23:13:37 +00:00
bde
504669ca2e Fixed bitrot in synopsis (some const poisoning hadn't reached here). 1999-03-05 18:43:00 +00:00
wollman
f66279e270 Fix typo by rewriting sentence. 1999-01-26 16:59:02 +00:00
alex
9fc99cb50c Added pthread read/write locks. 1998-09-12 13:53:58 +00:00
alex
fe02148d3f Implement pthread read/write locks as defined by Version 2 of the Single
UNIX Specification.

As with our standard mutexes, process shared locks are not supported at
this time.
1998-09-07 19:01:43 +00:00
wosch
68cda92e4a Sort cross references. 1998-08-31 16:41:09 +00:00
bde
b0f1ad7788 Changed prototype in synopsis to match prototype in <pthread.h>. 1998-08-03 16:54:51 +00:00
alex
5d69d2598b The pthreads standard has been published. Change:
...is expected to conform to IEEE (``POSIX'') Std 1003.1c when it is
   published.
to:
   ...conforms to ISO/IEC 9945-1 ANSI/IEEE (``POSIX'') Std 1003.1 Second
   Edition 1996-07-12.

Discussed with:	jb
1998-08-03 00:58:37 +00:00
phk
6b7f7b2376 I've put together man pages for the pthread_cleanup, pthread_cond, and
pthread_mutex routines. I've also tweaked pthread_create.3 to point to
pthread_cleanup_push(3) and pthread_cleanup_pop(3).

PR:		7450
Submitted by:	Brian Cully <shmit@kublai.com>
1998-07-31 09:09:19 +00:00
jkoshy
0d7d76d982 Spelling corrections.
PR: 6868
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-06 05:50:53 +00:00
jraynard
0db69331c5 Typo fixes 1998-05-03 22:59:47 +00:00
jb
ab575a6efe Add a reference to the gcc linker option -pthread that is part of
the FreeBSD configuration LIB_SPEC.
1998-04-10 09:33:09 +00:00
jb
a6ff3fe2e9 This function compiles with the standard, so say so. 1998-04-03 09:12:19 +00:00
jb
449d1d74af This function compiles with the standard, so say so.
Add a note about not touching errno and warn about previous drafts
of the standard which changed the level of indirection to the thread
argument. POSIX had a bit of trouble deciding what to do. So anyone
coding to both draft 4 and draft 10 (the final draft) will get burnt
by this function. I did. Grrr.
1998-04-03 09:11:15 +00:00
bde
ad583a7187 Fixed a function arg type in the synopsis. 1998-03-23 13:07:17 +00:00
jlemon
856becd843 Document the fpgetprec/fpsetprec functions in their man page.
Add cross-references to the elusive fpsetmask() function to various other
man pages.
Reviewed by:	bde
1998-02-04 22:30:20 +00:00
alex
410918fc30 Expanded cross references. 1998-01-02 19:22:52 +00:00
alex
fbc0e8b964 Typo fix.
Removed "...when it is published" from conformity statement.
1998-01-02 19:19:50 +00:00
hoek
100ffb8b0a Use consistent spelling,
writeable -> writable (recall prior debate over this? :-)
	initialise -> initialize
	recognise -> recognize

Merry Christmas! :)
1997-12-25 09:36:42 +00:00
steve
376460ca5f Update the man page to reflect that libc_r is built as part
of make world unless the '-DNOLIBC_R' option is given to make(1).

PR:		4710
Submitted by:	Magnus Enbom <dot@tinto.campus.luth.se
1997-11-05 03:54:11 +00:00
bde
bf2cc57012 Fixed type bugs in synopsis. Some of the typedefs that were used here
haven't existed for years, if they ever existed.  The "prototypes" are
actually for macros, so they are difficult to check automatically.
1997-04-13 14:19:59 +00:00
bde
302d7fa018 Fixed misuse of .Ft for enum members. (.Fa seems to be the best
available macro for enum, struct and union members.  .Ft seems to
be the best available macro for enum, struct and union tags and
types).

Fixed missing void arg types.
1997-03-19 20:42:18 +00:00
bde
2e6eb4413d Fixed wrong number of args in STAILQ_REMOVE_HEAD() in synopsis. 1997-03-19 02:57:50 +00:00
mpp
472a3946c4 The CIRCLEQ_ENTRY example was wrong. Part of PR# 2917. 1997-03-09 00:49:00 +00:00
jmg
bfd1ca354f add missing cvs Id lines. 1997-03-07 03:28:23 +00:00
peter
6b08958c64 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
peter
d69a45675f Revert $FreeBSD$ back to $Id$ 1997-02-22 13:26:29 +00:00
jmg
89db977f7e Bring intro(3) a bit closer to reality:
1)	comment out xref to non-existant libc(3)
2)	comment out reference to Fortran specific section (3f)
3)	add libkvm with reference to kvm(3)
4)	comment out xref to non-existant pc(1)
5)	comment out libplot and libplotf77
6)	fix problem with -ltermcap not being parenthesized
7)	sort files listing

still missing most of the libraries that exist in /usr/lib.

Closes PR#1151
1997-02-17 08:30:16 +00:00
mpp
09b7521f96 Minor mdoc cleanup. 1997-01-31 00:38:18 +00:00
jmacd
45f2876f9b I just found a bug in my program, I was calling va_arg (..., char),
when parsing a printf-like arg list.  Looking for someone to blame,
I noticed that the man page has a bad example.  It clearly says at
the top that types following the last known argument are passed after
their default type conversions, and then later the example uses

	va_arg (..., char);

so I fixed it.
1997-01-30 10:22:00 +00:00
wosch
6d0dbd7455 Sort cross references. 1997-01-20 23:23:22 +00:00
jkh
808a36ef65 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
wosch
71f5160702 Sort cross references. 1997-01-13 00:25:51 +00:00
phk
beaf8b0d57 Add SLIST_EMPTY, SLIST_FIRST, SLIST_NEXT.
Is it time to split this into one "intro" type and a number of
detailed pages ?
1996-12-29 21:21:16 +00:00
wosch
89dea7c61d add missing comma(s) in .Xr macros 1996-09-23 22:24:39 +00:00
wosch
d3f8d45ce4 fix .Xr macro 1996-09-21 15:08:10 +00:00
mpp
5bf747eb4e Use the .Bx macro where appropriate. 1996-08-22 23:39:32 +00:00
julian
7350d1d3b2 Submitted by: John Birrell <cimaxp1!jb@werple.net.au>
Here are the diffs for libc_r to get it one step closer to P1003.1c
These make most of the thread/mutex/condvar structures opaque to the
user. There are three functions which have been renamed with _np
suffixes because they are extensions to P1003.1c (I did them for JAVA,
which needs to suspend/resume threads and also start threads suspended).

I've created a new header (pthread_np.h) for the non-POSIX stuff.

The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented
doesn't work. I think its best to delete it. I don't think libc_r needs
tags anyway, 'cause most of the source is in libc which does have tags.

also:

Here's the first batch of man pages for the thread functions.
The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was
inherited from /usr/src/lib/libc/Makefile that should only be done with
libc.

also:

I should have sent this diff with the pthread(3) man page.
It allows people to type

make -DWANT_LIBC_R world

to get libc_r built with the rest of the world. I put this in the
pthread(3) man page.  The default is still not to build libc_r.


also:
The diff attached adds a pthread(3) man page to /usr/src/share/man/man3.
The idea is that without libc_r installed, this man page will give people
enough info to know that they have to build libc_r.
1996-08-20 08:22:01 +00:00
mpp
cbdea5f14c Another man page with a messed up .Dd line. 1996-07-11 02:57:03 +00:00
alex
0b524343aa Indicate that assert exits with abort(3) instead of _exit(2). Closes
PR 1317.

Reviewed by:	alex
Submitted by:	Cove Schneider <cove@brazil.nbn.com>
1996-06-12 23:46:47 +00:00
wosch
e774799ebe add manpage links
TAILQ_EMPTY.3 -> queue.3
TAILQ_FIRST.3 -> queue.3
TAILQ_LAST.3 -> queue.3
TAILQ_NEXT.3 -> queue.3
1996-05-29 00:58:47 +00:00
phk
14011f8f83 Document 5 new macros in TAILQ family. 1996-04-08 07:54:04 +00:00
mpp
3c57dc7753 Correct some man page xrefs, and some other minor changes to bring some
man pages up to mdoc guidelines and fix some minor formatting glitches.
Also fixed a number of man pages to not abuse the .Xr macro to
display functions and path names and a lot of other junk.
1996-04-08 04:18:31 +00:00
mpp
de97bb80c5 Add man page links for the SLIST_* and STAILQ_* macros that were added
recently.
1996-04-05 20:57:47 +00:00
joerg
a8d7ddd754 Add sysexits(3). It's horrible to always examine the include file for
this.
1996-03-31 22:33:54 +00:00
gibbs
fb79ac52c1 Update the queue man page for the new SLIST and STAILQ macros. 1996-03-31 03:23:16 +00:00
gibbs
7b4fbe06e3 4.4Lite2 implemented the LIST_INSERT_BEFORE and TAILQ_INSERT_BEFORE
exactly as I did (should have checked there first I guess) except my
macro for TAILQ_INSERT_BEFORE took an unneeded arg.  We now match 4.4Lite2.

Suggested by: Jeffrey Hsu <hsu@FreeBSD.org>
1996-02-12 08:20:54 +00:00
mpp
ac7bc7dc91 Added some missing MLINKS for section 3 man pages.
Also corrected a few minor formatting errors, file location and cross
references in some of the section 3 man pages.

This shuts up a lot of the output from "manck" for section 3.
1996-02-09 00:45:45 +00:00
mpp
511d4f82b2 Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
gibbs
ecf346b070 Add LIST_INSERT_BEFORE and TAILQ_INSERT_BEFORE.
Change examples to actually free() the nodes removed from lists.
Give examples of faster list deletion routines.
1996-01-29 03:23:05 +00:00
bde
11596b653f Remove private rules for clean, depend, lint, tags and install.
The private clean rules have been broken since we started
building compressed man pages in the obj directory and the
others don't do anything different from the general rules.
1995-10-21 11:02:01 +00:00
phk
3248f0f571 the man-link for moncontrol soesn't belong here... 1995-10-15 17:39:21 +00:00
bde
0821aad944 Obtained from: 1.1.5 (originally by Andrew Moore)
Add the manpage for the stuff in <machine/floatingpoint.h>.
1995-03-18 16:54:35 +00:00
wollman
7a77128a94 Make man page installation work for ``unattached'' and kernel pages. 1994-08-09 18:41:38 +00:00
rgrimes
b0d61785ca BSD 4.4 Lite Share Sources 1994-05-30 19:09:18 +00:00