summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mpool(3) is no longer installed; delete it. prodded by jmc@guenther2015-09-131-262/+0
|
* Wrap <stdlib.h> so that calls go direct and the symbols not in theguenther2015-09-1342-52/+250
| | | | | | 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-1315-65/+51
| | | | | | | the ASM *setjmp implementations. Skip the PLT when calling them on amd64 (other archs to do this after testing) ok miod@
* __strsignal() is now declared in hidden/signal.hguenther2015-09-121-2/+0
|
* Finish wrapping <signal.h> so that calls to the sigset ops go direct andguenther2015-09-123-9/+30
| | | | | 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-1235-83/+153
| | | | 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-123-1/+74
|
* Wrap <bsd_auth.h> so that calls go direct and the symbols are all weakguenther2015-09-123-2/+86
|
* Wrap <assert.h> so that __assert2() goes directguenther2015-09-122-1/+29
|
* Wrap shm_open() to go direct and mark shm_{mkstemp,unlink}() as weakguenther2015-09-122-5/+6
|
* Wrap <unistd.h> so that internal calls go direct and they're all weak symbolsguenther2015-09-1218-20/+117
| | | | Delete unused 'fd' argument from internal function oldttyname()
* Wrap <getopt.h> to make the functions weak and make access to the initializedguenther2015-09-122-1/+43
| | | | 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-126-7/+51
| | | | | | 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-123-35/+55
| | | | | 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-127-5/+48
|
* Wrap <fts.h> and <ftw.h> so that internal calls to fts_*() go direct andguenther2015-09-123-1/+61
| | | | fts_*(), ftw(), and nftw() are weak symbols
* Make these timer_* stubs weak symbolsguenther2015-09-125-16/+19
| | | | Provide declarations to reduce noise when using -Wmissing-prototypes
* 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@
* lseek() is in <unistd.h> ok deraadt@guenther2015-09-111-1/+2
|
* Use PROTO_NORMAL() on __syscall to go direct, adjusting the declarationguenther2015-09-1112-77/+122
| | | | | | | to eliminate some casts. Retire some uses of old-style STUB* macros where superseded by namespace.h bits tweaks and ok deraadt@
* Put a private copy of the ypresp_allfn/ypresp_data interface into ypservderaadt2015-09-113-7/+5
| | | | | | (which uses it in a strange way..) thereby making it possible to static the interface in libc. ok guenther
* _rpc_dtablesize() is not used anywhere, tracking by sthen; ok guentherderaadt2015-09-113-53/+2
|
* rpcdata should not be exported; ok guentherderaadt2015-09-112-3/+2
|
* Prefer <fcntl.h> over <sys/fcntl.h>guenther2015-09-111-2/+2
|
* _getnetbyaddr and _getnetbyname appear to be historical accidents inderaadt2015-09-114-105/+2
| | | | our tree. ok guenther miod
* Wrap blowfish, sha*, md5, and rmd160 so that internal calls go directguenther2015-09-1114-13/+307
| | | | ok deraadt@
* change remaining mentions of "flags" to "request" and adapt textderaadt2015-09-111-7/+7
| | | | nearby. Spotted by Ross Richardson.
* hide three netdb related variables; ok guentherderaadt2015-09-112-3/+29
|
* Hide netgroup internals inside libc. The parts that netgroup_mkdbderaadt2015-09-102-16/+16
| | | | | wants to use, well.... copy them there. ok guenther
* Add support for building arc4random with MSVC.bcook2015-09-101-7/+8
| | | | | | | By default, MSVC's stdlib.h defines min(), so we need to spell out something less common to avoid picking it up. ok deraadt@ beck@ miod@
* Pull in namespace.h when building all .c files using gcc's -include option,guenther2015-09-1029-75/+50
| | | | | | | | 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@
* use .In rather than .Fd #includeschwarze2015-09-1053-190/+190
|
* reduce more .Nd to one line and kill more .Tnschwarze2015-09-101-4/+4
|
* reduce .Nd to one line and kill .Tn while hereschwarze2015-09-105-25/+15
|
* another missing Mdocdateschwarze2015-09-101-2/+2
|
* missing commas at the end of .Nm lines in the NAME sectionschwarze2015-09-101-3/+3
|
* Adds hidden _libc_FOO aliases for the system call stubs.guenther2015-09-1050-163/+278
| | | | | | | | | | Stop generating _brk and _sbrk symbols: they've already been hidden. Set the ELF symbol size on the syscall stubs. Give the __{min,cur}brk symbols a size and type, and hide more jump labels. alpha, arm, m88k, sh, sparc, and vax assistance miod@ hppa assistance kettenis@ ok deraadt@ miod@
* explain why __explicit_bzero_hook will remain; ok guentherderaadt2015-09-101-1/+3
|
* hide __dtoa_locks as a static in the single use case; ok guentherderaadt2015-09-105-11/+6
|
* no more mpool;jmc2015-09-104-13/+9
|
* tweak Nd after previous; ok mpijmc2015-09-101-2/+2
|
* Remove link_addr(3). A function to encode the name of an interface inmpi2015-09-104-137/+8
| | | | | | | | | | | | a sockaddr_dl is a questionnable interface. But now it makes it harder to properly reference ifp becauses of this. Set sdl_index to the index of the corresponding interface when constructing a routing message. Ridding previous libc crank. ok guenther@, deraadt@, dlg@
* seperate->separate;jmc2015-09-091-3/+9
| | | | while here, i've adjusted the formatting of one list
* Move to next tame() API. The flags are now passed as a very simple string,deraadt2015-09-091-34/+35
| | | | | | | | which results in tame() code placements being much more recognizeable. tame() can be moved to unistd.h and does not need cpp symbols to turn the bits on and off. The resulting API is a bit unexpected, but simplifies the mapping to enabling bits in the kernel substantially. vague ok's from various including guenther doug semarie
* Remove the mpool(3) manpagesguenther2015-09-091-5/+2
| | | | prodded by miod@
* Bump for symbol removalsguenther2015-09-091-1/+1
|
* Hide __sigintr and __strsignal as internal implementation details.guenther2015-09-095-13/+15
| | | | | | Delete the already hidden _signal alias too. ok deraadt@ millert@
* Hide all unnecessary asr / resolver related API with _ prefixes.deraadt2015-09-0914-361/+238
| | | | direction & ok guenther
* Use SOCK_NONBLOCK in a couple more placesguenther2015-09-092-33/+6
| | | | ok deraadt@