tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
openbsd-src
/
lib
/
libc
/
net
/
at
jcs
73 files
Makefile.inc
drop htonl(), htons(), ntohl(), ntohs() MD functions from libc
2 years ago
base64.c
Revert accidental change.
4 years ago
ether_aton.3
make the argument to ether_ntoa const.
9 months ago
ethers.c
make the argument to ether_ntoa const.
9 months ago
freeaddrinfo.c
Do not crash when calling freeaddrinfo(NULL)
4 months ago
gai_strerror.3
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.
10 months ago
gai_strerror.c
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
10 years ago
getaddrinfo.3
Do not crash when calling freeaddrinfo(NULL)
4 months ago
gethostbyname.3
mop up resolver.3 rename; ok deraadt
6 years ago
getifaddrs.3
man pages: add missing word, The foo() ... -> The foo() function ...
4 years ago
getifaddrs.c
the structure produced has alignment, which contained uninitialized data. This is obviously fixed by using calloc(), but it was also observed that the precalculated storage requirement was higher than what is actually filled. So all the math has been rewritten to be byte accurate. Temporarily, a syslog_r check is added to report if we ever get count inconsistancy again so that can be fixed quickly. ok claudio
4 months ago
getnameinfo.3
.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze
3 years ago
getnetent.3
mop up resolver.3 rename; ok deraadt
6 years ago
getnetent.c
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@
8 years ago
getpeereid.3
.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze
3 years ago
getpeereid.c
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
16 years ago
getproto.c
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
10 years ago
getprotoent.3
Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze
13 years ago
getprotoent.c
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
10 years ago
getprotoname.c
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
10 years ago
getrrsetbyname.3
.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze
3 years ago
getservbyname.c
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
10 years ago
getservbyport.c
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
10 years ago
getservent.3
Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze
13 years ago
getservent.c
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
10 years ago
herror.c
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
10 years ago
htobe64.3
A dozen interfaces in <endian.h> were standardized in POSIX-2024 as expected
2 years ago
htonl.3
.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze
3 years ago
htonl.c
drop htonl(), htons(), ntohl(), ntohs() MD functions from libc
2 years ago
htons.c
drop htonl(), htons(), ntohl(), ntohs() MD functions from libc
2 years ago
if_indextoname.3
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.
10 months ago
if_indextoname.c
Fix typo in RFC number.
8 years ago
if_nameindex.c
Eliminate some gcc warnings about 'unused variables', mostly by adding appropriate #ifdef's around declarations.
9 years ago
if_nametoindex.c
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@
10 years ago
inet6_opt_init.3
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.
10 months ago
inet6_rth_space.3
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.
10 months ago
inet_addr.3
POSIX defines inet_ntoa, not inet_aton.
2 years ago
inet_addr.c
Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and the symbols without underbar prefix are all weak
10 years ago
inet_lnaof.3
mop up for inet_net rename; ok deraadt
6 years ago
inet_lnaof.c
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
11 years ago
inet_makeaddr.c
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
11 years ago
inet_net_ntop.3
.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze
3 years ago
inet_net_ntop.c
snprintf/vsnprintf return < 0 on error, rather than -1.
6 years ago
inet_net_pton.c
spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
3 years ago
inet_neta.c
zap rcsid. split functions off res_debug.c so that getnetnamadr.c does not pull it all when it's used.
20 years ago
inet_netof.c
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
11 years ago
inet_network.c
Cast ctype function arguments to unsigned char.
10 years ago
inet_ntoa.c
zap rcsid. split functions off res_debug.c so that getnetnamadr.c does not pull it all when it's used.
20 years ago
inet_ntop.3
.Li -> .Vt where appropriate; from josiah frentsos, tweaked by schwarze
3 years ago
inet_ntop.c
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.
9 years ago
inet_pton.c
wild white space
2 years ago
ip6opt.c
delete wasteful ;; ok tedu
6 years ago
link_ntoa.3
tweak Nd after previous; ok mpi
10 years ago
linkaddr.c
Fix regressions introduce in the fix for CVE-2016-6559. From FreeBSD (glebius)
9 years ago
ntohl.c
drop htonl(), htons(), ntohl(), ntohs() MD functions from libc
2 years ago
ntohs.c
drop htonl(), htons(), ntohl(), ntohs() MD functions from libc
2 years ago
rcmd.3
rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3).
10 years ago
rcmd.c
Wrap <unistd.h> so that internal calls go direct and they're all weak symbols Delete unused 'fd' argument from internal function oldttyname()
10 years ago
rcmdsh.3
rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3).
10 years ago
rcmdsh.c
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.
6 years ago
recv.c
Last arg is also a pointer, so pass NULL instead of 0; ok deraadt@
3 years ago
res_comp.c
Fix a number of out of bound reads in DNS response parsing. Originally from djm@. OK deraadt@ florian@ bluhm@
3 years ago
res_data.c
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
11 years ago
res_debug_syms.c
Wrap <resolv.h> so that internal calls go direct
10 years ago
res_init.3
Describe what RES_USE_DNSSEC does and how it's affected by trust-ad
4 years ago
res_random.c
typo in comment; Effectivly -> Effectively; ok gilles@
2 years ago
rresvport.c
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.
6 years ago
rthdr.c
spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
3 years ago
ruserok.c
spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
3 years ago
send.c
recv() and send() aren't overriden by libpthread (vs recvfrom() and sendto()!) so wrap them to make internal calls go direct
10 years ago
sockatmark.3
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.
6 years ago
sockatmark.c
Add sockatmark()
11 years ago
vars6.c
Make the in6addr constant declarations and definitions consistent in kernel and user land. OK florian@ mpi@
11 years ago