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