Ruslan Ermilov
6184d98a2a
mdoc(7) police: minor markup nits.
2001-12-12 15:02:32 +00:00
Wes Peters
556f162ac0
Make strerror and strerror_r use sys_errlist[0] for errnum = 0. Be
...
more careful about reporting truncation with ERANGE in strerror_r.
Set errno to EINVAL for "unknown" errnum in strerror as required
by P1003.1-200x Draft June 14, 2001.
More carefully document the handling of strerrbuf when errors
(ERANGE, EINVAL) are encountered in strerror_r.
Reviewed by: bde (ongoing discussion)
2001-12-07 06:28:58 +00:00
Wes Peters
f61a2ede84
New, improved, more Posix-compliant strerror_r implementation,
...
complete with documentation.
Reviewed by: mike@ gad@
MFC after: 1 week
2001-12-06 04:53:31 +00:00
Wes Peters
4f7d6d65dc
Must link strerror manpage to strerror_r.
...
Thanks for the review, Mike.
Submitted by: Mike Barcroft <mike@FreeBSD.org>
2001-11-27 07:57:31 +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
Ruslan Ermilov
1ddfc2e3aa
mdoc(7) police: minor markup and spelling fixes.
2001-11-20 14:11:07 +00:00
Dag-Erling Smørgrav
33ad961d11
Increment the loop counter.
...
PR: bin/29218
Submitted by: Goran Lowkrantz <goran.lowkrantz@ismobile.com>
2001-11-10 17:36:58 +00:00
David E. O'Brien
de5fe5d53b
rcsid[]->__FBSDID
2001-11-07 19:55:16 +00:00
Mike Barcroft
43e13bf58f
Note that strncmp() will not compare characters after a NUL character.
...
Add a missing word. Bump document date.
Inspired by: IEEE Std 1003.1-200x (Draft 7)
MFC after: 3 days
2001-10-11 17:02:44 +00:00
Mike Barcroft
a9227c40eb
Clarify that strnstr() will stop searching after in encounters a NUL
...
character. Bump document date. Add a missing comma.
2001-10-11 15:49:06 +00:00
Andrey A. Chernov
89503316a0
Implement strcasestr() which many others (f.e. Linux) already have.
2001-10-10 02:17:35 +00:00
Mike Barcroft
7ec7a350c5
Document the fact that the strnstr(3) function is not portable.
...
Requested by: brian, gad
2001-10-09 17:22:02 +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
Bruce Evans
0c9467724c
Fixed syntax errors in synopsis. The restrict keyword doesn't exist yet.
...
The corresponding bugs in <wchar.h> have no effect because the function
prototypes there don't have args so the __restrict "keyword" is
misinterpreted as an arg.
2001-10-03 05:19:47 +00:00
Ruslan Ermilov
32eef9aeb1
mdoc(7) police: Use the new .In macro for #include statements.
2001-10-01 16:09:29 +00:00
Mike Barcroft
545c943a7b
Note that strdup(3) will set errno if memory allocation fails. This
...
is also required by the forthcoming POSIX.1-200x standard.
Obtained from: malloc.3
2001-09-23 00:37:42 +00:00
Mike Barcroft
107d3f78b0
o Various mdoc fixes.
...
o Replace strncpy examples with less confusing ones from
OpenBSD. These examples give more detail and also suggest
using strlcpy(3).
Reviewed by: des, ru, sheldonh
Obtained from: OpenBSD
MFC after: 3 days
2001-08-09 17:10:48 +00:00
Ruslan Ermilov
6575e6daae
mdoc(7) police: expand plain text xrefs.
2001-08-08 11:48:28 +00:00
Mark Peek
545d32087b
Only pull in the MD files if they exist. This allows for progressive
...
implementation and compilation when bringing up a new architecture.
2001-07-31 16:34:52 +00:00
Kris Kennaway
6979f76ff6
Sync to OpenBSD (update comment and minor style change).
...
Obtained from: OpenBSD
MFC after: 1 week
2001-07-24 11:34:22 +00:00
Kris Kennaway
af13ede905
Sync to OpenBSD:
...
Clarify that if strlcat() does not find a NUL within siz byte it
will not NUL terminate either.
Document boundary condition when size < strlen(dst).
"of", not "on" (from Henric Jungheim)
Obtained from: OpenBSD
MFC After: 1 week
2001-07-24 11:32:29 +00:00
Dima Dorfman
df523897ea
Don't claim that strncpy() is the same as strcpy().
...
PR: 29002
Submitted by: Joseph Mallett <jmallett@xMach.org>
2001-07-19 11:26:52 +00:00
Ruslan Ermilov
e3745c75e6
mdoc(7) police: Add strncpy() to the NAME section.
2001-07-16 12:47:34 +00:00
Dima Dorfman
7ebcc426ef
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
David E. O'Brien
c34d5912ba
style nits
2001-07-10 17:48:07 +00:00
Ruslan Ermilov
a307d59838
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 13:41:46 +00:00
David E. O'Brien
5864b79cd2
Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.
...
Do the same for the non-wcs*/wmem* files while I'm here.
2001-05-24 08:47:42 +00:00
Ruslan Ermilov
45993e3bd4
... but we do provide .St -isoC-99, and it is not required to have the
...
history info as:
: .Sh STANDARDS If the command, library function or file adheres to a
: specific implementation such as IEEE Std 1003.2
: (``POSIX.2'') or ANSI X3.159-1989 (``ANSI C'') this
: should be noted here. If the command does not adhere
: to any standard, its history should be noted in the
: HISTORY section.
2001-05-17 08:22:43 +00:00
Ruslan Ermilov
9d3618b999
Unbreak world; _DIAGASSERT macro is not available in FreeBSD.
2001-05-16 14:34:47 +00:00
Takuya SHIOZAKI
01e281bd12
adapt to FreeBSD.
...
- enable locale-insensitive functions of wchar.h:
wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c
wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c
wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c
XXX: wcswidth.c is not enabled yet.
- enable wmemchr(3) man page.
XXX: FreeBSD lacks .St -isoC99 and .St -isoC-amd1.
2001-05-15 20:34:20 +00:00
Takuya SHIOZAKI
9829d36a86
initial import of locale insensitive wcs* and wmem* functions.
...
Obtained from: NetBSD and Citrus.
2001-05-15 06:01:19 +00:00
Ruslan Ermilov
86315d60a0
mdoc(7) police: add RETURN VALUES section.
...
PR: docs/27161
Submitted by: Kazuhiro KONDOU <k-fuji@za2.so-net.ne.jp>
2001-05-14 18:38:05 +00:00
Ruslan Ermilov
4a558355e5
MAN[1-9] -> MAN.
2001-03-27 17:27:19 +00:00
Ruslan Ermilov
588a200ce1
.St -ansiC -> .St -isoC
2001-02-26 13:23:47 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
Chris D. Faulhaber
401643c23e
Clarify comments referring to strlcat() usage
...
Obtained from: OpenBSD
2001-01-17 20:51:20 +00:00
Chris D. Faulhaber
420923e972
- Reverse the order of two loop invariant to ensure strlcat() does not
...
attempt to read memory when siz is 0
- Clarify comments referring to strlcat() usage
PR: 24278, 24295
Submitted by: Tony Finch <dot@dotat.at>
Richard Kettlewell <rjk@greenend.org.uk>
Reviewed by: -audit
2001-01-17 20:51:16 +00:00
Ruslan Ermilov
b77b3c00be
mdoc(7) police: Ft/Vt now accept punctuation-type arguments.
2001-01-12 15:46:56 +00:00
Ruslan Ermilov
4263595653
Prepare for mdoc(7)NG.
2000-12-29 14:08:20 +00:00
Ruslan Ermilov
ed40311694
mdoc(7) police: removed history info from the .Os FreeBSD call.
2000-12-14 11:52:05 +00:00
Kris Kennaway
b05092e25a
MAXPATHNAMELEN -> MAXPATHLEN
...
Submitted by: ianm@kashmir.cit.nepean.uws.edu.au via OpenBSD
Obtained from: OpenBSD
2000-11-19 11:29:58 +00:00
Ruslan Ermilov
251c176f41
mdoc(7) police: use certified section headers wherever possible.
2000-11-17 11:44:16 +00:00
Ruslan Ermilov
726b61ab5f
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
Andrey A. Chernov
e426928478
Add:
...
The implementation will behave as if no library function calls strtok().
2000-09-03 13:24:28 +00:00
Alexander Langer
6e145859ff
Drop the references to index(3) and rindex(3), which are non-standard
...
and people shouldn't be encouraged to use them.
Asked by: sheldonh
2000-07-18 08:05:11 +00:00
Alexander Langer
24c196fe25
Add SEE ALSO section, as with the other string functions.
...
Submitted by: dcs
2000-07-17 19:00:26 +00:00
Alexey Zelkin
25bb73e063
Introduce ".Lb" macro to libc manpages.
...
More libraries manpages updates following.
2000-04-21 09:42:15 +00:00
Sheldon Hearn
c6ff3a1bf7
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-02 09:14:21 +00:00
Bill Fumerola
1ecbf08a0c
Grammar: "be even number" -> "be an even number"
2000-01-03 20:18:04 +00:00
Tim Vanderhoek
555fff2109
Backout the prev. commit. It's a bad idea to make-up terms. I believe
...
there is no good solution here.
Set-on-the-straight-and-narrow by: bde
1999-12-31 21:27:02 +00:00