aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/string/strerror.3
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit b2c76c41be32)
* strerror.3: Fix whitespace issue introduced in r368714Jessica Clarke2020-12-181-1/+1
| | | | | | | MFC with: 368714 Notes: svn path=/head/; revision=368770
* strerror.3: Add an example for perror()Mateusz Piotrowski2020-12-171-1/+26
| | | | | | | | | | | This is a nice and quick reference. Reviewed by: jilles, yuripv MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D27623 Notes: svn path=/head/; revision=368714
* Implement strerror_l().Konstantin Belousov2020-12-161-10/+42
| | | | | | | | | | | | | | Only for the arches that provide user-mode TLS. PR: 251651 Requested by: yuri Discussed with: emaste, jilles, tijl Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D27495 MFC after: 2 weeks Notes: svn path=/head/; revision=368692
* use .Mt to mark up email addresses consistently (part4)Baptiste Daroussin2014-06-231-1/+1
| | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267774
* Renumber clauses to reduce diffs to other versionsEd Maste2013-05-281-1/+1
| | | | | | | | NetBSD, OpenBSD, and Android's Bionic number the clauses 1 through 3, so follow suit to make comparison easier. Notes: svn path=/head/; revision=251069
* Correct BUGS description of static buffer useEd Maste2012-07-271-3/+3
| | | | | | | | | | Since r142667 strerror has unconditionally returned a pointer to a static buffer. MFC after: 1 week Notes: svn path=/head/; revision=238853
* Add err(3) to strerror(3) SEE ALSO sectionEitan Adler2012-02-161-0/+1
| | | | | | | | | | PR: docs/164940 Submitted by: Niclas Zeising <zeising@daemonic.se> Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=231813
* Allow strerror(0) and strerror_r(0, ...).Jilles Tjoelker2011-04-051-1/+4
| | | | | | | | | | | | | | | | Of course, strerror_r() may still fail with ERANGE. Although the POSIX specification said this could fail with EINVAL and doing this likely indicates invalid use of errno, most other implementations permitted it, various POSIX testsuites require it to work (matching the older sys_errlist array) and apparently some applications depend on it. PR: standards/151316 MFC after: 1 week Notes: svn path=/head/; revision=220376
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Correctly document the return value of strerror() and strerror_r() andGiorgos Keramidas2004-10-121-11/+10
| | | | | | | | | | | the contents of the returned buffer for unknown error codes. PR: docs/72578 Submitted by: Jilles Tjoelker <jilles@stack.nl> MFC after: 3 days Notes: svn path=/head/; revision=136432
* Add back the Standards section claiming conformance to 1003.1-2001 andTim J. Robbins2002-12-191-10/+13
| | | | | | | C99 now that all known standards-related bugs have been fixed. Notes: svn path=/head/; revision=108091
* Rearrange strerror() so that its itoa procedure can be used withMike Barcroft2002-12-181-1/+6
| | | | | | | | | | | | | | | | | | strerror_r(). Doing this allows us to ensure that strerror_r() always fills the supplied buffer regardless of EINVAL or ERANGE errors. strerror()'s semantics have changed slightly such that an argument of 0 is now considered invalid and errno is set to EINVAL. Remove internal regression test for strerror() and strerror_r(). This will be reincarnated in src/tools/regression/lib/libc/string. In strerror(3), add a comment about strerror()'s bogus return type. PR: 44356 Notes: svn path=/head/; revision=108044
* Remove the Standards section again until we get these functions sortedTim J. Robbins2002-10-241-8/+0
| | | | | | | out. This will probably have to wait until after 5.0-R. Notes: svn path=/head/; revision=105838
* Add a Standards section, claiming conformance to IEEE Std. 1003.1-2001.Tim J. Robbins2002-10-231-1/+17
| | | | | | | | Also add a note to the Bugs section pointing out that strerror() and perror() share the same static buffer. Notes: svn path=/head/; revision=105779
* 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
* 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-071-3/+12
| | | | | | | | | | | | | | 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-061-12/+19
| | | | | | | | | | complete with documentation. Reviewed by: mike@ gad@ MFC after: 1 week Notes: svn path=/head/; revision=87434
* Add strerror_r function per Posix prototype.Wes Peters2001-11-271-4/+33
| | | | | | | | Reviewed by: Mike Barcroft <mike@FreeBSD.org> MFC after: 2 weeks Notes: svn path=/head/; revision=86944
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-2/+2
| | | | Notes: svn path=/head/; revision=84306
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79531
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71895
* mdoc(7) police: Ft/Vt now accept punctuation-type arguments.Ruslan Ermilov2001-01-121-2/+2
| | | | Notes: svn path=/head/; revision=70974
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=48794
* (Whoops: make it better instead of worse this time). ClarifyRobert Nordier1998-10-291-1/+1
| | | | | | | processing of the string argument by perror(). Notes: svn path=/head/; revision=40735
* Clarify processing of the string argument by perror().Robert Nordier1998-10-291-8/+5
| | | | Notes: svn path=/head/; revision=40734
* Correctly use .Fn instead of .Nm to reference function namesMike Pritchard1996-08-221-1/+2
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=17782
* Added `const' to types of sys_errlist and sys_nerr.Bruce Evans1996-04-191-5/+10
| | | | | | | | | | Use .Va instead of .Fa to describe these variables. Say a little about inconsistent declarations of sys_errlist in the BUGS section. Notes: svn path=/head/; revision=15307
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+124
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573