Commit Graph

329 Commits

Author SHA1 Message Date
jruoho 9a92149c5d Add sigevent(3), a manual page that describes the struct sigevent used by
the POSIX real time functions and timers.

XXX:	(a) Needs to be modified once real time signals are supported.
	(b) Could use an example.
2010-05-19 06:28:53 +00:00
wiz 87c3d5913f Slight wording improvement. 2010-05-18 18:02:32 +00:00
jruoho ba65e80ee0 Macros, not functions. 2010-05-18 11:20:12 +00:00
jruoho 177daa903e Fix .Nd. 2010-05-18 09:10:03 +00:00
jruoho 376c7b5fe6 Describe also the timespec() family of macros in timeradd(3). 2010-05-18 09:07:37 +00:00
jruoho 4e56c5c6e0 Fix a typo. 2010-05-18 07:31:15 +00:00
jruoho 497c121b01 Add an introductory example. 2010-05-18 07:04:27 +00:00
jruoho 1c11137b95 Note that struct bintime is described in timecounter(9). Improve wording. 2010-05-18 05:57:07 +00:00
jruoho f6554b77a6 Due previous, remove STANDARDS. 2010-05-17 20:32:09 +00:00
jruoho ccf0fdd5d1 Briefly describe and note also struct bintime. 2010-05-17 20:25:19 +00:00
jruoho 8499504d78 Remove trailing comma. 2010-05-17 12:27:13 +00:00
jruoho 50faa93541 Fix .Dt. 2010-05-17 08:09:20 +00:00
jruoho 5717af9360 Reference timeval(3). 2010-05-17 07:22:03 +00:00
jruoho 39a44ad3b2 Add a manual page that describes the basic structures in <sys/time.h>. 2010-05-17 07:10:15 +00:00
jruoho c7e72bf2a1 Fix the SYNOPSIS. 2010-05-16 15:56:39 +00:00
jruoho 15ccf6ccbe As was done with the man-page for <sys/types.h>, move dir(5) to dirent(3).
Add a table describing the stat <-> dirent types. Note IFTODT() and DTTOIF().
2010-05-16 15:33:29 +00:00
joerg e2f68b9903 Fix prologue 2010-05-14 02:45:39 +00:00
joerg 1670722e9e Fix prologue. \\ -> \e 2010-05-14 02:45:27 +00:00
joerg 7cd0670cf0 Fix prologue. Drop size of last column as it doesn't exist in all cases
and implicit last column handling will do TRT.
2010-05-14 02:45:02 +00:00
joerg b6b2d9476a \\ -> \e 2010-05-13 21:03:33 +00:00
joerg 41e6d3828c Reorder prologue 2010-05-13 19:29:01 +00:00
jruoho 09008336f5 Add a note that rb(3) is preferred for new code. 2010-05-05 06:24:43 +00:00
jruoho 09b3e2a888 Two small grammar fixes. 2010-04-28 19:47:34 +00:00
jruoho a87d51e681 Fix typo in XXX-comment. 2010-04-28 07:56:54 +00:00
jruoho 53a157cb98 Document ffs32(), ffs64(), fls32(), and fls64() from <sys/bitops.h>. 2010-04-28 07:35:30 +00:00
jruoho 67e7c628fb A small correction. Typos. 2010-04-22 08:42:34 +00:00
wiz dfc84806e9 Get rid of some unnecessary whitespace.
Add backslash before a dash to get a minus.
2010-04-22 06:55:07 +00:00
jruoho 8c26a8b2bd One small correction: .Ss instead of .Sh. 2010-04-22 06:49:56 +00:00
jruoho 526aa19c52 Rewrite types(5) as per perry@'s suggestion from few years back ("XXX this
document is rather musty. It needs a general update."). Also move it to the
right section from section 5. Ok wiz@.

To minimize maintenance costs, the content is mostly jargon around The
Standard. Only few NetBSD-specific types are mentioned as an example.
2010-04-22 06:48:28 +00:00
wiz 0788984015 Fix an xref and change word order slightly so it sounds better to me. 2010-04-21 18:43:26 +00:00
jruoho ad57969cf2 Fix a roff warning. 2010-04-21 18:07:11 +00:00
jruoho 71e904f60f Document __STRING(x) and __CONCAT(x, y) from <sys/cdefs.h>. 2010-04-21 18:04:38 +00:00
jruoho 09ec66f734 Back and forth: gcc(1) -> GCC. 2010-04-15 03:36:18 +00:00
njoly 31fe2769cc Add missing .El directive. 2010-04-14 16:30:50 +00:00
jruoho ec51eba88b GCC -> gcc(1). 2010-04-14 08:28:58 +00:00
jruoho 595fb4833b EXAMPLE -> EXAMPLES, GCC -> gcc(1), and minor markup changes. 2010-04-14 08:26:42 +00:00
jruoho 9e8e2a3402 Hook rb(3) to the build. 2010-04-13 10:46:10 +00:00
jruoho df0a5adb89 Document <stdlib.h>.
Written with minimum maintenance costs in mind; only the defined types and
macros are described.
2010-03-25 06:56:20 +00:00
joerg 165d9f9f8e Use .In instead of .Aq Pa for header files. 2010-03-22 18:36:27 +00:00
jruoho dd1725f2c7 Add a missing word introduced in the previous commit. Thanks, snj@. 2010-03-22 12:39:22 +00:00
wiz bac138f936 Mark up NULL with Dv, as usual. 2010-03-22 10:15:00 +00:00
jruoho dd8d793a6d Note that some definitions, such as NULL, were already in v4 UNIX. 2010-03-22 09:46:17 +00:00
jruoho 6cf60012b8 Small changes to wording and markup. 2010-03-22 08:04:25 +00:00
jruoho 08053de4ee Document the weird <iso646.h>. 2010-03-21 21:23:51 +00:00
jruoho 04ca1e2ee6 Document <inttypes.h>. 2010-03-21 19:42:51 +00:00
wiz be4c6ad05f Remove superfluous Pp. 2010-03-21 15:42:19 +00:00
jruoho 4b49213e2a Note that some of these were already in ANSI C.
XXX: Maybe someone with insight adds a word or two about the history?
2010-03-21 12:40:51 +00:00
jruoho 1d0ccd97f7 Reference stddef(3). 2010-03-21 12:36:21 +00:00
jruoho 0e1ddcbafa While at it, add also stddef(3). 2010-03-21 12:27:51 +00:00
jruoho 8969131ab4 Reference stdbool(3). 2010-03-21 11:13:36 +00:00
jruoho 166c436957 As we have added stdint(3) and tgmath(3), we may as well add stdbool(3). 2010-03-21 11:12:52 +00:00
wiz 94e9a9e252 Remove quotes around Nd argument, they are not needed. 2010-03-20 17:19:07 +00:00
jruoho a48c6c7a11 Add a manual page for <stdint.h>. From FreeBSD, by Mike Barcroft. 2010-03-20 16:33:51 +00:00
jruoho a3aeabbf13 Do not use .pp with %P, as noted by joerg@. 2010-03-20 14:45:18 +00:00
wiz b6fd2b0fef Sort SEE ALSO. New sentence, new line. 2010-03-20 11:18:59 +00:00
wiz 9e91ee2313 Serial comma; prepare for HTML-output. 2010-03-20 11:18:43 +00:00
jruoho 5f9d70bc72 Add the (ACM) journal where this appeared. Fix URL. 2010-03-20 10:26:06 +00:00
joerg cd786ea4c3 Add man page for fast_divide32. 2010-03-19 20:11:21 +00:00
jruoho 54a337108a Some cosmetic modifications, including removal of white space. 2010-03-19 19:36:27 +00:00
dyoung 8149351614 First draft of a manual page for Matt Thomas' red-black trees. Please
review for correctness.
2010-03-19 18:02:22 +00:00
jruoho 2e269a8df5 Remove some /* comments */ in the example so that it will nicely fit into 80
columns.
2010-03-02 06:52:53 +00:00
jruoho e45844d016 As per suggestions from mrg@, improve the lead paragraph and stress that
these macros are not recommended. Also remove the example as it feels a
little frivolous and takes too much space.
2010-03-02 06:20:03 +00:00
jruoho 9f37c55e22 Speak about typical instead of possible usage in the example. 2010-03-02 05:59:56 +00:00
wiz 3db7ca64a2 Serial comma. 2010-03-01 21:37:18 +00:00
wiz 80d11c3e98 Uppercase Dt, make HTML-ready. 2010-03-01 21:34:30 +00:00
jruoho 61b1cb6f57 Use buf[BUFSIZE] instead of *buf[BUFSIZE] in the example. 2010-03-01 17:06:18 +00:00
jruoho 513f4daa7e Add tgmath(3). From FreeBSD.
XXX: Needs proofreading, Matt?
2010-03-01 16:36:15 +00:00
jruoho cf30579851 Document __arraycount. 2010-03-01 16:02:34 +00:00
wiz 756215cc8a Sort SEE ALSO. Remove unnecessary Pp. 2010-03-01 15:30:47 +00:00
jruoho 7ba4dfa458 Document __UNCONST and __UNVOLATILE.
XXX: If there is anything to add or correct, please do so!
2010-03-01 13:44:09 +00:00
wiz 5905514238 Add offsetof(3) man page. From Thomas Pfaff via OpenBSD. 2010-02-27 22:04:37 +00:00
wiz de07982130 Remove one unnecessary Ns. (Rest still ugly.) 2010-01-24 22:54:14 +00:00
njoly af1a17946d Do not link timeradd.3 to itself. 2010-01-24 22:21:34 +00:00
jruoho cc376dc80f Add timeradd(3). 2010-01-24 21:05:45 +00:00
joerg 161cc78261 Avoid using .Sm on/.Sm off if that results in the latter getting an
additional argument.
2010-01-24 20:03:24 +00:00
jruoho 18e403cedf Add the missing $Id$ tag. 2010-01-24 12:58:37 +00:00
jruoho 8c8f49bb66 Add timeradd(3) from FreeBSD. Needs proofreading.
ok wiz@
2010-01-24 11:14:04 +00:00
wiz 04ed6a9ef0 Use Dv for defined values. 2010-01-18 15:36:11 +00:00
skrll 103d303e8d Various improvements to bring closer to reality. Mostly from OpenBSD.
More improvements possible / probable.
2010-01-18 15:25:52 +00:00
rmind 993cb03302 Drop 3rd and 4th clauses from David Young's license.
Reviewed and approved by dyoung@ (copyright holder).
2009-10-19 23:19:37 +00:00
wiz b328cb4d6a Drop trailing whitespace. Sort SEE ALSO. Make HTML-ready. Fix Dt argument case. 2009-05-27 19:23:28 +00:00
snj d06e576b0d Fix a few spelling errors. 2009-05-27 17:47:46 +00:00
mschuett 0d53a16d76 Add queue macros SLIST_FOREACH_SAFE, STAILQ_FOREACH_SAFE, STAILQ_LAST,
SIMPLEQ_CONCAT, and SIMPLEQ_LAST.

Remove seperate definitions outside of queue.h.
2009-04-20 09:56:07 +00:00
perry 088cca6a88 add missing MLINKS for bitstring.3 2009-04-04 01:45:18 +00:00
joerg 535e7ea662 .Ud doesn't take arguments. 2009-03-13 14:23:30 +00:00
wiz 58a4d459ff Do not mark up "and". Bump date for previous. 2009-03-11 08:29:56 +00:00
mrg d31da7cb16 add a SIMPLEQ_FOREACH_SAFE() macro.
document it, and the TAILQ versions.
2009-03-11 06:51:53 +00:00
joerg 10d66a712f Remove use of .Xo/.Xc to workaround ancient macro argument limit. 2009-03-10 23:42:45 +00:00
joerg 4213d1261a Remove use of .Xo/.Xc to workaround ancient macro argument limit. 2009-03-10 23:32:26 +00:00
joerg 997634fe14 Fix preamble to match order set out by mdoc(7). Discussed with wiz. 2009-03-09 19:24:26 +00:00
dholland 235284eb23 Document that the element argument of RB_REMOVE must be present in the
tree. Minor adjoining grammar fix. PR 39684.
Bump date.
2009-02-14 22:07:04 +00:00
apb 3fa869bc3a Add a NOTE saying that invalid usage leads to undefined behaviour.
Inspired by PR 39684.
2008-10-07 13:03:50 +00:00
jnemeth 054e1e7507 PR/39381 - Taylor R Campbell -- missing line break causing funny formatting 2008-08-19 22:54:53 +00:00
christos 6fe0bc9474 and adjust it to our liking. 2008-06-20 14:35:10 +00:00
christos 0a69cbb3fd steal the OpenBSD man page. 2008-06-20 14:34:20 +00:00
martin cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
tnn 14cd56faf0 Portable code should use RTLD_LAZY, not DL_LAZY. 2008-03-31 00:23:15 +00:00
elad 98c50c91dd Add TAILQ_CONCAT() and STAILQ_CONCAT(), from FreeBSD. 2007-12-11 11:24:21 +00:00
pooka 1d8cbeebb1 Note that CIRCLEQ_LOOP first appeared in NetBSD 4.0. 2007-10-22 15:01:18 +00:00
pooka 09a4bf893f bump date
Wrath of wizd avoided because of quick tip from Juan RP.
2007-08-29 13:57:02 +00:00
pooka 94e818b264 Add table which summarizes operations supported by each queue type.
from Stathis Kamperis in PR misc/36857
2007-08-29 13:43:18 +00:00
kiyohara 44c89c7646 Replace to Matthew Orgass's slhci(4).
http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
2007-08-15 03:53:08 +00:00
wiz a297486471 Sort SEE ALSO. 2007-01-23 20:32:05 +00:00
jdc 3cfa1eec0a Add additional cross-references (from Slava Semushin). 2007-01-22 11:57:44 +00:00
wiz 6fb7165c7f Sort sections. Remove unnecessary quotes. Use macros for <>
for HTML output. Some nits.
2006-09-03 00:04:02 +00:00
dyoung 8cd106d3d2 Per discussion on tech-kern and tech-userlevel, move the bit-twiddling
macros, __BIT, __BITS, SHIFTIN, SHIFTOUT, and __arraycount() from
lib/libkern/libkern.h to sys/cdefs.h.  Add a __-prefix to SHIFTIN
and SHIFTOUT, and add a manual page for the bit-twiddling macros,
bits(3).

Make the __BIT and __BITS macros "widthless," as best I can, by
changing their type to uintmax_t from uint32_t.  XXX The manual
page lags this change by a bit.

Define __PRIxBIT and __PRIxBITS printf(3) format strings.
2006-08-31 19:24:37 +00:00
pooka cbb99f35f7 document CIRCLEQ_LOOP 2006-03-07 18:13:43 +00:00
pooka 6db9fd4698 * CICRLEQ -> CIRCLEQ in some places (it's much easier to pronounce)
* be more explicit that CIRCLEQ_FOREACH{,_REVERSE) traverse the queue
  exactly once
2005-12-15 11:41:58 +00:00
wiz 4785baa84f Use Dv instead of Sy for macros.
Do not Xr to ourselves, use .Nm instead.
2005-10-03 19:16:35 +00:00
rpaulo 9622c7ed25 Add sysexits.3 2005-09-30 20:55:26 +00:00
rpaulo 13419de87f Add a manual page for <sysexists.h>, from FreeBSD with a minor
adjustments (removed reference to the style(9) man page added NetBSD
to the HISTORY section) by me.
2005-09-30 20:54:58 +00:00
kleink d272861eb2 In the wake of C99 (which dropped the implicit int), add a type specifier
to the declarations to keep them warning-free; also add some clarifying
words that the globals are _located at_ those addresses.

Inspired by a conversation with Takayoshi Kochi.
2005-09-01 12:39:33 +00:00
kleink d5d8554049 Add restrict qualifiers to dlsym() (XSI) and dladdr() arguments. 2005-03-21 13:25:22 +00:00
wiz 34c1c241e2 Quote dot at beginning of line, otherwise it will be interpreted
as the start of a macro. From jmc@openbsd.
2005-03-08 10:53:34 +00:00
ragge cd3e4762f1 Fix CIRCLEQ example bug, from Peter A Jonsson. 2005-01-13 15:13:10 +00:00
snj 1a1000bb12 Kill an unnecessary argument to Nm. 2005-01-09 06:35:30 +00:00
jmmv 69a6878485 Fix typo. 2004-11-11 14:47:02 +00:00
wiz 9ce65744fa Fix typo, and comment out link to non-existing usb(3); from Sergey Svishchev. 2004-11-10 16:38:29 +00:00
wiz 4172541e76 Add dladdr to NAME; fix type of dli_saddr; from Sergey Svishchev. 2004-11-10 16:37:19 +00:00
wiz 0cef3f7ca0 Add bit_ffc to NAME; sort functions in SYNOPSIS; from Sergey Svishchev. 2004-11-10 16:36:28 +00:00
snj 60a7c7cacc Fix two trailing xrefs and kill an unnecessary argument to Nm. 2004-10-16 06:01:52 +00:00
lukem a90e0c0e64 Add MLINKS for:
CIRCLEQ_FOREACH(3) CIRCLEQ_FOREACH_REVERSE(3)
	LIST_FOREACH(3)
	SIMPLEQ_FOREACH(3)
	SLIST_EMPTY(3) SLIST_ENTRY(3) SLIST_FIRST(3) SLIST_FOREACH(3)
	SLIST_HEAD(3) SLIST_HEAD_INITIALIZER(3) SLIST_INIT(3)
	SLIST_INSERT_AFTER(3) SLIST_INSERT_HEAD(3) SLIST_NEXT(3)
	SLIST_REMOVE(3) SLIST_REMOVE_HEAD(3)
	STAILQ_EMPTY(3) STAILQ_ENTRY(3) STAILQ_FIRST(3) STAILQ_FOREACH(3)
	STAILQ_HEAD(3) STAILQ_HEAD_INITIALIZER(3) STAILQ_INIT(3)
	STAILQ_INSERT_AFTER(3) STAILQ_INSERT_HEAD(3) STAILQ_INSERT_TAIL(3)
	STAILQ_NEXT(3) STAILQ_REMOVE(3) STAILQ_REMOVE_HEAD(3)
	TAILQ_FOREACH(3) TAILQ_FOREACH_REVERSE(3) TAILQ_LAST(3) TAILQ_PREV(3)
2004-04-18 23:42:23 +00:00
lukem 2f6ed1a801 Reorder macros within a queue type to match queue.h definition order.
Document STAILQ_* as compatibility macros for SIMPLEQ_*.
Document TAILQ_LAST and TAILQ_PREV.
2004-04-18 23:39:13 +00:00
pooka 0ee5148aa5 Rather than using RB_EMPTY() for checking if a splay tree is empty,
suggest using it for checking if a red-black tree is empty.
2004-04-14 11:05:19 +00:00
wiz 6314ad1118 Bump date for pooka. 2004-04-13 20:40:26 +00:00
pooka d729cba0a7 Note that SLISTs came from FreeBSD to give people an idea that
they're not necessarily a part of 4.4BSD derived implementations.
2004-04-13 10:39:29 +00:00
snj 17709cebba Err, nevermind. 2004-03-20 05:03:32 +00:00
snj 11aab027f7 Correct usb Xref. 2004-03-20 05:02:00 +00:00
wiz dca9ccd375 Use St -isoC-9X instead of St -isoC9X, to be in sync with groff. 2003-09-08 17:54:31 +00:00
agc 075022b349 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22309, verified by myself.
2003-08-07 10:30:41 +00:00
wiz d3d460c513 Nd argument needs no quotes; use .In instead of .Fd ...; mark up
NULL as Dv instead of Va (it's not really variable, is it? :) ).
Replace & with \*[Am].
2003-07-09 14:40:53 +00:00
yamt 0a7c59f953 tree(3) manpage from OpenBSD. 2003-07-07 14:39:25 +00:00
lukem 10e23cd129 The actual environment variable is `LIBC_DIAGASSERT' not `LIBC_DIAGNOSTIC'.
Spotted by Nathan Williams < nathanw @ >.
2003-06-27 00:04:34 +00:00
wiz 4e4095f195 Grammar fix, from jmc@openbsd. 2003-05-20 10:10:23 +00:00
wiz e2b9f7144c Use .In instead of .Fd. 2003-04-16 16:09:04 +00:00
wiz 472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
perry 29c2683224 preceeding->preceding, from Igor Sobrado PR misc/19814 2003-03-31 18:56:13 +00:00
yamt d43d55bc3a mention argument promotion and change example
as well.
from OpenBSD.
2002-08-18 08:57:07 +00:00
lukem 06de426449 SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
2002-06-01 23:50:52 +00:00
lukem 874c812dae correct descriptions of SLIST_REMOVE_HEAD() and SIMPLEQ_REMOVE_HEAD() 2002-06-01 06:08:07 +00:00
ross 4fa402f116 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-13 08:17:26 +00:00
wiz 384ddf7036 s/All four/All five/ 2002-02-07 17:15:23 +00:00
wiz 7d3c2b8400 Drop some trailing whitespace. 2002-02-06 19:29:06 +00:00
kleink e930ad8aed KNF example code snippet. 2002-02-05 01:47:42 +00:00
kleink d4e99a46ec Add a separate varargs(3) manual page, reusing stdarg(3) contents, and
remove the name `varargs' from stdarg(3); inspired by conversation with
Charles Hannum.
2002-02-04 20:09:46 +00:00
kleink 1b7ae2b741 While va_{start,arg,end} conform to ISO C90, they were certainly not
introduced in there but ANSI C; pointed out by Charles.
2002-02-04 18:27:38 +00:00
wiz c90ca864f2 Fix typo in macro. 2002-01-21 18:03:59 +00:00
gmcgarry 3a3e29d852 General cleanup; xref kafs(3) 2001-11-23 07:45:54 +00:00
gmcgarry 30a683b2cc - Xr cdk(3), for what is worth
- describe libposix with xrefs
2001-11-23 07:18:52 +00:00