aboutsummaryrefslogtreecommitdiff
path: root/include/rpcsvc
Commit message (Collapse)AuthorAgeFilesLines
...
* Resolve conflicts.Bill Paul1997-05-2815-60/+110
| | | | Notes: svn path=/head/; revision=26208
* This commit was generated by cvs2svn to compensate for changes in r26206,Bill Paul1997-05-2811-0/+2307
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=26207
| * Hold onto your hats folks, here it comes: the first stage of theBill Paul1997-05-2829-122/+3730
| | | | | | | | | | | | | | | | | | | | | | | | Secure RPC import I've been threatening. This step adds some necessary protocol definition files and headers to rpcsvc, including the ones needed for NIS+. Reviewed by: Mark Murray Notes: svn path=/cvs2svn/branches/WPAUL/dist/; revision=26206
| * This commit was manufactured by cvs2svn to create branch 'WPAUL'.cvs2svn1996-01-1217-0/+2556
| | | | Notes: svn path=/cvs2svn/branches/WPAUL/dist/; revision=13397
* Back out all of yesterdays include file changes.Eivind Eklund1997-05-071-3/+1
| | | | Notes: svn path=/head/; revision=25551
* Back out part of yesterdays changes. They were obviously not tested wellEivind Eklund1997-05-071-4/+1
| | | | | | | | | | enough :-( (With backout on this file, libc compiles. 'make world' isn't finished yet.) Pointed out by: Oliver Roberts Notes: svn path=/head/; revision=25541
* Make a lot of include-files self-contained. I excluded the patches changingEivind Eklund1997-05-072-2/+7
| | | | | | | | | | | int's to gid_t and uid_t - should I commit these, too? Closes PR misc/2625. Submitted by: Julian Assange <proff@iq.org> Notes: svn path=/head/; revision=25520
* Add protocol definitions for NFSv3. Use -DWANT_NFS3 with rpcgen to getDoug Rabson1997-04-182-4/+1001
| | | | | | | | | the new protocol. Obtained from: rfc1813 Notes: svn path=/head/; revision=25000
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-2317-18/+18
| | | | Notes: svn path=/head/; revision=23037
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-1417-18/+18
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* - Prototypes, including pointers to functionsPeter Wemm1996-12-302-28/+30
| | | | | | | - C++ safe Notes: svn path=/head/; revision=21060
* 'make install' is not supposed to touch anything.Peter Wemm1996-08-301-2/+2
| | | | Notes: svn path=/head/; revision=17963
* missed these parts of Bruce's changes last time..Peter Wemm1996-08-301-2/+2
| | | | | | | Submitted by: bde (again :-) Notes: svn path=/head/; revision=17960
* Some bmake magic to clean up the install more.Peter Wemm1996-08-301-10/+6
| | | | | | | | | | fix another missed -c typo of mine. clean the rpcgen implicit rule more Submitted by: bde Notes: svn path=/head/; revision=17953
* replace cmp -s || install with ${INSTALL} -C, and @for with .forPeter Wemm1996-08-291-21/+10
| | | | Notes: svn path=/head/; revision=17901
* There are a few small additions to the protocol to make itBill Paul1996-07-041-5/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | easier to use in mixed environments: - Add three new members to the request structure: - a filename specification - a database type specification - a system byte prder specification These allow the client to ask the server for a particular type of database (Berkeley DB hash/btree/recno, GNU GDBM, dbm, ndbm, etc...) and get back a meaningful error if the server doesn't support it. The byte order spec is needed if the database type is byte order sensntive. You don't, for example, want to read an ndbm database from a big endian machine on a little endian machine (the ndbm code will explode). The filename spec lets the client handle things like ndbm which uses two seperate files per database (foo.dir and foo.pag). The client can ask for each half, one at a time. - Add a list of database types and byte order values. Each list has a wildcard 'ANY' entry which lets the client ask for whatever the server supports. (XFR_ENDIAN_ANY is useful with the Berkeley DB hash method for instance, since it isn't byte order sensitive.) - Add two newserver failure codes: XFR_DB_TYPE_MISMATCH and XFR_DB_ENDIAN_MISMATCH. The server uses these to tell the client that it doesn't support the requested type/byte order. These changes were made at the suggestion of Thorsten Kukuk, the current maintainer of the Linux ypserv distribution. This allows Linux and FreeBSD NIS servers to use the same ypxfrd protocol and avoid accidentally exchanging incompatible map files. Notes: svn path=/head/; revision=16957
* Now that Peter has been nice enough to bail me out of my last littleBill Paul1996-06-051-4/+5
| | | | | | | mishap, it's time to have the Makefile install ypxfrd.x and ypxfrd.h. Notes: svn path=/head/; revision=16123
* (I hope I'm doing this correctly.)Bill Paul1996-06-051-0/+117
| | | | | | | | | | | | | | | | | | | Import a my own little ypxfrd protocol. Note that this protocol is _NOT_ the same as Sun's, which is proprietary. This basically impliments an RPC-based file transfer protocol which lets a slave server suck over a raw map database file from the master. This is many times faster than the normal method, which requires reading the records from ypserv via yp_all() and then creating a new database on the fly, particularly when you have many tens of thousands of records in a map (e.g. a huge passwd database). The protocol number I chose falls within the 'user-specified' range. Maybe we should register it with Sun so we can get an official vendor number for it. :) Notes: svn path=/cvs2svn/branches/WPAUL/dist/; revision=16119
* Add structure and procedure definitions for NIS v1. (This informationBill Paul1996-02-261-2/+71
| | | | | | | | was reverse-engineered using the <rpcsvc/ypv1_prot.h> file supplied with SunOS 4.1.3 as a guide.) Notes: svn path=/head/; revision=14261
* Fix a bunch of spelling errors in the comment fieldsMike Pritchard1996-01-301-4/+4
| | | | | | | of a bunch of system include files. Notes: svn path=/head/; revision=13771
* *groan* Fix yet _ANOTHER_ discrepancy between the NIS protocol definitionBill Paul1995-12-221-2/+6
| | | | | | | | | | and real life. YPPUSHPROC_XFRRESP is supposed to return void and take an argument of type yppushresp_xfr, not the other way around as yp.x seems to imply. (I spent two hours today staring intensely at my prototype ypxfr code and scratching my head before I finally figured this out.) Notes: svn path=/head/; revision=12957
* *sigh* Yet another bogosity: the YPPROC_FIRST procedure is listed asBill Paul1995-12-091-2/+5
| | | | | | | | | | taking an argument of type ypresp_key. This is incorrect: it should be ypresp_nokey. (yp_first() is supposed to return the first key in a given map; the server doesn't need any client-specified key to handle such a request.) Notes: svn path=/head/; revision=12690
* "What? He's modifying the NIS protocol definition!?"Bill Paul1995-12-081-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=12677
* Install the headers and sample files with 444 perms (as opposed toJoerg Wunsch1995-08-151-1/+2
| | | | | | | | | 555). Submitted by: graichen@sirius.physik.fu-berlin.de (Thomas Graichen) Notes: svn path=/head/; revision=10071
* Change `install' to `${INSTALL}' so that default install flags can beBruce Evans1995-08-061-3/+3
| | | | | | | | | | specified in the top level Makefiles. Previously I missed dozens of Makefiles that skip the install after using `cmp -s' to decide that the install isn't necessary. Notes: svn path=/head/; revision=9970
* Fix a bug I didn't manage to trigger until after committing previousGarrett Wollman1995-06-291-3/+3
| | | | | | | fix to header installation. Notes: svn path=/head/; revision=9375
* Make this include installation conform to the standard of all the rest:Garrett Wollman1995-06-291-14/+20
| | | | | | | | | | | - Don't do mkdir/chown/chmod - Do `cmp -s' before attempting to install a header This should fix the obnoxious problem of yp programs wanting to rebuild every time. Notes: svn path=/head/; revision=9374
* Changes to support version 3 of the NFS protocol.Doug Rabson1995-06-271-2/+0
| | | | | | | | | | | | | | | | | | | | | The version 2 support has been tested (client+server) against FreeBSD-2.0, IRIX 5.3 and FreeBSD-current (using a loopback mount). The version 2 support is stable AFAIK. The version 3 support has been tested with a loopback mount and minimally against an IRIX 5.3 server. It needs more testing and may have problems. I have patched amd to support the new variable length filehandles although it will still only use version 2 of the protocol. Before booting a kernel with these changes, nfs clients will need to at least build and install /usr/sbin/mount_nfs. Servers will need to build and install /usr/sbin/mountd. NFS diskless support is untested. Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca> Notes: svn path=/head/; revision=9336
* Remove trailing whitespace.Rodney W. Grimes1995-05-302-10/+10
| | | | Notes: svn path=/head/; revision=8858
* Add prototype for ypbinderr_string().Bill Paul1995-04-211-1/+2
| | | | Notes: svn path=/head/; revision=7983
* Correct chmod of /usr/include/rpcsvc to match mtree file.Rodney W. Grimes1995-03-181-2/+2
| | | | Notes: svn path=/head/; revision=7132
* The bootparam protocol file needs some extra includes in FreeBSD in orderBill Paul1995-02-261-1/+5
| | | | | | | | | | | | to properly resolve some definitions in <nfs/nfs.h>. I suppose nobody noticed this before because no one's tried to build bootparamd in FreeBSD until now. (Yes, you read that right: I've got bootparamd ready to go. And rarpd is on the way. :) Notes: svn path=/head/; revision=6747
* Use ${ECHO} instead of `echo' so that `make -s' is fairly quiet.Bruce Evans1994-08-281-4/+4
| | | | Notes: svn path=/head/; revision=2367
* Moved 1.1.5 RPC service files from 1.1.5. Tese are the correct ones;Garrett Wollman1994-08-0417-0/+2556
the ones in /usr/src/lib/librpc/rpcsvc are somewhat bogus and will be deleted. Submitted by: Original work in 1.1 by J.T. Conklin. Notes: svn path=/head/; revision=1832