master
drop htonl(), htons(), ntohl(), ntohs() MD functions from libc
Revert accidental change.
.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze
I am retiring my old email address; replace it with my OpenBSD one.
Delete casts to off_t and size_t that are implied by assignments or prototypes. Ditto for some of the char* and void* casts too.
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.
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
mop up resolver.3 rename; ok deraadt
man pages: add missing word, The foo() ... -> The foo() function ...
A few sys/param.h annotations lacked ALIGNBYTES
To allow us to get rid of /etc/networks, make setnetent(3), getnetent(3), and endnetent(3) do nothing, just like sethostent(3), gethostent(3), and endhostent(3) years ago. OK deraadt@ guenther@
getpeereid() can now be a library routine using getsockopt() with SOL_SOCKET and SO_PEERCRED, only issue being that it cannot return EFAULT for a page fault. The kernel code will soon be put into compat, and then in 10 years or so tedu will delete it. ok guenther millert
Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze
A dozen interfaces in <endian.h> were standardized in POSIX-2024 as expected
Fix typo in RFC number.
Eliminate some gcc warnings about 'unused variables', mostly by adding appropriate #ifdef's around declarations.
Switch if_nameindex(3) to use the new NET_RT_IFNAMES sysctl to get the list of interface names. At the same time switch if_nametoindex(3) and if_indextoname(3) to use if_nameindex(3) instead of getifaddrs(3). if_nameindex(3) exposes much less then getifaddrs(3) and is allowed by pledge(2). With and OK deraadt@
POSIX defines inet_ntoa, not inet_aton.
Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and the symbols without underbar prefix are all weak
mop up for inet_net rename; ok deraadt
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
snprintf/vsnprintf return < 0 on error, rather than -1.
spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
zap rcsid. split functions off res_debug.c so that getnetnamadr.c does not pull it all when it's used.
Cast ctype function arguments to unsigned char.
wild white space
delete wasteful ;; ok tedu
tweak Nd after previous; ok mpi
Fix regressions introduce in the fix for CVE-2016-6559. From FreeBSD (glebius)
rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3).
Wrap <unistd.h> so that internal calls go direct and they're all weak symbols Delete unused 'fd' argument from internal function oldttyname()
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
Last arg is also a pointer, so pass NULL instead of 0; ok deraadt@
Fix a number of out of bound reads in DNS response parsing. Originally from djm@. OK deraadt@ florian@ bluhm@
Wrap <resolv.h> so that internal calls go direct
Describe what RES_USE_DNSSEC does and how it's affected by trust-ad
typo in comment; Effectivly -> Effectively; ok gilles@
recv() and send() aren't overriden by libpthread (vs recvfrom() and sendto()!) so wrap them to make internal calls go direct
sockatmark(3), recv(2), getsockopt(2), and connect(2) return specifically -1 to mark failure, not arbitrary values < 0. I believe manual pages should follow the described contract precisely and accurately.
Add sockatmark()
Make the in6addr constant declarations and definitions consistent in kernel and user land. OK florian@ mpi@