freebsd-dev/include
Bill Paul 04228afa84 "What? He's modifying the NIS protocol definition!?"
No, not really. There are just a couple of long-standing bogosities here
that I feel compelled to fix. :)

There are two small changes here:

1) yp.x actually contains _three_ protocol definitions: YPPROG (standard
   NIS client/server procedures), YPPUSH_XFRRESPPROG (callback handler
   for the YPPROC_XFR service, aka ypxfr/yppush) and YPBINDPROG (for ypbind,
   ypset & friends). The problem is that when you run yp.x through rpcgen(1),
   it generates client and server stubs with hooks for all three services.
   This makes it impossible to actually use the rpcgen-erated code in a
   program that only deals with _one_ of these services (ypserv, ypbind,
   etc...) without manually removing the unneeded stubs (either by hand
   editing or by committing unspeakable horrors with sed). This defeats
   the whole purpose of using rpcgen and is generally annoying.

   What I've done is to insert a few #ifndefs and #endifs to allow a
   programmer to selectively blot out those functions that aren't needed
   for a particular program. For instance, if you do 'rpcgen -DYPSERV_ONLY',
   you'll get only the necessary client/server stubs to implement the
   standard yp client and server functions. If you do 'rpcgen -DYPBIND_ONLY',
   you get only what you need for ypbind. If you don't #define anything,
   you get the whole mess, just like before, so existing programs won't
   notice the difference. (Note that the -D flag is not supported by our
   existing crufty version of rpcgen, but I intend to update it soon.)

2) The definition for the ypresp_key_val structure is actually incorrect
   with respect to reality: the key and val members are specified in the
   wrong order. It should be val/key rather than key/val. For whatever
   the reason, Sun's actual NIS implementation contradicts the protocol
   definition in this case. Again, accounting for this bogosity here is
   cleaner and easier than mangling the output from rpcgen.
1995-12-08 17:58:50 +00:00
..
arpa Update the resolver include files to bind-4.9.3-beta24 level (from beta9p1) 1995-08-20 19:59:28 +00:00
protocols Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
rpc Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
rpcsvc "What? He's modifying the NIS protocol definition!?" 1995-12-08 17:58:50 +00:00
_ctype.h Fix isspecial/isphonogram, they was swapped 1995-11-03 12:25:14 +00:00
a.out.h Woops, include machine/exec.h, too. 1994-09-24 21:49:20 +00:00
ar.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
assert.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
bitstring.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
ctype.h Fix isspecial/isphonogram, they was swapped 1995-11-03 12:25:14 +00:00
db.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
dirent.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
disktab.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
err.h Add err_set_file() and err_set_exit() functions to make it possible for 1995-04-13 18:04:11 +00:00
f2c.h Install f2c.h for FORTRAN support. 1994-10-26 18:35:40 +00:00
fnmatch.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
fstab.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
fts.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
glob.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
grp.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
histedit.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
kvm.h Comment out declaration of kvm_uread until it can be fixed correctly. 1995-03-20 16:35:11 +00:00
limits.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
link.h Change ld.so to correctly load dependant libraries for dlopen and unload them 1995-06-27 09:53:27 +00:00
locale.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
Makefile Removed reference to missing mp.h in comment. We have GNU MP now. 1995-11-12 19:29:08 +00:00
malloc.h By Bruce and Joerg suggestions and by looking into June version 1994-11-17 11:04:49 +00:00
math.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
memory.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
mpool.h Made them idempotent. 1994-08-21 04:03:58 +00:00
ndbm.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
netdb.h Update the resolver include files to bind-4.9.3-beta24 level (from beta9p1) 1995-08-20 19:59:28 +00:00
nl_types.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
nlist.h Document some of the fields used by the new shlib code. 1994-12-23 22:32:48 +00:00
paths.h Due conflict to some obsoleted applications (dump/restore) rename 1995-09-23 15:14:25 +00:00
pwd.h Add a couple of extra #defines for special keys to be embedded in the 1995-03-23 00:08:00 +00:00
ranlib.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
regex.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
regexp.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
resolv.h Update the resolver include files to bind-4.9.3-beta24 level (from beta9p1) 1995-08-20 19:59:28 +00:00
rune.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
runetype.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
setjmp.h Delete vax' (and i386' and `hp300' etc.) namespace pollution. 1994-10-30 00:21:30 +00:00
sgtty.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
signal.h Fix standards conformance bugs in <signal.h>: 1995-06-28 02:14:13 +00:00
skey.h Brought it over form 1.1.5 1994-08-20 10:48:18 +00:00
stab.h Made them idempotent. 1994-08-21 04:03:58 +00:00
stddef.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
stdio.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
stdlib.h Don't declare rune_t, putenv() or setenv() if _POSIX_SOURCE is declared. 1995-04-15 23:48:16 +00:00
strhash.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
string.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
strings.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
struct.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
sysexits.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
tar.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
time.h Define CLK_TCK right. 1995-02-08 18:37:14 +00:00
ttyent.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
tzfile.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
unistd.h Make the argument list for the (non-Posix) fchown() consistent with 1995-02-16 11:10:24 +00:00
utime.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
utmp.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
vis.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00