Ruslan Ermilov
fd779e0181
mdoc(7) police: tiny nits.
...
Approved by: re
2002-12-09 14:04:05 +00:00
Ruslan Ermilov
1798791d24
mdoc(7) police: formatting nits.
...
Approved by: re
2002-11-29 15:57:50 +00:00
Ruslan Ermilov
c51d717f0c
libc_r wasn't so tied to libc for 22 months.
2002-11-18 09:50:57 +00:00
Tim J. Robbins
fcd7f38f46
Replace wcsstr() with an implementation based on strstr(), which is far
...
more efficient. The problem with the previous implementation was that it
calculated the length of the first argument ("big") with wcslen() when
it was not necessary.
2002-10-24 02:53:45 +00:00
Tim J. Robbins
1707c9c3f5
Restore Berkeley SCCS id.
2002-10-24 02:48:45 +00:00
Tim J. Robbins
6f9ed74abc
Remove the Standards section again until we get these functions sorted
...
out. This will probably have to wait until after 5.0-R.
2002-10-24 01:24:26 +00:00
Tim J. Robbins
fb22884400
Fix the NetBSD RCS id's on these files; somehow they were initially
...
committed with the tags unexpanded.
2002-10-23 11:08:40 +00:00
Tim J. Robbins
1eb0f442c7
Reimplement more efficiently, using a single forward scan (like strrchr(3))
...
instead of scanning forwards to find the end of the string then scanning
backwards to find the character.
2002-10-23 10:52:04 +00:00
Tim J. Robbins
ec23fdffc7
Reimplement, handling the case where c == L'\0' correctly and fixing
...
some style(9) bugs.
2002-10-23 10:47:47 +00:00
Tim J. Robbins
edafcb6d73
Add a Standards section, claiming conformance to IEEE Std. 1003.1-2001.
...
Also add a note to the Bugs section pointing out that strerror() and
perror() share the same static buffer.
2002-10-23 10:16:21 +00:00
Dag-Erling Smørgrav
02edf2208d
Translate to English.
2002-10-23 08:55:14 +00:00
Tim J. Robbins
4bf546e192
Replace this wcsncpy() implementation with one based on strncpy.c to fix
...
two major bugs:
- off-by-one overflow when the length of the source string exceeds or
equals the destination buffer size.
- old version was not padding the destination buffer with null wide chars
2002-10-23 04:35:25 +00:00
Tim J. Robbins
f7383f14ae
C89 does not specifiy strsep(), so our strsep() implementation cannot
...
conform to it.
Obtained from: OpenBSD
2002-10-19 13:41:22 +00:00
Tim J. Robbins
2fe3e5cda7
Add cross-references to the wide character counterparts of these functions.
2002-10-15 10:11:53 +00:00
Tim J. Robbins
616e099e5c
Remove stray comma at the end of the See Also list.
2002-10-15 09:49:54 +00:00
Robert Drehmel
5d38e85ded
Fix another spelling mistake.
2002-10-10 14:16:08 +00:00
Robert Drehmel
73fbee5795
Correct a spelling mistake.
2002-10-10 14:14:44 +00:00
Tim J. Robbins
fd4f1dd9fa
Add a placeholder implementation of wcscoll() and wcsxfrm() which gives
...
locale-sensitive collation only in single-byte locales, and just does
binary comparison for the others with extended character sets.
2002-10-04 03:18:26 +00:00
David E. O'Brien
8269e8c887
Add stpcpy(3).
2002-10-03 19:39:20 +00:00
Tim J. Robbins
61d7477610
Add an example showing how to use wcstok(). Fix ordering of See Also section.
2002-10-02 14:28:26 +00:00
Tim J. Robbins
ce2a18008c
Simplify by removing unneeded local variables and explicit null termination.
2002-09-26 09:28:55 +00:00
Tim J. Robbins
e2361b6f16
Simplify by removing useless local variables and explicit null termination.
2002-09-26 09:23:07 +00:00
Tim J. Robbins
99330f8368
Remove unnecessary #include <assert.h>; it was used to bring in the
...
_DIAGASSERT macro on NetBSD, but we don't need it.
2002-09-21 00:29:23 +00:00
Tim J. Robbins
8e4365cf75
Replace a stray reference to strtok() with one to wcstok().
2002-09-08 11:09:24 +00:00
Tim J. Robbins
9ad391340e
Add an implementation of wcstok(), based on strtok_r().
2002-09-07 08:16:57 +00:00
Tim J. Robbins
85adcfc150
Sync prototypes with <wchar.h> with respect to the restrict qualifier.
2002-09-07 04:07:00 +00:00
Tim J. Robbins
9c261371ec
Add restrict qualifiers where C99 permits them. All of these already had
...
restrict qualifiers on their prototypes in <wchar.h>.
2002-09-07 04:03:28 +00:00
Tim J. Robbins
91bd11ad84
Call strtok_r() via a libc private name from within strtok().
2002-09-07 02:53:19 +00:00
Tim J. Robbins
58d38e2520
Style: One space between "restrict" qualifier and "*".
2002-09-06 11:24:06 +00:00
Robert Drehmel
bc0ad8e7a1
- Let their manual pages show the reader that the bzero(3) and
...
bcopy(3) functions are prototyped in <strings.h> and not in
<string.h> anymore.
- Add a sentence about that to the respective HISTORY sections.
In the C source files:
- Include <string.h> or <strings.h> depending on what function
is to be compiled.
- Use ANSI-C function definitions.
2002-09-01 21:53:46 +00:00
Robert Drehmel
2f4772b37f
Add the 'restrict' type qualifier to the function prototype
...
of the swab(3) function in its manual page to match the
standardization by POSIX.1-2001.
2002-08-30 21:18:39 +00:00
Robert Drehmel
9abf5797a0
- Update the manual page of bcmp(3) by replacing
...
.In string.h
with
.In strings.h
and adding a sentence to the HISTORY section.
- Use an ANSI-C function definition.
- Include <strings.h> instead of <string.h>.
- Apply style(9): Put a space after return keywords.
2002-08-30 21:07:40 +00:00
Robert Drehmel
c9ab23eea5
- Convert the function definition to declare its arguments
...
in the ANSI-C format.
- Change the code a bit to hopefully save some cycles.
I.e. (simplified) change
a = b + 1;
while (--b & 0x7)
/* ... */
to
a = b;
for (; b & 0x7; b--)
/* ... */
and
while (--a >= 0)
/* ... */
to
for (; a > 0; a--)
/* ... */
- Equip two function arguments of swab() with the 'restrict'
type qualifier in form of the '__restrict' macro. This is
specified by POSIX.1-2001.
2002-08-30 20:33:05 +00:00
Robert Drehmel
425289a9db
- Update the manual pages of index() and rindex() to show
...
<strings.h> as the associated header file.
The prototypes have been moved there from <string.h> because
POSIX.1-2001 said so.
- Conditionally include either <strings.h> or <string.h> based
on whether the [r]index() or str[r]chr() functions are
compiled, respectively.
- Style(9) tells us to
- put a space after the return keyword
- to check for a NUL character without using the ! operator.
- use NULL instead of (type *)NULL where the compiler knows
the type.
Apply these rules.
- Rather use ANSI-C function definitions than K&R ones.
- For index(3), correct second function argument's type; it was
declared to be a `const char' before and is now an `int'.
2002-08-30 19:42:07 +00:00
Robert Drehmel
554331bbb9
- Update the manual page to show that the associated header file
...
is <strings.h> and not <string.h> anymore.
- Tell the reader about this change in the HISTORY section.
- Switch to use an ANSI-C function definition.
- Include <strings.h> instead of <string.h> in the source file.
2002-08-30 19:08:53 +00:00
Robert Drehmel
c271a3613c
- Update strcasecmp(3)/strncasecmp(3) to reflect the fact that
...
the prototypes for both functions are now in the <strings.h>
header, as required by IEEE Std 1003.1-2001.
- Add one sentence about that in the HISTORY section.
- Include <strings.h> in the source file to have the prototypes
in scope when the _ANSI_SOURCE macro is defined.
2002-08-30 15:40:01 +00:00
Tim J. Robbins
c8e804757d
Add a manual page for wcswidth().
2002-08-20 03:40:45 +00:00
Andrey A. Chernov
353450fbbe
Move just committed version of wcswidth.c here (from "locale"),
...
a bit optimized now.
2002-08-20 02:06:28 +00:00
Robert Drehmel
ad90696815
- Add the 'restrict' qualifier to the definitions of the string
...
concatenation and copy functions using the '__restrict' macro.
This is to satisfy IEEE Std 1003-1.2001.
- Use ANSI-C function definitions.
- Add the 'restrict' keyword to the manual pages, too.
2002-08-14 22:59:22 +00:00
Robert Drehmel
33f9b60eee
- Add the 'restrict' qualifier required by IEEE Std 1003.1-2001
...
to the function definition of strxfrm(3) in form of our
'__restrict' macro.
- Use an ANSI-C function definition for strxfrm(3).
- Change the manual page accordingly.
2002-08-14 21:01:04 +00:00
Archie Cobbs
a8ee7a0256
Correct an inaccuracy in this man page regarding detecting empty fields.
...
MFC after: 2 days
2002-08-07 20:08:50 +00:00
Jonathan Mini
16f33a4885
Fix off-by-one error.
...
PR: misc/40104
Submitted by: Neal Fachan <neal@isilon.com>
MFC after: 3 days
2002-07-03 06:28:04 +00:00
David E. O'Brien
333fc21e3c
Fix the style of the SCM ID's.
...
I believe have made all of libc .c's as consistent as possible.
2002-03-22 21:53:29 +00:00
David E. O'Brien
8fb3f3f682
Remove 'register' keyword.
2002-03-21 18:49:23 +00:00
Chris D. Faulhaber
ea018aa260
Revert last commit. stdio.h include is for perror(), not strerror()
2002-01-31 13:32:14 +00:00
Chris D. Faulhaber
066f7169c1
strerror(3) is in string.h, not stdio.h
...
MFC after: 1 week
2002-01-31 13:20:48 +00:00
Mike Barcroft
4681597d9a
Add a few cleanups from rev 1.1:
...
o Restore vendor ID.
o Order variable types by size.
o Remove a gratuitous temporary variable.
Submitted by: bde
2002-01-15 17:52:21 +00:00
Mike Barcroft
1936b2c83b
o Add prototype for printf(3).
...
style(9):
o Order variables in declarations.
o Move initialization out of declaration.
o Fix over-indents in previous delta.
2002-01-15 08:50:28 +00:00
Mike Barcroft
f601b5ba4b
style(9)
...
Submitted by: Joseph Mallett <jmallett@xmach.org>
Reviewed by: md5(1)
2002-01-15 08:26:58 +00:00
Ruslan Ermilov
ce9df6eefc
mdoc(7) police:
...
Stop abusing the .%J macro for where the .Pa macro should have been used.
2002-01-09 14:01:22 +00:00
Dima Dorfman
b06e8b97a9
Suggest using memmove(3) if src and dst may overlap.
...
PR: 33298
Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au>
2002-01-07 06:03:37 +00:00
Chris Costello
41f91cb492
Add a new `SECURITY CONSIDERATIONS' section. Sample code similar to
...
the first revision of strcpy(3)'s section is included, but should be
removed as the Security Architecture document is committed and
completed.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
2002-01-05 20:44:34 +00:00
Chris Costello
80080d642e
Include a section cross-reference to EXAMPLES' in
SECURITY
...
CONSIDERATIONS' as a source for relevant sample code.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
2002-01-05 20:36:47 +00:00
Chris Costello
8680aaea87
Remove the example from SECURITY CONSIDERATIONS. This is mostly
...
duplicated code from EXAMPLES.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
2002-01-05 20:24:38 +00:00
Chris Costello
17dc85f4d0
Copy the sample `SECURITY CONSIDERATIONS' section from sec-doc.7.
...
This will be trimmed as the FreeBSD Security Architecture document
is fleshed out and committed.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
2002-01-02 19:56:57 +00:00
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
Tim Vanderhoek
90f3949dad
Add ".Xref tolower 3" since its internal use is inferred in DESCRIPTION.
1999-12-28 14:57:33 +00:00
Tim Vanderhoek
1ec6c24405
Avoid the potentially confusing term "a null pointer" and say "the NULL
...
pointer" instead. The potential confusion arises because the string/*.3
pages use the term "null-terminated string" (which is permissable). Moreover,
this also makes these two manpages more consistent with the other string/*.3
manpages.
1999-12-28 14:47:00 +00:00
Bill Fumerola
b837caf89b
Remove x-ref to itself.
...
Reviewed by: mpp
1999-12-14 11:34:47 +00:00
David E. O'Brien
dd4bd1e7ba
Add HISTORY.
1999-10-29 16:50:22 +00:00
Warner Losh
4e2abf95a3
Xref strlcat, strlcpy
...
Inspired by: NetBSD commit message describing this.
1999-09-28 04:11:47 +00:00
Dmitrij Tejblum
e755fb7671
__collate_substitute() do something non-trivial only for German. For everyone
...
else, it is equivalent to strdup(). So, we will check if the substitution
tables are trivial at the load time, and possibly save 2 calls to
__collate_substitute() in strcoll().
Still, __collate_substitute() should not exist.
1999-09-12 21:15:28 +00:00
Mike Pritchard
ba79fc6822
Add $FreeBSD$ lines to man pages that are missing them to make
...
it easier for translation teams.
PR: docs/13418
Submitted by: Alexey Zelkin <phantom@cris.net>
1999-08-28 23:04:49 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Mike Pritchard
74804d58a0
Various man page cleanup:
...
- Sort xrefs
- FreeBSD.ORG -> FreeBSD.org
- Be consistent with section names as outlines in mdoc(7)
- Other misc mdoc cleanup.
PR: doc/13144
Submitted by: Alexy M. Zelkin <phantom@cris.net>
1999-08-15 09:51:25 +00:00
Warner Losh
d64292d252
Use the latest version of these files from OpenBSD.
...
1) Safty change from casper dik was added to OpenBSD's sources since I
grabbed them. milltert@openbsd.org
2) Split up strlcpy to improve efficiency of the common case.
milltert@openbsd.org
3) Cleanup of cross references for man page. {alex,aaron}@openbsd.org
Pointed out by: deraadt@openbsd.org
1999-08-10 05:58:58 +00:00
Warner Losh
a41df9e30e
Import strl{cat,cpy} from OpenBSD.
...
Obtained from: OpenBSD
1999-08-10 05:21:31 +00:00
Nik Clayton
fbc400a67a
Add $Id$, to make it simpler for members of the translation teams to
...
track.
The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
1999-07-12 20:50:10 +00:00
Wes Peters
b7edc98010
Fixed a minor style nit in the EXAMPLE section.
1999-07-10 19:18:42 +00:00
Mike Pritchard
49cb735198
Fix a minor style nit in the NAME section.
1999-06-11 16:26:29 +00:00
Mike Pritchard
fa91ff2797
Move the description of the strncmp() function from the RETURN VALUES
...
section to the DESCRIPTION section.
PR: 12133
Submitted by: Sheldon Hearn <sheldonh@uunet.co.za>
1999-06-11 16:16:32 +00:00
Bruce Evans
a425c38dfd
Fixed disordering and duplication of MLINKS in previous commit to
...
libc/string/Makefile.inc. psignal.3 doesn't live in libc/string.
1999-05-19 06:32:00 +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
Warner Losh
dcb0ae4ed8
More egcs warning fixes:
...
o use braces to avoid potentially ambiguous else
o don't default to type int (and also remove a useless register
modifier).
o Use parens around assignment values used as truth values.
o Remove unused function.
Reviewed by: obrien and chuckr
1999-04-25 22:29:30 +00:00
Guy Helmer
2704b2cb2b
Corrected use of backslash escaping in sample code.
...
PR: docs/10284
Submitted by: Alfred Perlstein <bright@cygnus.rush.net>
1999-02-27 00:54:40 +00:00
Andrey A. Chernov
7345cf9025
remove BUGS section, now behaviour is predictable enough
1999-02-13 09:57:58 +00:00
Andrey A. Chernov
9cee5c5b5c
more words about return value
1999-02-13 00:04:54 +00:00
Andrey A. Chernov
e7f6db3ccb
re-phrase things a bit
1999-02-12 23:52:29 +00:00
Andrey A. Chernov
f0e6ee9f05
fix wrong return result
...
fix n=0 case
improve manpage
1999-02-12 23:40:41 +00:00
John Polstra
83068b622c
Install man page link for strtok_r.
1999-01-19 23:45:48 +00:00
John Polstra
32150a6766
Spell check and minor grammar fix.
1999-01-19 23:42:44 +00:00
Wes Peters
b1e12513fa
Reviewed by: JKH
...
Submitted by: Wes Peters
Added strtok_r (reentrant) function and man page.
1998-12-14 05:11:26 +00:00
Robert Nordier
4a3bc52a9c
(Whoops: make it better instead of worse this time). Clarify
...
processing of the string argument by perror().
1998-10-29 22:08:59 +00:00
Robert Nordier
94cc971811
Clarify processing of the string argument by perror().
1998-10-29 21:59:38 +00:00
Andrey A. Chernov
0ea569ff6f
Fix handling more than 1 char with non-C locale
...
Misc. cleanup
PR: 6825
Submitted by: Sergey Gershtein <sg@mplik.ru>
1998-06-05 09:49:51 +00:00
John Birrell
adaa81ba92
Cast a pointer to a long, not an int before masking it.
1998-05-10 21:22:47 +00:00
James Raynard
66c15901aa
Pedantry (NULL -> NUL).
1998-05-03 22:42:45 +00:00
John Birrell
0107877e04
Change MACHINE references to MACHINE_ARCH.
1998-02-20 08:23:55 +00:00
Daniel O'Callaghan
38ce39bde5
PR: 5573
...
Submitted by: garbanzo@hooked.net
Add strncasecmp, strncmp to NAME field.
1998-01-27 07:01:09 +00:00
Wolfram Schneider
de635b0683
The terminating character in strings is NUL', not
NULL'.
1997-12-28 12:06:29 +00:00
Bruce Evans
b966cc2394
Sorted lists.
1997-10-21 08:41:15 +00:00
Bruce Evans
ae80efa54f
Handle machine-dependent (m-d) (string) sources more automatically.
...
The names of m-d variants are now added (manually) to MDSRCS instead
of to SRCS, and the names of all machine-independent (m-i) variants
that can reasonably be replaced by an m-d variant are now added
(manually) to MISRCS instead of to SRCS, so that a simple substitution
can be used to discard the unused m-i variants. MISRCS is potentially
all m-i sources, but the substitution is too simple to be fast, so
MISRCS should be kept reasonably small.
libc/Makefile.inc:
Do the substitution.
libc/i386/string/Makefile.inc:
Add to MDSRCS instead of to SRCS. Add the names of all sources in this
directory, but no others.
libc/string/Makefile.inc
Add to MISRCS instead of to SRCS. Add the names of all sources in this
directory. Don't use (broken) explicit rules for special cases.
1997-10-16 13:46:50 +00:00
Bruce Evans
2bc3b4d735
Removed the subdirectory paths from the definitions of MAN[1-9]. They
...
were a workaround for limitations in bsd.man.mk that were fixed about
2 years ago.
1997-10-15 16:16:41 +00:00
Bruce Evans
e94b7ef033
Added some 2-line source files to get a direct correspondence
...
between sources and objects. This will be used to avoid messy
special cases in Makefile.inc.
1997-10-15 15:27:19 +00:00
Peter da Silva
dc1f820ee5
Added bounds checking to the example after chasing down someone's
...
broken code where they'd copied the example basically verbatim and
blew an array. (engage brain before typing 'make')
1997-07-26 00:47:06 +00:00
Peter Wemm
65b3003d2d
kill the undead
1997-07-13 14:26:00 +00:00
Bruce Evans
362c392f0b
This commit was generated by cvs2svn to compensate for changes in r27180,
...
which included commits to RCS files with non-trunk default branches.
1997-07-03 03:28:27 +00:00
Bruce Evans
5500fdcd4f
Import Lite2's src/lib, except for non-i386 machine-dependent directories,
...
libc/db, libc/gen/crypt.* and libtelnet. All affected files except 3
unimportant ones have already left the vendor branch.
1997-07-03 03:28:27 +00:00
John Birrell
870039320f
Changed all paths to be relative to src/lib instead of src/lib/libc
...
so that all these makefiles can be used to build libc_r too.
Added .if ${LIB} == "c" tests to restrict man page builds to libc
to avoid needlessly building them with libc_r too.
Split libc Makefile into Makefile and Makefile.inc to allow the
libc_r Makefile to include Makefile.inc too.
1997-05-03 03:50:06 +00:00
Bruce Evans
a3315650db
Fixed #include and/or prototype bugs in synopsis.
1997-04-19 15:57:20 +00:00
Peter Wemm
4ace1b5205
Merge from Lite2 (whiteout/unionfs)
1997-03-11 11:41:46 +00:00
Peter Wemm
662909a780
Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch
1997-03-11 11:29:42 +00:00
Peter Wemm
e5493ddb0f
This commit was generated by cvs2svn to compensate for changes in r23658,
...
which included commits to RCS files with non-trunk default branches.
1997-03-11 11:29:42 +00:00
Peter Wemm
7e546392b5
Revert $FreeBSD$ to $Id$
1997-02-22 15:12:41 +00:00
Wolfram Schneider
75141cc987
Sort cross references.
1997-01-20 23:23:22 +00:00
Jordan K. Hubbard
1130b656e5
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Wolfram Schneider
e83201b43a
delete doubled words, e.g.: "the the" -> "the"
1996-10-05 22:27:30 +00:00
Wolfram Schneider
e0e5145ce6
add missing comma(s) in .Xr macros
1996-09-23 22:24:39 +00:00
Bruce Evans
e0c95ed947
Fixed the easy cases of const poisoning in the kernel. Cosmetic.
1996-08-31 16:52:44 +00:00
Mike Pritchard
7bdf80e571
Correctly use .Fn instead of .Nm to reference function names
...
in a bunch of man pages.
Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros
instead of explicitly specifying the version in the text
in a bunch of man pages.
1996-08-22 23:31:07 +00:00
Andrey A. Chernov
c2bfae006a
Back out fallback approximation changes, they are not so right to live
1996-08-13 17:03:18 +00:00
Jordan K. Hubbard
51295a4d3e
General -Wall warning cleanup, part I.
...
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 18:57:58 +00:00
Andrey A. Chernov
45110ccfce
Use better approximation if collate info not available.
...
Fix bug: strxfrm+strcmp != strcoll, if collate info not available
1996-06-09 14:56:08 +00:00
Andrey A. Chernov
2127ab9a07
Localize it.
...
(it was NOT localized initially, it does some trick instead!)
1996-06-09 13:31:06 +00:00
Wolfram Schneider
9fb933075e
`mv'' ->
`mv -f''
...
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
1996-05-07 23:19:49 +00:00
Bruce Evans
6a59f3db1a
Added `const' to types of sys_errlist and sys_nerr.
...
Use .Va instead of .Fa to describe these variables.
Say a little about inconsistent declarations of sys_errlist in the BUGS
section.
1996-04-19 14:02:03 +00:00
Mike Pritchard
59f00bcdd9
Update the description of strncat to accurately describe how many
...
bytes are copied to the destination string. Closes PR#1000.
Submitted by: Dave Glowacki <dglo@ssec.wisc.edu>
1996-04-09 22:00:39 +00:00
Mike Pritchard
bcff8e2ae4
Another round of man page cleanups.
...
Down to only about 100 items left to cleanup! :-)
1996-02-12 04:57:03 +00:00
Mike Pritchard
a5ed710ccd
Fix even more spelling errors in some more man pages.
1996-01-30 16:34:52 +00:00
Mike Pritchard
b6607b59c8
Correct the strspn() man page so that it no longer references
...
itself as strcspn().
Obtained from: NetBSD-bugs mailing list (PR# 1905)
1996-01-10 11:06:25 +00:00
Peter Wemm
6065a0be11
This commit was generated by cvs2svn to compensate for changes in r13122,
...
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00
Rodney W. Grimes
6c06b4e2aa
Remove trailing whitespace.
1995-05-30 05:51:47 +00:00
Andrey A. Chernov
db4dc2ff6e
If locale not available, fallback to strcasecmp, not to strcmp
1995-04-16 22:43:45 +00:00
Bruce Evans
553e72d902
Don't build swab.o here. It gets built in libc/i386/string. Previously
...
the copy built from here was overwritten by the other copy and the other
copy was put in library-building command lines twice. ld now objects to
duplicated modules.
1995-03-07 04:19:11 +00:00
Andrey A. Chernov
e96a21509f
Minor optimization.
1995-02-18 11:36:33 +00:00
Andrey A. Chernov
7b7aeeccde
Copyrights cleanup
1995-02-18 01:39:00 +00:00
Andrey A. Chernov
a4d5d0cbde
Add 8bit collate stuff
...
Submitted by: alex@elvisti.kiev.ua
1995-02-16 17:01:11 +00:00
Bruce Evans
a0d0470f49
Obtained from: 386BSD-0.1 patchkit; also fixed in 1.1.5
...
Compare unsigned chars.
Return the place after where the character was found and not the start
of the string.
1994-12-12 01:23:33 +00:00
Garrett Wollman
a040910f9b
Use latest Arthur Olson timezone code rather than that supplied with
...
4.4. The code is almost identical to the 4.4 versions, but this organization
should make it easier to merge new versions in the future.
1994-09-13 21:26:08 +00:00
Bruce Evans
aeeb6869a5
Don't include <sys/types.h> to get u_int or use u_int for a bogus cast.
...
Modernize bcopy -> memcpy.
1994-09-05 13:41:33 +00:00
Bruce Evans
5ec11cf0bb
Fix printing of weird errno's: negative values were printed as large
...
unsigned's; null termination was only guaranteed for the first call.
Fix lint: don't declare externs internally; they were both out of date.
1994-09-05 13:37:43 +00:00
Garrett Wollman
2ceb2ce9ee
First crack at making libc work with the new make macros. It compiles on
...
my machine, and a simple static (genassym) and shared (sysctl) executable
both work. Still to be done: RPCand YP merge.
1994-08-05 01:19:12 +00:00
Rodney W. Grimes
58f0484fa2
BSD 4.4 Lite Lib Sources
1994-05-27 05:00:24 +00:00