summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-09-09sizes for free(); ok sthen semarieTheo de Raadt
2015-09-09always clear errno when coming back from tls_read tls_write, and tls_close.Bob Beck
this avoids the problem of people checking for return values < 0 and then checking for errno before checking for TLS_READ_AGAIN TLS_WRITE_AGAIN - since we can not guarantee what errno will be set to from the underlying library calls
2015-09-09syncTheo de Raadt
2015-09-09Move to next tame() API. The flags are now passed as a very simple string,Theo de Raadt
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
2015-09-09syncTheo de Raadt
2015-09-09nuke trailing whitespaceBob Beck
ok jsing@
2015-09-09Remove the mpool(3) manpagesPhilip Guenther
prodded by miod@
2015-09-09Bump for symbol removalsPhilip Guenther
2015-09-09Hide __sigintr and __strsignal as internal implementation details.Philip Guenther
Delete the already hidden _signal alias too. ok deraadt@ millert@
2015-09-09size for free()Florian Obser
OK semarie@, deraadt@
2015-09-09introduce reference counts for interfaces (ie, struct ifnet *ifp).David Gwynne
if_get can get a reference to an ifp, but it never releases that reference. this provides an if_put function that can be used to decrement the refcount. we cannot come up with a scheme for letting the network stack run on one (or many) cpus while ioctls are pulling interfaces down on another cpu without refcounts for the interfaces. if_put is going in now so we can go through the stack and put the necessary calls to it in, and then we'll backfill this implementation to actually check the refcounts when the interface detaches. ok mpi@ mikeb@ claudio@
2015-09-09fix a mistake in the predefined string passed to -width (it isIgor Sobrado
obvious "indent", not "ident", was intended); instead of this use the macro Ds as the indent is an offset -- fixes indentation of uuencode(1) and uudecode(1) options. ok jmc@
2015-09-09Nuke some extraneous whitespace.Kenneth R Westerback
2015-09-09Rewrite arpproxy() to no longer iterate on the global list of interfaces.Martin Pieuchot
ok claudio@
2015-09-09Remove IFM_MAKEMODE. It is unused in base and ports and there doesn't seemStefan Sperling
to be a way of feeding it with a valid argument without peeking into the internals of ifmedia macros. ok mpi miod deraadt
2015-09-09Kill icmp6_ifstat_inc() and associated per-ifp storage.Martin Pieuchot
The SIOCGIFSTAT_ICMP6 is no longer supported. ok dlg@, mikeb@, claudio@
2015-09-09Hide all unnecessary asr / resolver related API with _ prefixes.Theo de Raadt
direction & ok guenther
2015-09-09The mplock implementations on MP-enabled mips64 platforms, octeon andVisa Hankala
sgi, are identical. Put one implementation in mips64 and drop the platform-specific copies, to remove duplicated code. ok miod@
2015-09-09Use SOCK_NONBLOCK in a couple more placesPhilip Guenther
ok deraadt@
2015-09-09Stop exporting from libc the <mpool.h> and the mpool_* APIPhilip Guenther
ports scan by sthen@
2015-09-09Hide YP-specific xdr_* functions, and have the YP tools link -lrpcsvcTheo de Raadt
as needed. ok miod guenther
2015-09-09In the flag command description, mention that a bootable partitionTheo de Raadt
is marked with '*' due to comments from sthen and kettenis
2015-09-09remove 3 paragraphs of useless information at the start, and replaceTheo de Raadt
with the simple facts a user needs. ok kettenis krw
2015-09-09Fix memory leak in error path when max length exceeded.Todd C. Miller
From Michael McConville
2015-09-09At some point back in time, the disk info (obtained by responding '?' atAlexander Hall
the root disk question) got some extra linefeeds in it. This fixes the output to be one line per disk again. ok krw@
2015-09-09All our pmap implementations provide pmap_resident_count(), so removeMiod Vallat
#ifndef pmap_resident_count code paths.
2015-09-09Cleanup the iov handling in ping6. Use the global iov instead of a localClaudio Jeker
version which is then added to a global struct msghdr. Issue found by Michael McConville. OK florian@ tobias@
2015-09-09Only take ownership of a socket if we allocated it within libtls. If we areJoel Sing
passed a socket then the caller is responsible for closing it. ok bcook@
2015-09-09Kill some commented out in6_ifstat_inc().Martin Pieuchot
2015-09-09No need to check !xxboot inside a 'if (!xxboot) ...' block.Kenneth R Westerback
ok otto@ deraadt@
2015-09-09no comma after last entry in NAME;Jason McIntyre
2015-09-09Kill a couple of if_get()s only needed to increment per-ifp IPv6 stats.Martin Pieuchot
We do not export those per-ifp statistics and they will soon all die. "We're putting inet6 on a diet" claudio@ ok dlg@, mikeb@, claudio@
2015-09-09Some explicit iflush instructions after the kbind() call are still neededMiod Vallat
for now; misunderstanding between guenther@ and me.
2015-09-09No need to keep global options around for client which doesn't use them.Nicholas Marriott
2015-09-09convert bpf to using an srp list for the list of descriptors.David Gwynne
this replaces the hand rolled list. the code has always used hand rolled lists, but that gets a bit cumbersome when theyre SRPs. requested ages ago by mpi@
2015-09-09millert@ noticed an extra period.David Gwynne
2015-09-09implement a singly linked list built with SRPs.David Gwynne
this allows us to build lists of things that can be followed by multiple cpus. ok mpi@ claudio@
2015-09-09Add args-bufsize-native.pl that checks wether libc syslog(3) canAlexander Bluhm
handle 8192 bytes messages. Rename the sendsyslog(2) tests consistently.
2015-09-09Fix English in comment. OK dlg@Claudio Jeker
2015-09-09Syslogd can handle 8192 bytes per message now. Increase the libcAlexander Bluhm
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@
2015-09-09Fetch the _GLOBAL)OFFSET_TABLE_ and _DYNAMIC pointers in a way that'sMark Kettenis
compatible with the Secure-PLT ABI.
2015-09-09Remove more dead code.Antoine Jacoutot
2015-09-09Now that ld(1) will generate a read-only GOT for truly static binaries, weMark Kettenis
no longer have to use mprotect(2) to take away PROT_WRITE. This fixes ld -Z and paves the way for the new Secure-PLT ABI. ok miod@
2015-09-09For truly static binaries, force .ctors, .dtors and .got to be read-only.Mark Kettenis
This will make the segment containing those sections read-only for binaries that use the OpenBSD W^X layout, preventing W^X violations on architectures that need an executable GOT (basically BSS-PLT powerpc). ok miod@
2015-09-09Simplify makefile rules for building the ASM stubs into "pick somethingPhilip Guenther
from column A and something from column B". ok miod@ deraadt@
2015-09-09Test that syslogd can process 8 full size messages from sendsyslog(2)Alexander Bluhm
or UDP socket or UNIX domain socket at once.
2015-09-09Backtrack a little bit and don't try to use the per-thread errno location ifMark Kettenis
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@
2015-09-09To double the receive buffer of a socketpair does not help as sendingAlexander Bluhm
checks the send buffer size. So double both buffer sizes. Moreover the default for sending is 2048 and for receiving is 4096. This makes the existing double buffer algorithm inconsistent. It is better to make the buffers large enough to hold 8 full length messages. Just make sure that it does not shrink. Keep the approach that doubles the buffer sizes. When we are low on buffers and cannot reach the full size, increase it as much as possible. While there, add consistent error messages. OK benno@
2015-09-09Remove unused code.Antoine Jacoutot
2015-09-09Move and tweak a comment.Antoine Jacoutot