Mike Barcroft
6e07075911
Add support for X/Open.
...
PR: 37078
2002-04-15 03:21:21 +00:00
Mike Barcroft
61b60edfd3
o Move some function prototypes from <string.h> to the newly rewritten
...
<strings.h>, based on POSIX.1-2001's requirements.
o Add 'restrict' qualifier (spelled '__restrict') to functions in
<string.h>, as per C99 and POSIX.1-2001.
o Properly expose new POSIX.1-2001 functions in <string.h>.
2002-04-04 05:41:57 +00:00
Warner Losh
bb28f3c29b
Breath deep and take __P out of the system include files.
...
# This appears to not break X11, but I'm having problems compiling the
# glide part of the server with or without this patch, so I can't tell
# for sure.
2002-03-23 17:24:55 +00:00
Bruce Evans
d23c1cd5d7
Fixed namespace pollution in previous commit. The C99 function
...
sterror_r() must not be declared in the C90/POSIX.1-1990 section.
Put it in the nonstandard section for now.
2001-11-28 19:02:01 +00:00
Wes Peters
9c324dc0c0
Add strerror_r function per Posix prototype.
...
Reviewed by: Mike Barcroft <mike@FreeBSD.org>
MFC after: 2 weeks
2001-11-27 07:39:46 +00:00
Bruce Evans
4546f9029c
Fixed some style bugs:
...
- rev.1.6: corrupt tab before strlcpy.
- rev.1.7: "From: " in vendor id.
- rev.1.8: unsorted prototype for strccasestr.
2001-10-10 07:34:47 +00:00
Andrey A. Chernov
a7ad1caca8
Implement strcasestr() which many others (f.e. Linux) already have
2001-10-10 02:19:09 +00:00
Mike Barcroft
41036d782d
Add a new libc function, strnstr(3), which allows one to limit the
...
number of characters that are searched. This is especially useful
with file operations and non-NUL terminated strings.
Silence from: -audit, -hackers
MFC after: 5 days
2001-10-09 01:29:56 +00:00
Warner Losh
c0344bf061
Add prototypes for strl* functions
...
Forgotten by: imp
Reported by: bde
1999-08-16 06:53:13 +00:00
Peter Wemm
78121e79aa
Add a strsignal(3) (like strerror(3)) for libc compatability with other
...
systems. NetBSD, Linux, SVR4 etc all have it.
1999-05-18 04:48:58 +00:00
John Polstra
5d00b6ccba
Add a prototype for strtok_r().
1999-01-20 21:21:26 +00:00
Warner Losh
2ad334cde8
string.h defines nonstandard routines when _POSIX_SOURCE is
...
defined. It has been fixed to not do that.
Submitted by: Jake Hamby <jehamby@lightside.com>
Closes PR: 1954
1996-12-17 19:35:43 +00:00
Rodney W. Grimes
4399be3cbd
Remove trailing whitespace.
1995-05-30 05:05:38 +00:00
Rodney W. Grimes
59deaec541
BSD 4.4 Lite Include Sources
1994-05-24 09:57:34 +00:00