summaryrefslogtreecommitdiff
path: root/lib/libc/net
AgeCommit message (Collapse)Author
2016-09-21Delete casts to off_t and size_t that are implied by assignmentsPhilip Guenther
or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
2016-08-05Obvious minor fixes:Ingo Schwarze
* Add missing .Dv, .Ev, and .Fa macros. * Delete deprecated .Tn macros. * Mark up global variable names with .Va, not with .Fa or .Li. * Mark up config file commands with .Ic, not with .Fa. * Fix HISTORY, trivial to verify from the CSRG archive CD.
2016-08-05Make RES_OPTIONS point directly to resolv.conf(5) instead of going throughMartijn van Duren
resolver(3). OK jmc@
2016-05-29Prefer AF_* over PF_* and 'address family' over 'protocol family'Philip Guenther
ok jung@
2016-05-28rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3).Todd C. Miller
2016-05-28Use getaddrinfo() instead of the non-standard gethostbyname2().Todd C. Miller
OK deraadt@ jca@ jung@ florian@
2016-05-23Remove iruserok(_sa)? and __ivaliduser(sa)?Philip Guenther
ok millert@ deraadt@
2016-05-23Eliminate __check_rhosts_file and __rcmd_errstr: they were only used byPhilip Guenther
rlogind and rshd (remember them?) ok deraadt@
2016-05-01Remove old NeXT-specific cruft. From mmcc@Todd C. Miller
2016-04-05Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specificPhilip Guenther
data isn't necessary. ok mpi@, ok&tweak natano@
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-10un-vax;Jason McIntyre
2015-12-28Remove NULL-checks before free() and a few related dead assignments.mmcc
ok and valuable input from millert@
2015-12-19gethostbyname2() and gethostbyaddr() need <sys/socket.h>; discussed withTim van der Molen
millert@
2015-12-16tweak previous;Jason McIntyre
2015-12-16Remove support for HOSTALIASES from the resolver. This "open and parseTheo de Raadt
any file indicated by an environment variable" feature inside the resolver is incompatible with what pledge "dns" is trying to be. It is a misguided "feature" added way back in history which almost noone uses, but everyone has to assume the risk from. ok eric florian kettenis
2015-12-14s/begining/beginning/gmmcc
2015-11-25syslog() here is pointless; ok millertTheo de Raadt
2015-11-24Use reentrant versions of getpw{nam,uid} and getgr{nam,gid} withinTodd C. Miller
libc to avoid reusing the static buffers returned by the non-reentrant versions. Since this is inside libc we can use constants for the buffer sizes instead of having to call sysconf(). OK guenther@ deraadt@
2015-11-21point to netintro(4) rather than (now removed) networking(4);Jason McIntyre
2015-11-10update NAME section to include all documented functions,Jason McIntyre
or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
2015-11-08inet(4), not inet(3);Jason McIntyre
2015-11-01delete old lint ARGSUSED commentsPhilip Guenther
2015-10-23Switch if_nameindex(3) to use the new NET_RT_IFNAMES sysctl to get theClaudio Jeker
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@
2015-10-23Use waitpid() instead of wait() to avoid returning early from another childPhilip Guenther
exiting, and loop the waitpid() on EINTR ok deraadt@ millert@
2015-10-22Cast ctype function arguments to unsigned char.mmcc
ok guenther@
2015-10-05Wrap <resolv.h> so that internal calls go directPhilip Guenther
ok millert@
2015-10-04wrap __ivaliduser_sa() so the internal call is direct (at least until wePhilip Guenther
stop exporting it)
2015-10-04recv() and send() aren't overriden by libpthread (vs recvfrom() and sendto()!)Philip Guenther
so wrap them to make internal calls go direct
2015-09-14Wrap <ifaddrs.h>, <netinet/in.h>, and <netinet/if_ether.h> so internalPhilip Guenther
calls go direct and all the symbols are weak
2015-09-14Wrap <net/if.h> and <net/if_dl.h> so internal calls go direct and all thePhilip Guenther
symbols are weak
2015-09-14Finish wrapping <netdb.h> so that calls go direct and the symbols are all weakPhilip Guenther
2015-09-13Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and thePhilip Guenther
symbols without underbar prefix are all weak
2015-09-12Wrap <unistd.h> so that internal calls go direct and they're all weak symbolsPhilip Guenther
Delete unused 'fd' argument from internal function oldttyname()
2015-09-11_getnetbyaddr and _getnetbyname appear to be historical accidents inTheo de Raadt
our tree. ok guenther miod
2015-09-10tweak Nd after previous; ok mpiJason McIntyre
2015-09-10Remove link_addr(3). A function to encode the name of an interface inMartin Pieuchot
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@
2015-08-30Use nanosleep instead of sleep to avoid the extra layer and simplify laterPhilip Guenther
symbol hiding ok w/tweak deraadt@
2015-06-04force reseeding if pid has changed.Eric Faurot
ok deraadt@
2015-05-14rev 1.3 introduced a check to an if statement without adding braces.Jonathan Gray
Claudio points out the size is checked by an earlier test so just remove it to restore the original handling of the partial octet case. Discussed with claudio and gilles.
2015-03-23Make rcmdsh(3) not fail if it is passed a non resolvable hostname.Alexander Hall
Instead, silently ignore the fact and instead let the underlying ssh (or $RSH) command handle it. ok millert@
2015-03-22differentiate between a failed read, returning -1, and encounteringAlexander Hall
end-of-file, returning 0, in order not to print an unrelated strerror(errno) in the latter case ok millert@
2015-03-22unmute rcmd hostname lookup failureAlexander Hall
ok millert@ jung@
2015-03-19zap #if 0'd code that's been dead since '96Alexander Hall
ok todd@
2015-02-16Amend documentation for AI_ADDRCONFIGJeremie Courreges-Anglas
ok jmc@
2015-01-29Use .Rv where appropriate, and move it to RETURN VALUES;Ingo Schwarze
remove .Tn, and a few minor macro adjustments. Patch from Kaspars at Bankovskis dot net.
2015-01-16Use ">", not ">=" when comparing length to HOST_NAME_MAX sinceTodd C. Miller
otherwise we end up needlessly replacing a NUL with a NUL. OK deraadt@
2015-01-16Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@Todd C. Miller
2015-01-16Replace check for ">= HOST_NAME_MAX+1" with "> HOST_NAME_MAX".Todd C. Miller
OK deraadt@
2015-01-16Move to the <limits.h> universe.Theo de Raadt
review by millert, binary checking process with doug, concept with guenther