Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Wrap <stdlib.h> so that calls go direct and the symbols not in the | 2015-09-13 | 2 | -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 in | 2015-09-13 | 1 | -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 and | 2015-09-12 | 1 | -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 and | 2015-09-12 | 1 | -0/+29 | ||
| | | | | creat() are weak symbols | |||||
* | Wrap <inttypes.h> and finish wrapping of <wchar.h> so that calls go direct | 2015-09-12 | 2 | -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 weak | 2015-09-12 | 2 | -0/+66 | ||
| | ||||||
* | Wrap <bsd_auth.h> so that calls go direct and the symbols are all weak | 2015-09-12 | 1 | -0/+54 | ||
| | ||||||
* | Wrap <assert.h> so that __assert2() goes direct | 2015-09-12 | 1 | -0/+27 | ||
| | ||||||
* | Wrap shm_open() to go direct and mark shm_{mkstemp,unlink}() as weak | 2015-09-12 | 1 | -4/+4 | ||
| | ||||||
* | Wrap <unistd.h> so that internal calls go direct and they're all weak symbols | 2015-09-12 | 1 | -1/+75 | ||
| | | | | Delete unused 'fd' argument from internal function oldttyname() | |||||
* | Wrap <getopt.h> to make the functions weak and make access to the initialized | 2015-09-12 | 1 | -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 weak | 2015-09-12 | 1 | -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 symbols | 2015-09-12 | 1 | -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 symbols | 2015-09-12 | 1 | -0/+36 | ||
| | ||||||
* | Wrap <fts.h> and <ftw.h> so that internal calls to fts_*() go direct and | 2015-09-12 | 2 | -0/+55 | ||
| | | | | fts_*(), ftw(), and nftw() are weak symbols | |||||
* | Add PROTO_WRAP() for (almost) all the syscalls that libpthread doesn't | 2015-09-11 | 10 | -5/+297 | ||
| | | | | | | override so that internal calls go direct ok deraadt@ | |||||
* | Use PROTO_NORMAL() on __syscall to go direct, adjusting the declaration | 2015-09-11 | 2 | -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 direct | 2015-09-11 | 6 | -0/+228 | ||
| | | | | ok deraadt@ | |||||
* | hide three netdb related variables; ok guenther | 2015-09-11 | 1 | -0/+29 | ||
| | ||||||
* | Pull in namespace.h when building all .c files using gcc's -include option, | 2015-09-10 | 9 | -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. | 2015-09-09 | 2 | -5/+10 | ||
| | | | | | | Delete the already hidden _signal alias too. ok deraadt@ millert@ | |||||
* | Hide YP-specific xdr_* functions, and have the YP tools link -lrpcsvc | 2015-09-09 | 1 | -0/+44 | ||
| | | | | | as needed. ok miod guenther | |||||
* | Fix aliasing of sys_errlist, sys_nerr, sys_siglist, and sys_signame | 2015-09-06 | 3 | -3/+72 | ||
| | | | | | | to eliminate duplicate copies of the tables and get direct access internally ok kettenis@ deraadt@ | |||||
* | Delete duplicated CVS $foo tags | 2015-09-05 | 1 | -3/+1 | ||
| | ||||||
* | Use new framework for wrapping dbopen() | 2015-09-05 | 1 | -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}(), eliminating | 2015-09-05 | 1 | -0/+30 | ||
| | | | | | | _cat* in the process. ok kettenis@ | |||||
* | Add framework for resolving (pun intended) libc namespace issues, using | 2015-08-31 | 4 | -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@ |