Update.
authorAndreas Jaeger <aj@suse.de>
Sun, 31 Dec 2000 15:34:47 +0000 (15:34 +0000)
committerAndreas Jaeger <aj@suse.de>
Sun, 31 Dec 2000 15:34:47 +0000 (15:34 +0000)
* posix/bsd-getpgrp.c: Add prototype to avoid warning.

* sunrpc/svc_unix.c: Include <rpc/svc.h> for prototypes.

* sunrpc/create_xid.c: Include <rpc/svc.h> for prototypes.

* include/rpc/rpc_msg.h: Add prototypes for some functions.
* include/rpc/auth.h: Likewise.
* include/rpc/auth_des.h: Likewise.
* include/rpc/clnt.h: Likewise.
* include/rpc/rpc.h: Likewise.
* include/rpc/svc.h: Likewise.
* include/rpc/svc_auth.h: Likewise.

* include/rpc/des_crypt.h: New file.

ChangeLog
include/rpc/auth.h
include/rpc/auth_des.h
include/rpc/clnt.h
include/rpc/des_crypt.h [new file with mode: 0644]
include/rpc/rpc.h
include/rpc/rpc_msg.h
include/rpc/svc.h
include/rpc/svc_auth.h
sunrpc/svc_unix.c

index 740238f..e48097f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
 2000-12-31  Andreas Jaeger  <aj@suse.de>
 
+       * posix/bsd-getpgrp.c: Add prototype to avoid warning.
+
+       * sunrpc/svc_unix.c: Include <rpc/svc.h> for prototypes.
+
+       * sunrpc/create_xid.c: Include <rpc/svc.h> for prototypes.
+
+       * include/rpc/rpc_msg.h: Add prototypes for some functions.
+       * include/rpc/auth.h: Likewise.
+       * include/rpc/auth_des.h: Likewise.
+       * include/rpc/clnt.h: Likewise.
+       * include/rpc/rpc.h: Likewise.
+       * include/rpc/svc.h: Likewise.
+       * include/rpc/svc_auth.h: Likewise.
+
+       * include/rpc/des_crypt.h: New file.
+
        * malloc/memusagestat.c (main): Use return instead of exit to
        avoid warning.
        * io/pwd.c (main): Likewise.
index 40e9501..87fcd36 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _RPC_AUTH_H
 #include <sunrpc/rpc/auth.h>
 
+/* Now define the internal interfaces.  */
+struct key_netstarg;
+extern int key_setnet (struct key_netstarg *arg);
+
 #define DECLARE_NSS_PROTOTYPES(service)                                        \
 extern enum nss_status _nss_ ##service ## _netname2user                        \
                        (char netname[MAXNETNAMELEN + 1], uid_t *uidp,  \
index fa36227..014b30c 100644 (file)
@@ -2,6 +2,15 @@
 
 #include <sunrpc/rpc/auth_des.h>
 
+extern bool_t xdr_authdes_cred (XDR *xdrs, struct authdes_cred *cred);
+extern bool_t xdr_authdes_verf (register XDR *xdrs,
+                               register struct authdes_verf *verf);
+struct svc_req;
+struct rpc_msg;
+extern enum auth_stat _svcauth_des (register struct svc_req *rqst,
+                                   register struct rpc_msg *msg);
+
+
 #define DECLARE_NSS_PROTOTYPES(service)                                        \
 extern enum nss_status _nss_ ## service ## _getpublickey               \
                        (const char *netname, char *pkey, int *errnop); \
index b4493d1..071c008 100644 (file)
@@ -1 +1,7 @@
+#ifndef _RPC_CLNT_H
 #include <sunrpc/rpc/clnt.h>
+
+/* Now define the internal interfaces.  */
+extern int _openchild (const char *command, FILE **fto, FILE **ffrom);
+
+#endif
diff --git a/include/rpc/des_crypt.h b/include/rpc/des_crypt.h
new file mode 100644 (file)
index 0000000..00ee921
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef __DES_CRYPT_H__
+#include <sunrpc/rpc/des_crypt.h>
+
+/* Now define the internal interfaces.  */
+
+extern int xencrypt (char *secret, char *passwd);
+extern int xdecrypt (char *secret, char *passwd);
+
+#endif
index 1b5c5cd..f925e2b 100644 (file)
@@ -1 +1,7 @@
+#ifndef _RPC_RPC_H
 #include <sunrpc/rpc/rpc.h>
+
+/* Now define the internal interfaces.  */
+extern unsigned long _create_xid (void);
+
+#endif
index 3c63730..48fc533 100644 (file)
@@ -1 +1,10 @@
+#ifndef _RPC_MSG_H
 #include <sunrpc/rpc/rpc_msg.h>
+
+/* Now define the internal interfaces.  */
+
+extern bool_t xdr_rejected_reply (XDR *xdrs, struct rejected_reply *rr);
+extern bool_t xdr_accepted_reply (XDR *xdrs, struct accepted_reply *ar);
+
+
+#endif
index 68aa67b..bf948d5 100644 (file)
@@ -1 +1,14 @@
+#ifndef _RPC_SVC_H
 #include <sunrpc/rpc/svc.h>
+
+/* Now define the internal interfaces.  */
+extern int registerrpc (u_long prognum, u_long versnum, u_long procnum,
+                       char *(*progname) (char *), xdrproc_t inproc,
+                       xdrproc_t outproc);
+
+extern SVCXPRT *svcfd_create (int fd, u_int sendsize, u_int recvsize);
+
+extern int svcudp_enablecache (SVCXPRT *transp, u_long size);
+extern SVCXPRT *svcunixfd_create (int fd, u_int sendsize, u_int recvsize);
+
+#endif
index e2c2263..9d2462b 100644 (file)
@@ -1 +1,12 @@
+#ifndef _RPC_SVC_AUTH_H
 #include <sunrpc/rpc/svc_auth.h>
+
+/* Now define the internal interfaces.  */
+extern enum auth_stat _svcauth_unix (struct svc_req *rqst,
+                                    struct rpc_msg *msg);
+extern enum auth_stat _svcauth_short (struct svc_req *rqst,
+                                     struct rpc_msg *msg);
+
+
+
+#endif
index f47650a..4aa05a1 100644 (file)
@@ -41,6 +41,7 @@
 #include <unistd.h>
 #include <string.h>
 #include <rpc/rpc.h>
+#include <rpc/svc.h>
 #include <sys/socket.h>
 #include <sys/uio.h>
 #include <sys/poll.h>