summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* only 32-bit systems need the quad functions.deraadt2015-08-311-2/+8
| | | | | skipping a libc crank since unused in base on 64bit systems discussed with miod, tedu; ok kettenis
* use #function rather than @function on armderaadt2015-08-311-2/+2
| | | | ok guenther
* Also add ALTEXIT_{STRONG,WEAK} to hppa64, copied from hppa. Document'em tooguenther2015-08-312-3/+11
| | | | ok deraadt@
* Add ALTEXIT_{STRONG,WEAK} to support wrapping of functions using ALTENTRY.guenther2015-08-312-2/+7
| | | | | | Fix memmove with that ok deraadt@
* Add framework for resolving (pun intended) libc namespace issues, usingguenther2015-08-31236-432/+1320
| | | | | | | | | | | | 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@
* Use nanosleep instead of sleep to avoid the extra layer and simplify laterguenther2015-08-301-5/+8
| | | | | | symbol hiding ok w/tweak deraadt@
* Add Symbols.map to CLEANFILESderaadt2015-08-291-2/+2
|
* use explicit_bzero to clear some memory that had creds in it instead ofdlg2015-08-271-3/+3
| | | | | | memset. ok deraadt@ millert@
* fix commentguenther2015-08-271-2/+2
|
* ELF uberalles: remove #ifdef _NLIST_DO_ELF testsguenther2015-08-271-6/+1
|
* Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internalguenther2015-08-2714-23/+46
| | | | | | symbols that are not longer exported. (This improves the generated code.) ok deraadt@
* Move the __rand48_* declarations into rand48.h, and then hide both themguenther2015-08-277-25/+13
| | | | | | and __dorand48() and __rand48_deterministic ok deraadt@
* tweak previous;jmc2015-08-261-3/+5
|
* use ENAMETOOLONG instead of EINVAL for errno when string overflow occurs.semarie2015-08-261-1/+7
| | | | | | document tame.2 according. ok deraadt@
* Add TIOCGETA to the tame list for TAME_IOCTL.doug2015-08-261-1/+2
| | | | | | This is used by readpassphrase() and curses. ok deraadt@
* Convert paths argument of tame(2) to const char **.doug2015-08-261-3/+3
| | | | | | The path will not be modified and this reduces casts. Discussed with many. ok deraadt@
* Sync with other per-arch Symbols.list filesguenther2015-08-261-3/+0
|
* Oh yeah, crank the major. You talk about something and then your mindguenther2015-08-261-2/+2
| | | | wanders...
* Hide many (194!) symbols that nothing should be using.guenther2015-08-2662-1008/+213
| | | | | | | Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
* Fix latter vs later. From jmc@guenther2015-08-251-2/+2
|
* Document kbind(2)guenther2015-08-252-2/+122
|
* catch upmiod2015-08-251-0/+12
|
* Make __cerror() use the per-thread errno location if r2 isn't zero. This waykettenis2015-08-234-17/+25
| | | | | | | | | | | | libpthread no longer has to override it which means that we can use a local call and can avoid setting up r30 as a _GLOBAL_OFFSET_TABLE_ pointer, which is hard the way the powerpc ABI works. For now we continue to provide __cerror as a weak symbol, but ___cerror is now protected and internal calls within libc now use ___cerror instead of __cerror. discussed with guenther@
* Fetch the _GLOBAL_OFFSET_TABLE_ pointer in a way that's compatible with thekettenis2015-08-232-8/+12
| | | | Secure-PLT ABI.
* Set up r30 with the _GLOBAL_OFFSET_TABLE_ pointer as required by thekettenis2015-08-231-3/+21
| | | | Secure-PLT ABI.
* restore codeset checking: we shouldn't silency fallback to ASCII codeset.semarie2015-08-231-2/+2
| | | | | | | | | there is a test for "only UTF-8" after, that will return ENOTSUP. So the caller will known the wanted codeset isn't supported. problem spotted by guenther@ OK stsp@ guenther@
* Move to tame(int flags, char *paths[]) API/ABI.deraadt2015-08-221-14/+58
| | | | | | | | | | | | The pathlist is a whitelist of dirs and files; anything else returns ENOENT. Recommendation is to use a narrowly defined list. Also add TAME_FATTR, which permits explicit change operations against "struct stat" fields. Some other TAME_ flags are refined slightly. Not cranking libc now, since nothing commited in base uses this and the timing is uncomfortable for others. Discussed with many; thanks for a few bug fixes from semarie, doug, guenther. ok guenther
* Explicitly list the symbols permitted to be exported by libc.guenther2015-08-2212-1/+2295
| | | | | | | | This is primed with the current list of exported symbols so it doesn't change the ABI yet, but will prevent unintentional additions in the future and sets the stage for reductions. ok deraadt@ kettenis@
* Whitelist TIOCGPGRP (for tcgetpgrp()) in TAME_IOCTL.doug2015-08-211-2/+3
| | | | | | Requested by Sunil Nimmagadda to help tame http. ok deraadt@
* All these files include <stdlib.h>, so do not need to castderaadt2015-08-2018-39/+39
| | | | malloc/calloc/realloc* returns.
* Fix test against INADDR_LOOPBACKjca2015-08-161-2/+2
| | | | ok gilles@
* Load LC_MESSAGES locale only if the character encoding is UTF-8.stsp2015-08-141-17/+2
| | | | ok mpi tedu phessler zhuk, and discussed with many at c2k15
* Disable support for loading LC_CTYPE locales other than UTF-8.stsp2015-08-141-2/+5
| | | | ok mpi tedu phessler zhuk, and discussed with many at c2k15
* Zap a few stray blanks.krw2015-08-131-2/+2
|
* Mention LC_MESSAGES.zhuk2015-08-121-2/+7
| | | | Input & okay (pre-lock) from jmc@, sobrado@ and stsp@.
* spelling; ok deraadtjmc2015-08-021-3/+3
|
* Fix a potential out-of-bounds read found via address-sanitizer whilemillert2015-08-011-1/+3
| | | | fuzzing as reported by Elliott Hughes. OK doug@ stsp@
* ARG_MAX is the standard name (not NCARGS); probab[l]y guentherderaadt2015-07-282-10/+6
|
* describe CPATH before TMPPATHderaadt2015-07-281-12/+12
|
* unsort: requested by deraadtjmc2015-07-281-137/+137
|
* call it bcrypt in the man page tootedu2015-07-231-3/+3
|
* permit "bcrypt" as an alias for "blowfish". this is, after all, whattedu2015-07-231-11/+27
| | | | | | | 99% of the world calls it. allow just "bcrypt" without params to mean auto-tune ("bcrypt,a"). default remains 8 rounds (for now) ok deraadt
* Sync with kernel TIOCGWINSZ change.doug2015-07-231-3/+3
|
* basic macro cleanup, mostly converting to .Dv where appropriateschwarze2015-07-211-38/+42
|
* In _TM_SELF, permit uname(3); OK deraadt@.schwarze2015-07-201-2/+3
|
* Add setgroups(2) to TAME_PROC, ok deraadtnicm2015-07-201-2/+3
|
* Add VIS_DQ to escape double quotes. OK deraadt@ semarie@ reyk@millert2015-07-203-13/+17
|
* sort; ok deraadtjmc2015-07-191-139/+139
|
* typo; ralf horstmannderaadt2015-07-191-2/+2
|
* word fix;jmc2015-07-191-2/+2
|