master
Drop __multf3 from the list; it isn't actually exported.
Periodic re-check of /etc/resolv.conf was done with stat(), then open(), then parse. This is not a TOCTOU because there is no data dependency problem. However, this is intricately tied into an undocumented secret contract between libc and kernel for pledge("dns"), where a pledge_namei() callback checks which path & system call is doing the operation. I had to add a SYS_stat check rather than relying on just the SYS_open check. I prefer to be reduce the sneakiness. In a year after statically-linked binaries have been replaced everywhere, I can tighten the pledge_namei() check by removing the SYS_stat check. ok dlg guenther florian
Revert previous commit. Someone this introduces some problems that I didn't ran into during testing
Add PROTO_NORMAL() declarations for the remaining syscalls, to avoid future, inadvertant PLT entries. Move the __getcwd and __realpath declarations to hidden/{stdlib,unistd}.h to consolidate and remove duplication.
When describing v3 crypt, be specific as to which machine was simulated. feedback jmc@ ok deraadt@ schwarze@
Switch misuse of .Ft to the more appropriate .Vt macro, and remove useless quoting of .Ft arguments.
Specify a priority for _libc_preinit() to make sure it runs before other constructors (such as the constructor for libcompiler_rt).
spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
fpclassify(3) and isgreater(3) are the last two pages living in src/lib/libc that require <math.h>, which implies that POSIX allows them to be in libm. While -lm is not currently required on OpenBSD, which POSIX is also fine with, providing -lm for these may help portability elsewhere. Requested by guenther@ and tedu@.
With the recent kernel-writes-buffer changes to profil(), the gmonhdr, kcount buffer, and rawarcs buffer were merged into a single mmap. The froms and tos buffers were still 2 seperate mmaps. Yuichiro NAITO is working on threading profiling support, and when i reviewed his diff I noticed his threaded mmap's and the non-threaded mmap's could be merged further. So this change makes all the buffers contig (with some padding alignment), and simplifies a bunch of failure handling code. done with Yuichiro NAITO
The mdoc(7) .Ft macro does not need quoting of its arguments, but about 10% of our manual pages using this macro employed useless quoting anyway. Remove these quotes such that they do not incite fear, uncertainty, and doubt in developers who happen to look at these pages. jmc@ and tb@ agree with the direction.
Add <stdio_ext.h> with the seven APIs needed to have gnulib operate without poking directly into the FILE structure.
Use struct __sFILE instead of FILE in thread locking callback declarations to reduce <stdio.h> pollution. Declare __isthreaded in thread_private.h where it's really needed.
ntohl() returns uint32_t so it cannot be < 0. Since we're storing the result in an int check for > INT_MAX instead. OK bluhm@
Mark as 'protected' all the routines from the quad/ and softfloat/ subdirs, as well as those in arch/arm/gen/divsi3.S. This cleans up the PLTs on the 32bit archs.
Add EABI strong aliases for __fixunssfdi and __fixunsdfdi added recently on armv7; ok mbuhl@
tweak previous: cull a stray .Pp that crept in and caused a warning: mandoc: intro.2:164:2: WARNING: skipping paragraph macro: Pp before It
remove outdated "expected to be compliant" ok miod@ kn@ deraadt@
remove unneeded semicolons; checked by millert@
Merge changes from tzcode2013[e-g]
fix uuid_dec_{b,l}e prototypes
When getpwnam(3) reaches out to YP, it calls clntudp_create(3) with a pre-initialized ypconnect(2) socket. That calls clntudp_bufcreate(), which contains code checking if the socket and address are configured.. If not, socket(2) is called, or an address allocation is performed via the portmapper (which calls a whole lot more code).
Now that libc.so has only five PLT entries on almost all our archs, link it with -znow
libc: Makefile.inc: remove "sparc" from quad support list; ok deraadt@