freebsd-skq/usr.sbin
Bill Paul 180807d214 Big round o changes:
- yp_dblookup.c: Create non-DB specific database access functions.
  Using these allows access to the underlying database functions without
  needing explicit knowledge of Berkeley DB. (These are used only
  when DB_CACHE is #defined. Other programs that use the non-caching
  functions (yp_mkdb, ypxfr, yppush, rpc.yppasswdd) shouldn't notice
  the difference.)

- yp_dnslookup: Implement async DNS lookups. We send our own DNS
  requests using UDP and put the request in a queue. When the response
  arrives, we use the ID in the header to find the corresponsing queue
  entry and then send the response to the client. We can go about our
  business and handle other YP requests in the meantime. This way, we
  can deal with time consuming DNS requests without blocking and without
  forking.

- yp_server.c: Convert to using new non-DB-specific database access
  functions. This simplifies the code a bit and removes the need for
  this module to know anything about Berkeley DB. Also convert the
  ypproc_match_2_svc() function to use the async DNS lookup routines.

- yp_main.c: tweak yp_svc_run() to add the resolver socket to the
  set of descriptors monitored in the select() loop. Also add a
  timeout to select(); we may get stale DNS requests stuck in the
  queue which we want to invalidate after a while. If the timeout
  hits, we decrement the ttl on all pending DNS requests and nuke
  those requests that aren't handled before ttl hits zero.

- yp_extern.h: Add prototypes for new stuff.

- yp_svc_udp.c (new file): The async resolver code needs to be able
  to rummage around inside the RPC UDP transport handle in order to
  work correcty. There's basically one transport handle, and each time
  a request comes in, the transaction ID in the handle is changed.
  This means that if we queue a DNS request, then we handle some other
  unrelated requests, we will be unable to send the DNS response because
  the transaction ID and remote address of the client that made the DNS
  request will have been lost. What we need to do is save the client
  address and transaction ID in the queue entry for the DNS request,
  then put the transaction ID and address back in the transport handle
  when we're ready to reply. (And then we have to undo the change so
  as not to confuse any other part of the server.) The trouble is that
  the transaction ID is hidden in an opaque part of the transport handle,
  and only the code in the svc_udp module in the RPC library knows how
  to handle it. This file contains a couple of functions that let us
  read and set the transaction ID in spite of this. This is really a
  dirty trick and I should be taken out and shot for even thinking about
  it, but there's no other way to get this stuff to work.

- Makefile: add yp_svc_udp.c to SRCS.
1996-12-22 22:30:58 +00:00
..
ac Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
accton Grr. Fix a spelling error. 1996-12-21 22:22:55 +00:00
adduser Expand username limit to 16 1996-12-07 21:25:12 +00:00
amd Fix up programs which expect <net/if.h> to include <sys/time.h> to instead 1996-12-10 17:11:53 +00:00
apm delete MANDIR=/usr/share/man/man, 1996-05-21 18:09:11 +00:00
apmconf Use /dev/apm instead of /dev/apm0. 1996-03-18 20:35:17 +00:00
arp Renamed private copy of ether_aton to my_ether_aton so as to not 1996-12-19 19:33:10 +00:00
bad144 Commit the longstanding bin/410 & kern/411 fix, in the hope that somebody 1995-12-01 11:07:01 +00:00
bootparamd Correct the syntax of the example to reflect reality, and note that the 1996-11-25 01:52:28 +00:00
cdcontrol delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
chown [HISTORY] command appeared in Version 1 AT&T UNIX 1996-08-29 18:06:19 +00:00
chroot Use the .Bx macro where appropriate. 1996-08-23 20:36:11 +00:00
config Part #2 of the config cleanup. More aggressive, replaced an NIH 1996-12-14 19:53:49 +00:00
cron Replace my "inane" usage of snprintf to copy strings with strncpy as 1996-12-17 00:55:20 +00:00
crunch Initialize memory obtained by malloc(). 1996-11-16 22:49:02 +00:00
ctm Correct MLINKS, now that I know how it actually works. 1996-12-17 14:28:09 +00:00
dev_mkdb
diskpart Merged type changes and overflow bug fixes from Lite2. 1996-03-19 15:38:44 +00:00
edquota Convert to mdoc format. 1996-12-21 21:15:09 +00:00
fdcontrol Minor formatting/style fixes. 1996-12-09 08:04:55 +00:00
fdformat Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
fdwrite Make this more usable from shell scripts and such by adding a non-interactive 1996-09-30 03:10:30 +00:00
inetd Reviewed by: Bill fenner 1996-11-10 21:12:44 +00:00
iostat when you try to run iostat is fails with invalid dk_ndrive 0 1996-11-06 19:43:10 +00:00
IPXrouted Fix up programs which expect <net/if.h> to include <sys/time.h> to instead 1996-12-10 17:11:53 +00:00
kbdcontrol Convert to mdoc format. 1996-12-21 23:23:11 +00:00
kbdmap sync copyright with /usr/share/examples/etc/bsd-style-copyright 1996-08-27 20:04:45 +00:00
kernbb Fix various bogosities. 1995-10-22 19:45:28 +00:00
keyadmin This is the `key' program from NRL's IPv6 distribution, heavily 1996-06-17 19:47:57 +00:00
kgmon Implemented non-statistical kernel profiling. This is based on 1995-12-29 15:30:05 +00:00
kvm_mkdb Use the .Bx macro where appropriate. 1996-08-23 20:36:11 +00:00
lpr doc/1987, table heading in error. 1996-11-12 13:37:51 +00:00
lptcontrol Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
manctl export PATH variable 1996-11-04 23:50:58 +00:00
mixer Make mixer print out all of the current mixer settings by defualt 1996-01-31 18:01:22 +00:00
mkdosfs Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00
mount_portalfs Don't use __dead or __pure in user code. They were obfuscations 1996-09-14 03:00:32 +00:00
mountd Add one line fix to stop my old 'don't barf if you see the same 1996-08-29 14:20:57 +00:00
moused Add man page for moused(8). It is basically a rehash of the 1996-12-16 01:05:00 +00:00
mrouted Merge from release 5.1. 1996-12-20 01:32:12 +00:00
mtest Add the one line description of the man page at the top so 1996-12-15 23:02:48 +00:00
mtree ts_sec -> tv_sec 1996-09-20 04:13:44 +00:00
named Use LC_TIME=C instead of LC_TIME= 1996-11-26 03:31:26 +00:00
named.reload build bind-4.9.4-P1 named.reload in it's own directory 1996-08-29 21:47:33 +00:00
named.restart build bind-4.9.4-P1 named.restart in it's own directory 1996-08-29 21:48:19 +00:00
ncrcontrol Remove reference to unused variable ncr.ns_async. 1996-12-14 12:53:30 +00:00
ndc export PATH variable 1996-11-04 23:57:40 +00:00
newsyslog Convert to mdoc format. 1996-12-21 21:57:21 +00:00
nfsd Use the .Bx macro where appropriate. 1996-08-23 20:36:11 +00:00
nologin Now that we have a manpage, don't have the 'clean' target be a NO-OP. 1996-07-10 18:36:41 +00:00
nslookup Build bind-4.9.4-P1 nslookup 1996-08-29 21:40:09 +00:00
pccard add missing comma(s) in .Xr macros 1996-09-23 22:24:39 +00:00
pciconf Fix core dump after printing usage message (pointed out by BDE). 1996-11-16 22:05:52 +00:00
pcvt Fixed DPADD. 1996-09-05 17:16:10 +00:00
pkg_install Use new ftpGetURL interface, as result, report FTP error 1996-11-14 07:30:17 +00:00
portmap Fix up programs which expect <net/if.h> to include <sys/time.h> to instead 1996-12-10 17:11:53 +00:00
ppp For /usr/sbin/ppp, you must choose between running ppp in the background or 1996-12-22 17:29:33 +00:00
pppd Manage UTMP entry if we're doing username/password PAP logins 1996-11-13 01:33:10 +00:00
pppstats Fix up programs which expect <net/if.h> to include <sys/time.h> to instead 1996-12-10 17:11:53 +00:00
pstat Fix a typo, putput --> output. 1996-10-27 23:12:48 +00:00
pw 1) 200 users per group limitation removed and pw 1996-12-21 15:35:45 +00:00
pwd_mkdb Begin closing out PR #1519 (this requires a change to chpass too, 1996-10-22 03:18:11 +00:00
qcamcontrol Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00
quot Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
quotaon
rarpd Add -s flag to always supply mapping if known, ignoring the 1996-11-27 20:45:10 +00:00
repquota Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
rmt ``make install'' should not install the symlink /usr/sbin/rmt -> /etc/rmt 1996-08-18 11:05:08 +00:00
rndcontrol Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00
rpc.lockd rpc.rstatd -> rpc.lockd typo 1996-08-16 09:44:40 +00:00
rpc.statd Add sm_inter.h to DPSRCS so that make depend is not required to build 1996-07-09 22:40:39 +00:00
rpc.yppasswdd oops, forgot to commit this. the sockaddr_un init code was missing 1996-11-15 15:56:45 +00:00
rpc.ypxfrd Fixed DPADD. 1996-09-05 17:16:10 +00:00
rtprio Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00
rwhod Fix minor buffer problems: 1996-11-01 06:29:34 +00:00
sa delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
sade 1. Engage brain. 2. Write macro. Previous commit attempted to perform 1996-12-17 00:00:15 +00:00
sendmail Update this to what freefall's been running for a day or so. 1996-12-06 11:29:15 +00:00
sgsc Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
sicontrol Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
sliplogin Close a security hole in sliplogin. 1996-04-24 20:18:25 +00:00
slstat Fix up programs which expect <net/if.h> to include <sys/time.h> to instead 1996-12-10 17:11:53 +00:00
spkrtest sync copyright with /usr/share/examples/etc/bsd-style-copyright 1996-08-27 20:04:45 +00:00
spray Fixed DPADD. 1996-09-05 17:16:10 +00:00
stallion rm the files first before uudecoding, because the modes in the begin 1996-05-05 07:40:46 +00:00
sup Oops, don't suppress initial output header (from previous commit), 1996-10-31 00:03:14 +00:00
sysctl Removed references to pathconf-related variables that were never handled 1996-09-28 14:43:03 +00:00
sysinstall 1. Engage brain. 2. Write macro. Previous commit attempted to perform 1996-12-17 00:00:15 +00:00
syslogd Revert part of the previous change. syslogd (when logging to ttys) 1996-12-10 17:52:23 +00:00
tcpdump Fix typo in last commit...sigh 1996-08-21 21:39:44 +00:00
timed Fixes: 1996-10-22 05:13:42 +00:00
traceroute Grab traceroute out of src/contrib/traceroute 1996-09-30 19:49:54 +00:00
trpt Fix up programs which expect <net/if.h> to include <sys/time.h> to instead 1996-12-10 17:11:53 +00:00
tzsetup Remove two uninitialized and unused variables that used to cause a 1996-11-19 23:21:52 +00:00
vidcontrol Convert to mdoc format. 1996-12-09 07:20:41 +00:00
vipw Implement incremental passwd database updates. This is done by ading a '-u' 1996-07-01 19:38:50 +00:00
vnconfig man page link swapfile.8 -> vnconfig.8 1996-02-02 06:14:09 +00:00
watch Use RAW, not CBREAK 1996-12-17 15:26:40 +00:00
wormcontrol Update the man page: the Philips CDD2000 is now supported. 1996-11-06 13:35:27 +00:00
xntpd Apply patch in pr 2067 to correct an uninitialized pointer dereference 1996-12-17 17:21:47 +00:00
xten add missing comma(s) in .Xr macros 1996-09-23 22:24:39 +00:00
yp_mkdb Add -b and -s flags for adding YP_INTERDOMAIN and YP_SECURE entries to 1996-10-24 14:52:50 +00:00
ypbind delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
yppoll Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
yppush Ack! You can't strdup() a DB datum that is not null terminated, or you 1996-06-09 07:34:27 +00:00
ypserv Big round o changes: 1996-12-22 22:30:58 +00:00
ypset Add a ypset(8) man page. 1996-02-12 05:28:30 +00:00
zic Merge from vendor branch. We are now completely up-to-date with 1996-07-18 19:59:09 +00:00
Makefile Add mtest. 1996-12-16 01:01:46 +00:00
Makefile.inc