wiz
6f852e37a7
One too many punctuation fixed in previous.
2004-04-13 23:03:22 +00:00
wiz
f2d94d5597
Punctuation fixes; mark up NULL.
2004-04-13 23:02:28 +00:00
uebayasi
fa3c270527
Minor KNF.
2004-01-31 16:56:12 +00:00
wiz
cef0afe940
Lots of grammar and wording changes from jmc@openbsd, with some
...
additional consistency changes by me.
2004-01-24 16:58:54 +00:00
lukem
171d653219
Overhaul how `build.sh tools' are used:
...
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +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
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
atatat
d5fb781871
More properly host-tool-ify stat
2003-07-25 03:21:15 +00:00
tshiozak
8adfd9b778
make _DIAGNOSTIC happy.
2003-07-10 08:50:43 +00:00
wiz
f899ab9b92
There is no FreeBSD-3.3.0, only FreeBSD-3.3.
2003-06-26 12:25:22 +00:00
itojun
da3884cbf4
latest copyright notice (more loose). noted by wiz
2003-05-15 15:02:52 +00:00
wiz
59b599e287
Grammar improvement from jmc@openbsd.
2003-05-10 12:30:23 +00:00
wiz
45ef2fb124
s/>/\*[Gt]/
2003-05-06 10:10:41 +00:00
lukem
6800f4a2c3
Clarify what strncpy() does when the length of src' is
len'.
...
Noted by Christoph Kaegi on tech-userlevel@.
Add missing "function".
2003-05-06 09:58:25 +00:00
junyoung
48e9f35fd3
Use unsigned char rather than u_char.
2003-04-22 16:12:18 +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
tshiozak
6ca2252907
- support for the additional code area of zh_CN.GB18030 locale,
...
- make sure that __nbrune_t is unsigned 32bit clean and
- fix wrong copyright notice in the last commit.
this patch is contributed by Takehiko NOZAKI <sigsegv at s25 dot xrea dot com>.
2003-04-06 18:33:23 +00:00
tshiozak
e16e5eebd3
add original FreeBSD RCS ID.
...
NOTE: these files were obtained from FreeBSD and fitted for NetBSD
by sigsegv@infoseek.jp .
2003-03-07 06:46:38 +00:00
tshiozak
326ed36874
changes related to lib/20576 and lib/20577.
...
- add wcstok() and wcswcs(),
- add wcstok(3),
- move btowc() and wctob() into each ctype modules,
- bump ctype interface ABI version,
- bump i18n modules' minor and
- update sets.
and fix a stupid bug in _RUNE_ISCACHED macro.
2003-03-05 20:18:14 +00:00
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
itojun
c5b93796dc
fix wcs*cmp() behavior when the wide char string is equal. from soda
...
XXX assumes wchar_t == int.
2001-01-05 12:13:12 +00:00
lukem
61017941ab
remove register
2001-01-03 14:33:02 +00:00
lukem
5ba790cb50
sprinkle in _DIAGASSERT() as appropriate
2001-01-03 14:29:36 +00:00
itojun
656dac34b5
wording (correct?)
2001-01-02 11:27:45 +00:00
itojun
11f22d503c
comma at EOL -> period
2001-01-02 11:26:23 +00:00
kleink
2776fd1430
Fix grammar nits, and update the STANDARDS section.
2001-01-02 11:24:39 +00:00
kleink
6b94677e25
Sprinkle some __restrict into <wchar.h>.
2000-12-29 15:26:33 +00:00
itojun
e04ee8e939
split wide char section, just for readability/future possibility for .if
2000-12-24 03:45:04 +00:00
itojun
383f218a51
move wcs* and wmem* from lib/libc/locale to lib/libc/string.
2000-12-23 23:14:33 +00:00
itojun
a1ce29330c
sync with latest openbsd.
...
comment in strlcat(3) was wrong about return value.
2000-11-24 16:19:05 +00:00
phil
cc543121c5
Document the behaviour with consecutive separator characters.
2000-10-11 18:26:04 +00:00
hubertf
4236d4df71
The 'delim' argument is const, document it as such.
2000-09-28 03:18:35 +00:00
kleink
2a043f1868
Add a description of strtok_r(3), and rip out the obsoleteness claim.
2000-07-20 14:06:23 +00:00
enami
f089d431f3
s/Xt/Xr/
2000-07-05 05:25:28 +00:00
kleink
a071165b42
The declaration lives in <unistd.h>, actually; from Patrick Welche in PR
...
lib/10294.
2000-06-29 07:17:04 +00:00
cgd
d220ca5ba3
fix up NetBSD RCS Ids to match the standard, and the leading comment as
...
to match as well. No functional changes.
2000-06-14 06:48:47 +00:00
mycroft
605490369c
Delint.
...
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
lukem
d7eb991a65
xref strlcpy & strlcat
1999-09-28 02:15:07 +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
lukem
cb7f9fc8ac
due to an overwhelming rush of complaints, remove the check for NULL
...
pointers. apparantly a lot of developers feel that potentially dumping
core is better than returning a status of `0 bytes copied'...
1999-09-10 23:13:09 +00:00
lukem
e447fb4bb4
add netbsd rcsid's
...
update for knf (return value on separate line to function name...)
check dst and src aren't null pointers before trying to use them
enable strlcat/strlcpy
1999-09-08 22:56:55 +00:00
lukem
714b0ff65a
strlcpy() and strlcat() by Todd Miller <Todd.Miller@courtesan.com>, via openbsd
1999-09-08 22:01:13 +00:00
wrstuden
0217e4fdc2
Add and document support for using new archive state mode flags. Now
...
archived files will show up as either "a" (S_ARCH1) or "A" (S_ARCH2)
in ls -l. As noted, archive state is fs-dependent, and not maintained
by most fs's.
1999-08-03 21:43:13 +00:00
ad
08168561e3
Correct omission made during last fix of HISTORY section.
1999-04-18 22:36:46 +00:00
ad
5083f44876
Fix HISTORY section (somebody hacked the end off it).
1999-04-18 22:35:19 +00:00
simonb
40d7b63c49
Slight cleanup - no functional change.
1999-04-01 00:27:49 +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
mycroft
9b7ce513f4
Fix minor formatting error.
1999-03-06 11:41:51 +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
thorpej
f2403afe2c
Use the (new) sys_nsig instead of NSIG.
1998-11-30 20:43:53 +00:00