summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strerror_r.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove the save_errno dance inside strerror_r(3). It is from thebluhm2016-10-191-5/+3
| | | | | time when we had national language support. OK millert@
* The only thing that was translated into multiple languages in OpenBSDbluhm2015-10-251-23/+1
| | | | | | | | | are the errno messages and signal names. Everything else is in English. We are not planning to translate more text. Running a mixed system with less than 1% of the text in native language makes no sense. So remove the NLS support from libc messages. The catopen(3) functions stay as they are. OK stsp@ mpi@
* Fix aliasing of sys_errlist, sys_nerr, sys_siglist, and sys_signameguenther2015-09-061-7/+3
| | | | | | to eliminate duplicate copies of the tables and get direct access internally ok kettenis@ deraadt@
* Use new framework for wrapping cat{open,gets,close}(), eliminatingguenther2015-09-051-4/+1
| | | | | | _cat* in the process. ok kettenis@
* Add framework for resolving (pun intended) libc namespace issues, usingguenther2015-08-311-1/+2
| | | | | | | | | | | | wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@
* Fix catopen(3) for UTF-8 locales and update the implementation to POSIX-2008.stsp2013-06-011-2/+2
| | | | | | | | | Catalogs had an arbitrary character set which was used regardless of locale. Add UTF-8-encoded catalogs for libc error messages, and rename existing ones to indicate their character sets. catopen(3) now chooses a catalog which matches the locale's encoding, if available. help & ok matthew, man page bits ok jmc, input from naddy and bluhm
* If NLS is disabled, strerror does not print the correct error string.bluhm2007-03-011-2/+2
| | | | | | No binary change with NLS enabled. ok otto millert espie
* zap remaining rcsid.espie2005-08-081-5/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* Merge common functionality of __strsignal and strerror_r.otto2005-05-261-28/+48
| | | | ok jaredy@ miod@
* Only append number when it fits to avoid truncation and returnotto2005-05-081-14/+11
| | | | | appropriate error number. ok miod@, millert@ on an earlier version; ok jaredey@
* correct strlcpy abusebeck2005-04-201-4/+8
| | | | ok millert@
* build the error message in strerror_r.c directly, avoiding one copy there.espie2004-05-031-10/+100
| | | | | | | | handle a few subtle details caught by the regression tests: correct termination, non copying if buffer length == 0, errno setting. let all former users of __strerror go through strerror_r. Work by Todd Miller and I. Okay millert@.
* Add strerror_r and functions versions of getchar_unlocked andmarc2002-11-211-0/+30
putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@