summaryrefslogtreecommitdiffstats
path: root/lib/libc/hidden (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Wrap <stdlib.h> so that calls go direct and the symbols not in theguenther2015-09-132-2/+160
| | | | | | C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
* Do provide hidden _libc_* aliases for sig{block,setmask} and use them inguenther2015-09-131-3/+3
| | | | | | | the ASM *setjmp implementations. Skip the PLT when calling them on amd64 (other archs to do this after testing) ok miod@
* Finish wrapping <signal.h> so that calls to the sigset ops go direct andguenther2015-09-121-4/+21
| | | | | everything but raise() and signal() are weak. No longer need _thread_sys_ prefix on getthrid()
* Wrap <fcntl.h> so that calls to flock() go direct and both it andguenther2015-09-121-0/+29
| | | | creat() are weak symbols
* Wrap <inttypes.h> and finish wrapping of <wchar.h> so that calls go directguenther2015-09-122-49/+79
| | | | and the symbols not in the C standard are weak
* Wrap <dbm.h> and <ndbm.h> so that calls go direct and the symbols are all weakguenther2015-09-122-0/+66
|
* Wrap <bsd_auth.h> so that calls go direct and the symbols are all weakguenther2015-09-121-0/+54
|
* Wrap <assert.h> so that __assert2() goes directguenther2015-09-121-0/+27
|
* Wrap shm_open() to go direct and mark shm_{mkstemp,unlink}() as weakguenther2015-09-121-4/+4
|
* Wrap <unistd.h> so that internal calls go direct and they're all weak symbolsguenther2015-09-121-1/+75
| | | | Delete unused 'fd' argument from internal function oldttyname()
* Wrap <getopt.h> to make the functions weak and make access to the initializedguenther2015-09-121-0/+37
| | | | variables go direct. (Common variables cannot be aliased.)
* Wrap <time.h> so that internal calls go direct and symbols not in C99 are weakguenther2015-09-121-1/+24
| | | | | | Add prototypes to localtime.c for offtime(), time2posix(), posix2time() to reduce noise with -Wmissing-prototypes Eliminate unnecessary #includes
* Wrap <syslog.h> so that internal calls go direct and they're all weak symbolsguenther2015-09-121-0/+42
| | | | | Delete code that's a no-op now that we don't use sockets Eliminate unnecessary #includes
* Wrap <dirent.h> so that internal calls go direct and they're all weak symbolsguenther2015-09-121-0/+36
|
* Wrap <fts.h> and <ftw.h> so that internal calls to fts_*() go direct andguenther2015-09-122-0/+55
| | | | fts_*(), ftw(), and nftw() are weak symbols
* Add PROTO_WRAP() for (almost) all the syscalls that libpthread doesn'tguenther2015-09-1110-5/+297
| | | | | | override so that internal calls go direct ok deraadt@
* Use PROTO_NORMAL() on __syscall to go direct, adjusting the declarationguenther2015-09-112-0/+67
| | | | | | | to eliminate some casts. Retire some uses of old-style STUB* macros where superseded by namespace.h bits tweaks and ok deraadt@
* Wrap blowfish, sha*, md5, and rmd160 so that internal calls go directguenther2015-09-116-0/+228
| | | | ok deraadt@
* hide three netdb related variables; ok guentherderaadt2015-09-111-0/+29
|
* Pull in namespace.h when building all .c files using gcc's -include option,guenther2015-09-109-18/+9
| | | | | | | | so that we can provide asm labels for the memcpy/memset/__stack_smash_handler calls that it generates ab initio. Eliminate direct #includes of it. Make sure it's a dependency of all objects (unnecessary for asm, but close enough). ok deraadt@
* Hide __sigintr and __strsignal as internal implementation details.guenther2015-09-092-5/+10
| | | | | | Delete the already hidden _signal alias too. ok deraadt@ millert@
* Hide YP-specific xdr_* functions, and have the YP tools link -lrpcsvcderaadt2015-09-091-0/+44
| | | | | as needed. ok miod guenther
* Fix aliasing of sys_errlist, sys_nerr, sys_siglist, and sys_signameguenther2015-09-063-3/+72
| | | | | | to eliminate duplicate copies of the tables and get direct access internally ok kettenis@ deraadt@
* Delete duplicated CVS $foo tagsguenther2015-09-051-3/+1
|
* Use new framework for wrapping dbopen()guenther2015-09-051-0/+33
| | | | | | Move internal declarations from <db.h> to libc's hidden/db.h ok kettenis@
* Use new framework for wrapping cat{open,gets,close}(), eliminatingguenther2015-09-051-0/+30
| | | | | | _cat* in the process. ok kettenis@
* Add framework for resolving (pun intended) libc namespace issues, usingguenther2015-08-314-0/+320
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@