Commit Graph

136 Commits

Author SHA1 Message Date
thorpej
f2403afe2c Use the (new) sys_nsig instead of NSIG. 1998-11-30 20:43:53 +00:00
christos
8cc3f31582 delint 1998-11-15 17:21:49 +00:00
tron
bec823a926 Add note about special case when calling strcmp() or strcasecmp() with
len = 0 as suggested by Jaromir Dolecek in PR lib/6344.
1998-10-23 17:49:29 +00:00
kleink
24a514c54c Need an internal name for strsep(). 1998-10-13 20:32:09 +00:00
kleink
352f441050 Need an internal name for strdup(). 1998-10-13 20:27:55 +00:00
kleink
0e34636229 Add an internal name for strtok_r(). 1998-09-27 17:57:49 +00:00
kleink
dc895f2e20 Make makewhatis find strtok_r(3). 1998-09-14 21:35:34 +00:00
kleink
25d16c74e0 Install a link for strtok_r(3). 1998-09-14 21:34:43 +00:00
kleink
1ec8fda77e Add a pointer to strtok_r(). 1998-09-14 21:31:31 +00:00
wrstuden
b75289e7bc 'c' is only used #ifndef BZERO so wrap its declaration accordingly. 1998-08-09 22:48:11 +00:00
perry
2ea077b77c switch bzero to version in memset.c.
bzero.c is now a "#define BZERO//#include memset.c" type file.
Remove comment from Makefile about the fact that this is on the todo list.
1998-08-04 06:25:10 +00:00
perry
8079ec33a6 Replace complicated and ugly makefile gook to make memmove,memcpy by
-Ding the bcopy.c source (and similarly strchr from index.c, strrchr
from rindex.c) with stub .c files for memmove, memcpy, strchr and
strrchr that simply #define the appropriate thing and #include the
appropriate .c file. Inspired by the way many m-d .S files handle the
same thing. This radically simplifies the Makefile.inc for libc/string
(and libkern).
1998-08-04 04:48:16 +00:00
mycroft
131e747015 Make these compile without __AUDIT__. 1998-07-27 09:47:44 +00:00
mycroft
4024f73640 const poisoning. 1998-07-26 13:34:18 +00:00
fair
c46ab392dc Principally, change foo(N) to .Xr foo N
Also, do some other mdoc tagging.
1998-04-28 04:07:04 +00:00
cgd
4da39bc7c1 limits.h if user-land, machine/limits.h if kernel or standalone 1998-03-27 05:34:15 +00:00
cgd
372e996fc3 when deciding whether to use standard system include files or libkern.h,
check _STANDALONE as well as _KERNEL.  _KERNEL is incorrect for use when
building boot blocks, and it looks like the rest of the code is already
using _STANDALONE for this purpose.
1998-03-26 23:53:36 +00:00
fair
79091fd486 #include <string.h> now says #include <unistd.h> which matches the source code, per PR#4451. This should be checked for POSIX compliance, however. 1998-03-11 08:23:39 +00:00
mycroft
d0daf2d571 Add the same protection as other files have for _KERNEL, which at least works
for the kernel.
1998-02-22 09:12:57 +00:00
lukem
c197a64bba don't assume buf is NL_TEXTMAX long 1998-02-16 11:27:15 +00:00
perry
312aca536f add LIBRARY section to man page 1998-02-05 18:45:17 +00:00
thorpej
59b2a29cc7 Cast pointers to u_long before masking them, not int. 1998-02-04 09:01:44 +00:00
perry
182d0829f5 .Bx'ize 1998-02-03 21:20:52 +00:00
perry
741740203c remove obsolete register declarations 1998-02-03 18:49:08 +00:00
kleink
b09ee57a44 Update SYNOPSIS: the function prototypes reside in <strings.h>. 1998-02-03 18:12:34 +00:00
perry
f11bd84939 note that bzero isn't yet being built from memset.c 1998-01-30 23:45:23 +00:00
perry
5f8a6c06f3 update to lite-2 1998-01-30 23:37:40 +00:00
cgd
5815a7b9b9 Update various aspects of the special target builds which should
have been done (by others) a long time ago:
	* fix PIC compilation to use new PIC flags,
	* make them 'make -j N' safe.
1998-01-23 18:58:05 +00:00
cgd
9bdf198379 add appropriate #ifdefs (kernel includes) so that these files can
be copied to libkern and built without modification.
1998-01-21 21:13:09 +00:00
kleink
f1d296dd60 Per XPG4, move the prototype of swab() from <string.h> to <unistd.h>. 1998-01-12 16:05:40 +00:00
mikel
290139e9fe pointers are NULL, NUL is a char; deraadt@openbsd.org 1997-12-30 06:05:59 +00:00
matthias
5822b3639f add lint stubs for files that are implemented in assembler on the pc532. 1997-12-07 00:24:50 +00:00
mikel
583fb06375 fix typo (s/A/An/) 1997-12-06 08:47:05 +00:00
mrg
4e252e8c4d add missing .Nm entries. from spz@serpens.swb.de. 1997-11-14 02:04:36 +00:00
cgd
023cd79c6b lint stubs for functions which ports use assembly versions. When using
an assembly version of a function, add the right lint stub to the Makefile.inc
which specifies the source to build the function (see the
arch/i386/*/Makefile.inc).  Can't just lint the normal C versions of these
functions, because some of them don't _have_ normal C versions and if
that were done dependencies would get messed up.
1997-11-06 00:51:04 +00:00
lukem
d0e23d974a - use CPPFLAGS instead of CFLAGS
- use ${COMPILE.C} ... instead of ${CC} ${CFLAGS} -c ...
1997-10-22 23:14:04 +00:00
christos
1633134649 These two don't belong in string.h, but unistd.h 1997-10-16 23:09:09 +00:00
lukem
2a55b0f192 rcsid police 1997-10-09 10:07:40 +00:00
kleink
92ee7f0aaa Add missing "RETURN VALUES" section; from Krister Walfridsson
<cato@ulysses.df.lth.se> in PR lib/4028.
1997-08-26 20:34:57 +00:00
mikel
e8f2050acb fix typos and remove obsolete RETURN VALUES section; from Krister
Walfridsson in PR lib/3999, with one minor change by myself
1997-08-19 05:44:17 +00:00
jtc
43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
mrg
fab0b65073 KNF and help gcc optimise for registers better. 1997-07-21 04:45:44 +00:00
christos
3d2267c88c Fix RCSID's
Use "extern.h" where appropriate.
1997-07-13 20:24:09 +00:00
kleink
dbda158f1f Add support for localized character sets (a.k.a. LC_CTYPE).
Thanks go to Matthias Scheler <tron@lyssa.owl.de> for contributing his initial
work in PR/3592, and to Christos Zoulas for refining it!
1997-06-02 09:52:36 +00:00
mrg
cbf5ef7c50 move str[fp]time into libc/time. 1997-04-23 01:17:59 +00:00
mouse
ff44468136 alternate -> alternative, per PR 2643 1997-03-08 13:36:38 +00:00
matthias
97a71285c8 Teach strmode(3) about whiteouts. They get w 'w' now. 1997-01-30 09:23:46 +00:00
mrg
9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
cgd
2a7f3ba91e add rules to build .ln files (memmove.ln, memcpy.ln, strchr.ln, strrchr.ln)
for objects built specially from other C files, when appropriate.
1996-12-22 11:34:21 +00:00
cgd
58f52170c8 args for _fmt(), _secs(), and _add() should all be const (!!) 1996-12-20 20:27:22 +00:00