Commit Graph

247 Commits

Author SHA1 Message Date
lukem
88c3eadbfa Add missing __RCSID() 2005-06-12 05:21:25 +00:00
dsl
217446d2aa Only advance 'p' once each time around the loop.... 2005-06-04 20:09:56 +00:00
christos
524267d3f8 It is really pointless to come up with new implementations of the wide string
functions instead of using the narrow string ones. Make this look like
strchr, so that wcschr(L"foo", L'\0') does not return NULL as it should.
2005-05-30 06:00:01 +00:00
wiz
88a7e2e28f Remove one of two nearly duplicate words. 2005-03-14 10:36:51 +00:00
perry
1968911436 Fix stupid typo. I added memmem, not memmove. 2005-03-14 03:13:53 +00:00
perry
ff41832f1c add memmem 2005-03-13 15:15:13 +00:00
perry
f7be5521ff Add memmem(3), compatible with version in Linux 2005-03-13 14:47:02 +00:00
kleink
fd5cb0acea A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
  fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
  uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.
2005-02-09 21:35:46 +00:00
dsl
d6329c55cd Implement strtok() in terms of strtok_r() 2004-10-27 19:12:31 +00:00
dsl
04e7fe1971 Remove sentence about the inability to simultaenously tokenise multiple
strings - should have been removes then strtok_r() was added.
2004-10-11 14:22:04 +00:00
junyoung
74d67c3551 Add strcasestr(3), case insensitive version of strstr(3).
Bump libc minor.

From FreeBSD.
2004-07-03 08:27:25 +00:00
jmc
b2f782612f Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
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