Commit Graph

216 Commits

Author SHA1 Message Date
wiz 078d3d03c9 Remove superfluous word. 2003-01-07 17:12:54 +00:00
junyoung 30893a62d9 "namespace.h" should precede all included headers other than <sys/cdefs.h>. 2002-11-19 12:58:15 +00:00
junyoung cbf285d8cd Include <sys/types.h> for u_char instead of a local definition of it. 2002-11-19 06:53:17 +00:00
itojun 9134efabd0 use strlcpy where it is more appropriate. 2002-11-17 01:51:24 +00:00
itojun 66578bbe09 use strlcpy. correct mis(non-)use of buflen argument. 2002-11-17 01:50:01 +00:00
thorpej 20b98814a9 Fix signed/unsigned comparison warnings. 2002-11-11 01:12:04 +00:00
christos 300988d4e1 NUL character, NULL pointer. 2002-10-02 02:46:03 +00:00
jschauma 6d65957bf1 tyop: NUL -> NULL 2002-10-02 01:10:29 +00:00
wiz 6569c5c509 New sentence, new line. From Robert Elz. 2002-10-01 17:22:00 +00:00
wiz 38315eadd0 Use Dq instead of single quotes. 2002-08-20 16:22:44 +00:00
yamt 0997545d18 bring in EXAMPLES from openbsd. 2002-08-11 09:39:10 +00:00
yamt 0da40e1ed0 - correct how to check empty field.
- improve examples.
from OpenBSD.
2002-08-11 09:36:15 +00:00
yamt 10a7dd0256 bring in EXAMPLES from openbsd. 2002-08-11 08:22:30 +00:00
yamt cdac947b04 bring in EXAMPLES and ERRORS from openbsd. 2002-08-11 07:53:06 +00:00
yamt 049fa38b0c bring in EXAMPLES from openbsd. 2002-08-11 07:50:04 +00:00
yamt fd80262662 improve EXAMPLES.
from openbsd.
2002-08-11 07:46:56 +00:00
yamt 517ec26f7b bring in EXAMPLES from OpenBSD. 2002-08-11 07:36:19 +00:00
yamt 4e0ec2a042 bump .Dd . 2002-08-11 07:31:56 +00:00
yamt 0243d99724 bring in EXAMPLES from openbsd. 2002-08-11 07:31:18 +00:00
kent 763eb5645a memcpy/memmove/bcopy: Add diagnostic code to check pointer wraparound.
The code is enabled only when _DIAGNOSTIC is defined.
2002-07-04 15:48:40 +00:00
bjh21 767def4642 Re-introduce inclusion of config.h for libnbcompat, since the namespace.h trick
no longer works.
2002-04-24 17:45:14 +00:00
kleink f4346e4218 Protect inclusion of namespace.h with _LIBC. 2002-04-24 12:25:09 +00:00
kleink 937479fc3b Need internal names for strlcat() and strlcpy(). 2002-04-17 16:23:08 +00:00
christos 190e5102df add rt signal names. 2002-03-20 01:43:55 +00:00
yamt 1cd3755f5b make strerror and strsignal use NL_CAT_LOCALE. 2002-02-13 08:05:12 +00:00
ross 9856438e91 generate & symbolically 2002-02-07 09:24:04 +00:00
ross 814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
tv 9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
tv 12b9020c07 Make compilable from src/tools/compat. 2002-01-28 22:39:07 +00:00
tv c08a2cb7c2 Add hooks for reachover builds from src/tools/compat. 2002-01-21 21:33:42 +00:00
lukem 5baa3794c0 only _DIAGASSERT(dst != NULL) if n != 0 2001-12-22 11:56:56 +00:00
itojun 4a980893af sync with latest openbsd one. this one describes corner case of strlcat better 2001-11-16 04:21:57 +00:00
itojun 26d3d87635 sync comment with latest openbsd code 2001-11-16 04:17:25 +00:00
yamt 4a25f9602a make it works. 2001-09-21 16:09:15 +00:00
wiz 4c17cdc321 Whitespace fixes and sort SEE ALSO. 2001-09-16 01:41:09 +00:00
yamt e42129c827 don't change errno on success.(SUSV2)
this will fix error messages of some commands like setkey(8).
2001-08-24 00:11:54 +00:00
perry c297defc99 Note explicitly that memcpy does not guarantee good behavior on overlap. 2001-07-07 04:53:52 +00:00
tv 6b2a880d3c memcpy(3) is not guaranteed to do overlaps, contrary to this historical
manpage "BUGS" section.  Nuke the entire section.
Addresses PR lib/13370.
2001-07-06 15:11:18 +00:00
christos cff5ca4be6 fix incorrect loop sentinel caused by previous de-linting. 2001-05-22 18:56:33 +00:00
wiz 13e4a787c0 mdoc'ify 2001-04-09 12:07:57 +00:00
kleink 346219c95f Sprinkle some restrict qualifiers. 2001-03-22 07:37:04 +00:00
cgd bc035adad9 update the date; pointed out by mycroft 2001-03-02 06:06:08 +00:00
cgd 21e6278642 don't forget the LIBRARY section 2001-03-02 04:52:08 +00:00
wiz f485910f19 De-lint. Reviewed by Christos. 2001-02-09 11:47:21 +00:00
wiz 4bf88f4e07 De-lint. Reviewed by christos. 2001-02-08 18:33:50 +00:00
wiz 3eb0e0c1cf De-lint. Reviewed by christos. 2001-02-08 18:10:02 +00:00
wiz 35fa1be31c ANSIfy and de-lint. Reviewed by christos. 2001-01-26 10:53:30 +00:00
jdolecek f1e8bc8da8 remove bogus comment from EXAMPLE section
Add HISTORY section, mentioning strlcpy()/strlcat() first appeared
	in OpenBSD 2.4 and when this came to NetBSD and FreeBSD
2001-01-25 22:39:19 +00:00
itojun 0e83f5f0d1 pull in openbsd strlcat.c 1.3 -> 1.4.
Reverse the order of two loop invariant to make 'strlcat(0, "foo", 0)'
not get a SEGV; Richard Kettlewell <rjk@greenend.org.uk>
2001-01-13 04:19:54 +00:00