summaryrefslogtreecommitdiff
path: root/lib/libc/string
Commit message (Collapse)AuthorAgeFilesLines
* Remove 'register' keyword.David E. O'Brien2002-03-2128-76/+76
| | | | Notes: svn path=/head/; revision=92889
* Revert last commit. stdio.h include is for perror(), not strerror()Chris D. Faulhaber2002-01-311-1/+1
| | | | Notes: svn path=/head/; revision=90021
* strerror(3) is in string.h, not stdio.hChris D. Faulhaber2002-01-311-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=90017
* Add a few cleanups from rev 1.1:Mike Barcroft2002-01-151-10/+12
| | | | | | | | | | | o Restore vendor ID. o Order variable types by size. o Remove a gratuitous temporary variable. Submitted by: bde Notes: svn path=/head/; revision=89400
* o Add prototype for printf(3).Mike Barcroft2002-01-151-9/+12
| | | | | | | | | | style(9): o Order variables in declarations. o Move initialization out of declaration. o Fix over-indents in previous delta. Notes: svn path=/head/; revision=89387
* style(9)Mike Barcroft2002-01-151-95/+63
| | | | | | | | Submitted by: Joseph Mallett <jmallett@xmach.org> Reviewed by: md5(1) Notes: svn path=/head/; revision=89385
* mdoc(7) police:Ruslan Ermilov2002-01-092-3/+4
| | | | | | | Stop abusing the .%J macro for where the .Pa macro should have been used. Notes: svn path=/head/; revision=89138
* Suggest using memmove(3) if src and dst may overlap.Dima Dorfman2002-01-071-2/+7
| | | | | | | | PR: 33298 Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au> Notes: svn path=/head/; revision=88983
* Add a new `SECURITY CONSIDERATIONS' section. Sample code similar toChris Costello2002-01-051-0/+63
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=88940
* Include a section cross-reference to `EXAMPLES' in `SECURITYChris Costello2002-01-051-1/+3
| | | | | | | | | | CONSIDERATIONS' as a source for relevant sample code. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=88939
* Remove the example from SECURITY CONSIDERATIONS. This is mostlyChris Costello2002-01-051-54/+0
| | | | | | | | | | duplicated code from EXAMPLES. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=88938
* Copy the sample `SECURITY CONSIDERATIONS' section from sec-doc.7.Chris Costello2002-01-021-0/+66
| | | | | | | | | | | This will be trimmed as the FreeBSD Security Architecture document is fleshed out and committed. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=88830
* mdoc(7) police: minor markup nits.Ruslan Ermilov2001-12-121-20/+20
| | | | Notes: svn path=/head/; revision=87739
* Make strerror and strerror_r use sys_errlist[0] for errnum = 0. BeWes Peters2001-12-072-6/+32
| | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=87480
* New, improved, more Posix-compliant strerror_r implementation,Wes Peters2001-12-062-72/+78
| | | | | | | | | | complete with documentation. Reviewed by: mike@ gad@ MFC after: 1 week Notes: svn path=/head/; revision=87434
* Must link strerror manpage to strerror_r.Wes Peters2001-11-271-0/+1
| | | | | | | | | Thanks for the review, Mike. Submitted by: Mike Barcroft <mike@FreeBSD.org> Notes: svn path=/head/; revision=86945
* Add strerror_r function per Posix prototype.Wes Peters2001-11-272-23/+107
| | | | | | | | Reviewed by: Mike Barcroft <mike@FreeBSD.org> MFC after: 2 weeks Notes: svn path=/head/; revision=86944
* mdoc(7) police: minor markup and spelling fixes.Ruslan Ermilov2001-11-201-4/+7
| | | | Notes: svn path=/head/; revision=86658
* Increment the loop counter.Dag-Erling Smørgrav2001-11-101-0/+1
| | | | | | | | PR: bin/29218 Submitted by: Goran Lowkrantz <goran.lowkrantz@ismobile.com> Notes: svn path=/head/; revision=86241
* rcsid[]->__FBSDIDDavid E. O'Brien2001-11-0755-248/+95
| | | | Notes: svn path=/head/; revision=86170
* Note that strncmp() will not compare characters after a NUL character.Mike Barcroft2001-10-111-1/+8
| | | | | | | | | | Add a missing word. Bump document date. Inspired by: IEEE Std 1003.1-200x (Draft 7) MFC after: 3 days Notes: svn path=/head/; revision=84810
* Clarify that strnstr() will stop searching after in encounters a NULMike Barcroft2001-10-111-5/+8
| | | | | | | character. Bump document date. Add a missing comma. Notes: svn path=/head/; revision=84808
* Implement strcasestr() which many others (f.e. Linux) already have.Andrey A. Chernov2001-10-103-2/+79
| | | | Notes: svn path=/head/; revision=84740
* Document the fact that the strnstr(3) function is not portable.Mike Barcroft2001-10-091-0/+5
| | | | | | | Requested by: brian, gad Notes: svn path=/head/; revision=84728
* Add a new libc function, strnstr(3), which allows one to limit theMike Barcroft2001-10-093-11/+122
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=84699
* Fixed syntax errors in synopsis. The restrict keyword doesn't exist yet.Bruce Evans2001-10-031-5/+5
| | | | | | | | | 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. Notes: svn path=/head/; revision=84398
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-0135-36/+36
| | | | Notes: svn path=/head/; revision=84306
* Note that strdup(3) will set errno if memory allocation fails. ThisMike Barcroft2001-09-231-1/+4
| | | | | | | | | is also required by the forthcoming POSIX.1-200x standard. Obtained from: malloc.3 Notes: svn path=/head/; revision=83847
* o Various mdoc fixes.Mike Barcroft2001-08-091-10/+50
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=81361
* mdoc(7) police: expand plain text xrefs.Ruslan Ermilov2001-08-081-1/+2
| | | | Notes: svn path=/head/; revision=81285
* Only pull in the MD files if they exist. This allows for progressiveMark Peek2001-07-311-0/+2
| | | | | | | implementation and compilation when bringing up a new architecture. Notes: svn path=/head/; revision=80743
* Sync to OpenBSD (update comment and minor style change).Kris Kennaway2001-07-241-3/+4
| | | | | | | | Obtained from: OpenBSD MFC after: 1 week Notes: svn path=/head/; revision=80274
* Sync to OpenBSD:Kris Kennaway2001-07-241-2/+23
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=80273
* Don't claim that strncpy() is the same as strcpy().Dima Dorfman2001-07-191-6/+6
| | | | | | | | PR: 29002 Submitted by: Joseph Mallett <jmallett@xMach.org> Notes: svn path=/head/; revision=79952
* mdoc(7) police: Add strncpy() to the NAME section.Ruslan Ermilov2001-07-161-1/+1
| | | | Notes: svn path=/head/; revision=79787
* Remove whitespace at EOL.Dima Dorfman2001-07-157-10/+10
| | | | Notes: svn path=/head/; revision=79754
* style nitsDavid E. O'Brien2001-07-101-2/+2
| | | | Notes: svn path=/head/; revision=79554
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-107-7/+7
| | | | Notes: svn path=/head/; revision=79531
* Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.David E. O'Brien2001-05-2453-93/+223
| | | | | | | Do the same for the non-wcs*/wmem* files while I'm here. Notes: svn path=/head/; revision=77117
* ... but we do provide .St -isoC-99, and it is not required to have theRuslan Ermilov2001-05-171-5/+1
| | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=76729
* Unbreak world; _DIAGASSERT macro is not available in FreeBSD.Ruslan Ermilov2001-05-1621-57/+0
| | | | Notes: svn path=/head/; revision=76683
* adapt to FreeBSD.Takuya SHIOZAKI2001-05-152-4/+20
| | | | | | | | | | | | | - 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. Notes: svn path=/head/; revision=76637
* initial import of locale insensitive wcs* and wmem* functions.Takuya SHIOZAKI2001-05-1522-0/+1484
| | | | | | | Obtained from: NetBSD and Citrus. Notes: svn path=/head/; revision=76612
* mdoc(7) police: add RETURN VALUES section.Ruslan Ermilov2001-05-141-8/+13
| | | | | | | | PR: docs/27161 Submitted by: Kazuhiro KONDOU <k-fuji@za2.so-net.ne.jp> Notes: svn path=/head/; revision=76583
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74870
* .St -ansiC -> .St -isoCRuslan Ermilov2001-02-2621-21/+21
| | | | Notes: svn path=/head/; revision=73088
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-015-7/+9
| | | | Notes: svn path=/head/; revision=71895
* Clarify comments referring to strlcat() usageChris D. Faulhaber2001-01-171-1/+22
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=71192
* - Reverse the order of two loop invariant to ensure strlcat() does notChris D. Faulhaber2001-01-171-3/+6
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=71191
* mdoc(7) police: Ft/Vt now accept punctuation-type arguments.Ruslan Ermilov2001-01-121-2/+2
| | | | Notes: svn path=/head/; revision=70974