Commit Graph

60 Commits

Author SHA1 Message Date
drochner e866f2794b Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
2005-07-06 14:43:24 +00:00
fvdl 79cc88df48 Don't use NULL to compare against an int. 2003-10-21 00:16:55 +00:00
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
wiz d43e332f1e setup -> set up. 2003-05-14 12:11:03 +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
thorpej 4ba7375da3 Fix signed/unsigned comparison warnings, and shadow warnings. 2002-11-11 23:43:03 +00:00
wiz 28128e0592 New sentence, new line. From Robert Elz. 2002-10-01 19:03:15 +00:00
soren 01bfb60de4 Refer to rcmd(3) instead of the non-existing krcmd(3).
PR lib/12562 by Klaus Klein.
2002-08-08 01:41:17 +00:00
ross 814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
wiz 377f7d6eaa Punctuation nit, sort SEE ALSO. 2002-01-15 02:38:54 +00:00
wiz e535868ef3 Punctuation nit. 2002-01-15 02:38:36 +00:00
wiz 401d0ed8ce Drop a trailing empty line. 2002-01-15 02:38:24 +00:00
lukem 11e3398883 WARNS=2 fixes 2001-11-05 14:59:21 +00:00
msaitoh a5e4741a2f check LIBC_SCCS 2000-09-14 01:24:31 +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
simonb 1528b77539 More trailing white space. 1999-07-02 15:14:07 +00:00
mycroft 5ac207165b LP64 fixes. *sigh* 1999-05-09 12:28:15 +00:00
christos 3ecd1f9ce3 - KNF
- add NetBSD comment
- use warn instead of perror
- protect overflowing the stack on bad DNS records
- delint
1999-05-04 17:13:57 +00:00
christos da0e4c24dc - add a comparison to NULL in a conditional.
- cast third argument of strn*() to size_t
- s/FALL THROUGH/FALLTHROUGH/
1999-05-04 17:12:21 +00:00
christos 3a4f700dae In lint redefine __compat_regerror to __compat43_regerror, to avoid clash
with the other __compat_regerror...
1999-05-04 17:11:01 +00:00
christos bc6a12aaec De-constify the code, and add const castaway lint comments. 1999-05-04 17:10:10 +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
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
thorpej 7ba69add63 Add some braces to make egcs happy. 1998-08-19 00:17:41 +00:00
phil 177c3172ab Add the correct type for the first parameter. 1998-08-14 04:49:18 +00:00
perry a843f0f8a5 bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-10 02:43:08 +00:00
mrg 32f519716b - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
kleink 695ad15b90 Need <re_comp.h> for re_comp() and re_exec() prototypes. 1998-06-01 20:22:58 +00:00
kleink e127c74140 Prototypes have moved: change inclusion of <unistd.h> to <re_comp.h>. 1998-06-01 20:22:01 +00:00
fair 6b57aa9fdc fix mdoc references 1998-04-28 23:03:56 +00:00
fair dc026e0515 Change occurrences of "UNIX" to .Ux or .At as appropriate. 1998-04-28 06:00:51 +00:00
tv 64288566a1 FTP uses ruserpass() differently from that in libcompat. Fix rexec to
recognize that the new ruserpass returns an int (but ignore it for now),
and ruserpass does not accept an acct pointer.
1998-03-19 18:06:15 +00:00
tv bceb6b5729 Add a ruserpass() function to make rexec happy. PR 901 (that's not a typo). 1998-03-19 17:51:04 +00:00
perry 312aca536f add LIBRARY section to man page 1998-02-05 18:45:17 +00:00
perry 741740203c remove obsolete register declarations 1998-02-03 18:49:08 +00:00
perry 2663a57471 remove files added by lite-2 sync. 1998-01-25 00:37:38 +00:00
perry 1dba62f76d import lite-2 1998-01-25 00:35:02 +00:00
lukem e37aec676a rcsid facism, WARNSify 1997-10-09 10:20:07 +00:00
mikel 8b787e68dc include <stdlib.h> for free() prototype 1997-06-19 07:50:43 +00:00
mrg 9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
jtc fd08cf75d8 Handle null string in re_comp.
From Kazushi Jam Marukawa <kazusi-m@is.aist-nara.ac.jp> in PR 2196.
1996-03-21 03:11:13 +00:00
jtc 2bb92dc67a Don't bother with a m68k assembly version of insque/remque. Gcc
generates the pretty much the same code (I believe it is exactly
the same except for stack frame setup) as the generic C version.
1995-09-07 07:17:53 +00:00
pk dde1c1a0be Prototypes (PR#1098). 1995-06-05 19:42:16 +00:00
mycroft 89ef25dac6 Fill in sin_len. 1995-06-03 22:03:51 +00:00
mycroft 4c34be6b52 Clean up deleted files. 1995-03-01 00:00:00 +00:00
jtc edcbc4e64c Changed formatting of manpage cross references to use .Xr macro.
Changed all libcompat manpages so that they clearly state that the
documented interface is availiable from libcompat.
(Fixes PR #703)
1995-01-13 01:15:53 +00:00
cgd 73de321a73 needs string.h 1994-10-19 03:01:39 +00:00
cgd 74c187c292 update 1994-05-06 06:25:33 +00:00
cgd e3a4ae7264 Initial revision 1994-05-06 06:25:32 +00:00