Commit Graph

91 Commits

Author SHA1 Message Date
agc eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
salo 99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
wiz 8e516dc8e7 Misc. fixes from jmc@openbsd. 2003-05-10 12:14:26 +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 8a49ec08e4 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
itojun 9134efabd0 use strlcpy where it is more appropriate. 2002-11-17 01:51:24 +00:00
wiz 590d9ea5f8 -1 -> \-1. 2002-10-01 16:04:47 +00:00
wiz d3e68b8ec7 New sentence, new line. From Robert Elz. 2002-10-01 16:03:57 +00:00
wiz e8e0360410 Sort sections. Update Dd for EXAMPLES addition. 2002-08-10 09:07:15 +00:00
yamt 0c2c7b9a5e bring in EXAMPLES sections from openbsd. 2002-08-10 02:41:21 +00:00
wiz d56bb7c2ec __STDC__ is always defined on NetBSD. 2002-05-26 11:48:00 +00:00
ross 814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
wiz d052707e74 Sort sections and SEE ALSO. 2001-09-16 03:02:43 +00:00
wiz a40c1b1d97 Standardize section header. 2001-09-16 03:02:30 +00:00
wiz 260d59cdbe Boring whitespace fixes. 2001-09-16 02:57:26 +00:00
mycroft e6076182eb Delint. 2000-01-22 22:30:08 +00:00
jdolecek 79fc686d91 remove the list of signals and xref signal(7) instead 1999-10-06 17:10:08 +00:00
lukem d896261208 back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
1999-09-20 04:38:56 +00:00
lukem b48252f365 * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
  and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

		_DIAGASSERT(path != NULL)
	#ifdef _DIAGNOSTIC
		if (path == NULL) {
			errno = EFAULT;
			return (-1);
		}
	#endif
1999-09-16 11:44:54 +00:00
garbled 38c96853cf Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Wheee!
1999-03-22 19:44:33 +00:00
drochner a34eb7c1b7 use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again
1999-02-24 15:05:20 +00:00
christos 6f27a975b9 ifdef out __warn_references if we are linting. 1998-11-14 16:40:50 +00:00
kleink 3e8c90f694 Replace use of getdtablesize() with (the non-deprecated) sysconf(), hence no
need for an internal name for the former any more; suggested by Matthew Green.
1998-10-18 13:56:21 +00:00
kleink 329b130573 Add an internal name for getdtablesize(), since it's being used internally. 1998-10-08 13:49:16 +00:00
christos fe2f618c31 Squash remnants of signal breakage... old sigvec() interface... 1998-09-27 13:21:28 +00:00
christos 5132700041 make it use posix signal system calls... Cannot play
int mask; sigfoo((sigset_t *) &mask) tricks any more...
1998-09-26 23:44:08 +00:00
lukem ce83c69e00 first pass at fixing up capitalization of function names and
arguments; ensure that each is correct with respect to the
implementation, rather than being correct as per english.
1998-08-29 08:32:32 +00:00
mycroft c427e33070 If AUDIT, do not compile certain functions. 1998-07-27 13:36:43 +00:00
lukem 47fa59a196 warn_refs getwd 1998-06-08 09:38:07 +00:00
fair 45f41278ec fix bad .Xr references 1998-04-29 18:16:01 +00:00
fair 807b1efe4c fix mdoc reference 1998-04-28 18:52:08 +00:00
fair dc026e0515 Change occurrences of "UNIX" to .Ux or .At as appropriate. 1998-04-28 06:00:51 +00:00
perry f8247085e8 trivial changes to quiet lint. 1998-02-27 17:43:20 +00:00
perry e7d07334f4 Coerce -1 to a (uid_t) to shut up lint. 1998-02-25 22:57:22 +00:00
perry 35219be440 explicitly coerce a -1 to gid_t to quiet lint. 1998-02-25 22:53:03 +00:00
perry 312aca536f add LIBRARY section to man page 1998-02-05 18:45:17 +00:00
perry 9f6c3e59aa merge lite-2 1998-02-02 06:26:33 +00:00
perry b51ed80fd5 RCS Id Police. 1998-01-09 04:11:49 +00:00
thorpej 2a43f22095 __warn_references and __indr_reference semicolon fixups. From
Chris Demetriou <cgd@pa.dec.com>.
1997-11-04 23:52:05 +00:00
mycroft d03bb60a87 Minor wording changes, and update the date. 1997-11-01 07:44:29 +00:00
mycroft a638d08183 Declare the return type. 1997-11-01 07:31:37 +00:00
mycroft 20a5439ff8 sv_mask is an int, not a sigset_t.
Copy some additional wording from sigaction(2).
Various other formatting and wording fixes.
1997-11-01 07:27:58 +00:00
lukem 2a55b0f192 rcsid police 1997-10-09 10:07:40 +00:00
jtc 43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
christos 5f34d8e358 Fix RCSID's 1997-07-13 18:50:06 +00:00
christos 423d48a674 Fix assignment in if
Fix RCSID's
1997-07-13 18:49:43 +00:00
christos 8ccec9c996 Fix RCSID's
Add missing unistd.h include
1997-07-13 18:49:24 +00:00
mikel 4015a1393c xref sigsetmask(3) not sigsetmask(2), and RCSid police. 1997-05-12 07:41:29 +00:00
mikel 140861a19a xref sig{block,setmask}(3) not sig{block,setmask}(2), and RCSid police. 1997-05-12 07:37:35 +00:00
mrg 9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00