Commit Graph

276 Commits

Author SHA1 Message Date
dyoung
e3361bb265 Add strsep(3) to libkern.
To avoid code duplication, move strsep.c to the kernel/userland
common files.

Soon I will commit source-address selection (options IPSELSRC).
It will use strsep(3).
2006-11-13 03:26:43 +00:00
wiz
1a64d82da5 nul/null/NULL cleanup:
when talking about characters/bytes, use "nul" and "nul-terminate"
when talking about pointers, use "null pointer" or ".Dv NULL"
2006-10-16 08:48:45 +00:00
wiz
353e917272 New sentence, new line. 2006-10-14 07:52:15 +00:00
tnozaki
65b88fc7e0 PR/30809 added manpages of wcswcs(3) and wcscoll(3), wcsxfrm(3)
(wcs?width and wprintf are already in repository).
2006-10-13 17:28:09 +00:00
apb
b70c743b65 Include nbtool_config.h for tools build. This was part of the
patch supplied by Wim Lewis in PR 31232.
2006-10-07 22:04:18 +00:00
elad
09256aac55 PR/31232: Wim Lewis: tools/compat doesn't check for pre-existence of
strmode()

Commited slightly different diff, input and okay from apb@
2006-10-07 16:19:35 +00:00
wiz
5b76ee5cd3 Mark up NULL; the character is nul, not null; sort SEE ALSO;
add RCS Id at top of file.
2006-09-02 23:49:02 +00:00
dsl
7fd4677bc0 fix xtos's pasto 2006-08-27 07:09:04 +00:00
christos
d37c189a03 PR/34238: Aleksey Cheusov: man pages for wcsdup, wcscasecmp and wcsncasecmp
functions
2006-08-26 22:48:50 +00:00
christos
a248088000 Add copyright notices. 2006-08-26 22:45:52 +00:00
christos
bfce146aaa include one more new file. 2006-08-23 01:51:51 +00:00
christos
54097ce7af PR/34238: Aleksey Cheusov: add wcsdup, wcscasecmp and wcsncasecmp functions 2006-08-22 20:50:46 +00:00
wiz
31e92ca26e stresep, not strnsep. Remove duplicate "the". Bump date for previous. 2006-08-13 23:20:52 +00:00
wiz
a5afdcde5a Mark up NULL. 2006-08-13 23:19:45 +00:00
christos
cbfb283c65 - Add strndup and stresep
- Use stresep so in fstab so that we can mount paths with white space in them.
2006-08-12 23:49:53 +00:00
tnozaki
a55e9cdf1a fix lib/33476:
added following manpages (derived from FreeBSD),
    wcwidth(3) wcswidth(3)
    wcstol(3) wcstoll(3) wcstoimax(3)
    wcstoul(3) wcstoull(3) wcstoumax(3)
  and update doc/TODO.i18n.
2006-06-03 04:36:43 +00:00
wiz
6f524b4705 Punctuation nit. 2006-05-22 21:55:01 +00:00
kleink
bf44a81954 Clarify that strerror() doesn't return EINVAL but stores in errno;
prompted by Thomas Klausner.
2006-05-22 21:40:33 +00:00
kleink
9cbc15a5b4 Must include "namespace.h" for strerror_r()'s internal name. 2006-01-26 11:13:42 +00:00
christos
e5548b402a Use reach-over sources from common/lib/libc 2005-12-20 19:31:47 +00:00
martin
12940193e8 Fix warns=4 via __UNCONST() 2005-11-30 09:55:14 +00:00
martin
34fb53a2f7 Fix warns=4 (via __UNCONST()) 2005-11-30 09:35:58 +00:00
christos
387331c600 fix warns=4 2005-11-29 18:48:02 +00:00
christos
03256c6e55 WARNS=4 2005-11-29 03:11:58 +00:00
tnozaki
52d79cc3ed wcscpy - cleanup
wcsncpy - SUSv6 if s2 is shorter than n, s1 should be filled with L'\0' until n.
2005-10-13 21:13:05 +00:00
christos
5b84b3983f compat core reorg. 2005-09-13 01:44:08 +00:00
christos
86741d79ab - Fix the remaining indr_references so that they define lint symbols.
- Add an internal symbol for strerror_r (thanks klaus for noticing)
- Remove internal __strerror
2005-07-30 15:21:20 +00:00
wiz
3ecc9e2ea3 < -> \*[Lt], end sentence with a dot, add comma
in enumeration, add RCS Id (lost in previous), fix numbering of license clauses
(broken in previous).
2005-07-29 13:14:49 +00:00
christos
1cf13731b1 PR/30845: Luke Mewburn: strerror_r(3) missing
- Merge 4.4BSD strerror.3 man page changes that summarize information
  for all the error printing functions. This makes the perror(3) page
  obsolete.
- Implement all error functions in terms of strerror_r(), including
  __strerror() which is not used internally. Can it be removed?
- Bump version for strerror_r
2005-07-28 16:26:29 +00:00
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