summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/rcmd.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Wrap <unistd.h> so that internal calls go direct and they're all weak symbolsguenther2015-09-121-0/+1
| | | | Delete unused 'fd' argument from internal function oldttyname()
* Use nanosleep instead of sleep to avoid the extra layer and simplify laterguenther2015-08-301-5/+8
| | | | | | symbol hiding ok w/tweak deraadt@
* differentiate between a failed read, returning -1, and encounteringhalex2015-03-221-2/+4
| | | | | | | end-of-file, returning 0, in order not to print an unrelated strerror(errno) in the latter case ok millert@
* unmute rcmd hostname lookup failurehalex2015-03-221-3/+2
| | | | ok millert@ jung@
* zap #if 0'd code that's been dead since '96halex2015-03-191-7/+0
| | | | ok todd@
* Move to the <limits.h> universe.deraadt2015-01-161-2/+2
| | | | review by millert, binary checking process with doug, concept with guenther
* replace select with equiv poll usage.dlg2014-10-101-17/+12
| | | | | looks good deraadt@ tweaks and ok millert@
* More shrinkage, a bit for ramdisks but mostly for static binaries:guenther2009-11-181-388/+0
| | | | | | | | | | | | | | | | | - wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses p_class() and p_type() for diagnostics, then add that define to libstub to avoid pulling in res_debug_syms.o - split rcmd() and ruserok() into separate files, as nothing uses both - split readdir_r() to its own file - split syslog_r() from syslog(), as the latter needs localtime(); many binaries no longer need to pull in all the time code after this; switch from usleep() to nanosleep() while we're at it (The profit of analysis of -Wl,-M,--cref output) Chops 888kB from /bin and /sbin on i386 ok deraadt@, miod@
* Check snprintf(3) return value for error or truncation.moritz2007-09-171-1/+5
| | | | | | Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
* oldmask = sigprocmask(SIG_BLOCK, &mask, &oldmask);deraadt2006-03-311-1/+1
| | | | is not valid code; found by lint
* zap rcsid.espie2005-08-061-4/+0
| | | | | | | split functions off res_debug.c so that getnetnamadr.c does not pull it all when it's used. okay deraadt@, krw@
* ansify. ok deraadt@ moritz@otto2005-03-251-42/+18
|
* do not trash errno before using it, do not pass garbage args to getnameinfoderaadt2005-03-081-7/+10
| | | | ok henning andrushock@korovino.net
* fd leak; andrushock@korovino.netderaadt2005-03-071-2/+4
|
* remove NI_WITHSCOPEID (which is not standard)itojun2004-11-171-19/+1
|
* Do check for current pointer vs. buffer end before touching anymillert2003-09-251-5/+5
| | | | | elements in the buffer. Fixes an out of bounds access. From aaron@; OK deraadt@
* license oops; from teduderaadt2003-07-111-1/+4
|
* fix various 3/4 licenses according to "terms" filederaadt2003-06-031-9/+1
|
* more writeable -> writable by torhhenning2002-12-151-2/+2
|
* use socklen_t where needed; henning pvalchev okderaadt2002-09-061-2/+2
|
* try to use strlcpy and snprintf more; ok variousderaadt2002-05-241-3/+2
|
* more strlcpy and snprintfderaadt2002-05-221-3/+3
|
* Manual cleanup of remaining userland __P use (excluding packages maintained ↵millert2002-02-171-3/+3
| | | | outside the tree)
* Part one of userland __P removal. Done with a simple regexp with some minor ↵millert2002-02-161-4/+4
| | | | hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
* Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their ↵millert2001-09-041-7/+9
| | | | POSIX counterparts.
* use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel2001-06-271-3/+2
|
* Make sure $RSH is not the empty string.millert2001-02-101-2/+2
|
* always pass salen as separate argument, so that it can be friendly withitojun2000-02-251-20/+22
| | | | systems with pre-4.2 sockaddrs.
* do not perform sleep() every time we get ECONNREFUSED.itojun2000-02-181-6/+12
| | | | | | try all the set of addresses before go to sleep() and retry. not sure if we still need sleep() - retry logic. why is it so persistent?
* visit next addrinfo structure when rresvport_af() fails.itojun2000-01-301-4/+9
| | | | | this should fix situation like: - try to rcmd() to dual stack node from IPv4-only node/kernel
* add IPv6-ready rcmd() friends.itojun2000-01-271-76/+221
| | | | | | | | rcmd(): IPv4 only rcmd_af(): af independent ruserok(): af independent iruserok(): IPv4 only iruserok_sa(): af independent
* rresvport_af() and bindresvport_af()deraadt1999-12-161-33/+1
|
* some -Wallmillert1998-03-191-3/+2
|
* correct bounds checkderaadt1998-02-121-2/+2
|
* copyrightderaadt1998-02-121-2/+2
|
* use fgetln() instead of fgets() so that we can catch \0 in the .rhostsderaadt1998-02-111-13/+14
| | | | | file. Thanks to fc@parkone.ci.oakland.ca.us for lots of testing and diagnosis help.
* increased paranoia about .rhosts validityderaadt1998-02-111-3/+7
|
* Clean up some -Wall flowers.millert1997-07-091-1/+2
|
* if we find an unprintable char, bail totallyderaadt1997-07-061-1/+4
|
* indentderaadt1997-06-291-2/+2
|
* use bzero instead of FD_ZEROdm1997-06-041-4/+4
|
* howmany(x+1, NFDBITS)deraadt1997-06-031-2/+2
|
* malloc fd_set dynamically, for very large fd usesderaadt1997-05-281-7/+14
|
* Use in_addr_t not u_long and use in_port_t in some cases insteadmillert1997-04-051-6/+6
| | | | of u_short or u_int16_t.
* never hand over a nonresv port, even if asked. problem reported by ↵deraadt1997-01-251-2/+2
| | | | gmeinerj@ZUMtOBEL.co.at
* ignore $RSH if we are setuidmillert1996-09-051-2/+2
|
* proper typesderaadt1996-09-031-1/+2
|
* Looks at RSH envariable and calls rcmdsh() with that value if set.millert1996-09-021-2/+11
|
* i have changed this enough to put copyright on itderaadt1996-09-011-1/+3
|
* check right variablederaadt1996-08-311-2/+2
|