summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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@
* Stop exporting from libc the <mpool.h> and the mpool_* APIguenther2015-09-092-8/+122
| | | | ports scan by sthen@
* Hide YP-specific xdr_* functions, and have the YP tools link -lrpcsvcderaadt2015-09-092-19/+44
| | | | | as needed. ok miod guenther
* Syslogd can handle 8192 bytes per message now. Increase the libcbluhm2015-09-091-2/+2
| | | | | | syslog(3) limit to the same size. The buffer needs one byte more as it conains a NUL that sendsyslog(2) does not process. OK deraadt@
* Simplify makefile rules for building the ASM stubs into "pick somethingguenther2015-09-091-113/+45
| | | | | | from column A and something from column B". ok miod@ deraadt@
* Backtrack a little bit and don't try to use the per-thread errno location ifkettenis2015-09-091-23/+21
| | | | | | | | | | r2 is zero. Some upcoming changes will probably change the offset at which the errno pointer is stored, or might even store errno directly. Instead, call __errno to get the location of errno. Make sure we go through the PLT such that we call the version in libpthread if it is linked in. Set up r30 for this purpose. The ___cerrno function itself remains protected. ok guenther@
* Delete ktracing of context switches: it's unused, and not particularly useful,guenther2015-09-071-4/+2
| | | | | | | and doing VOP_WRITE() from inside tsleep/msleep makes the locking too complicated, making it harder to move forward on MP changes. ok deraadt@ kettenis@