#include <afsconfig.h>
#include <afs/param.h>
-RCSID
- ("$Header$");
#include <sys/types.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <signal.h>
#include <string.h>
+#include <stdarg.h>
/*#include <afs/cellconfig.h>*/
#include "rmtsys.h"
-
-extern RMTSYS_ExecuteRequest();
+#include "sys_prototypes.h"
#define NFS_EXPORTER 1 /* To probably handle more later */
#define PSETPAG 110 /* Also defined in afs/afs_pioctl.c */
/* Main routine of the remote AFS system call server. The calling process will
* never return; this is currently called from afsd (when "-rmtsys" is passed
* as a parameter) */
-rmtsysd()
+void
+rmtsysd(void)
{
/* void catchsig(int); */
struct rx_securityClass *(securityObjects[N_SECURITY_OBJECTS]);
rx_NewService(0, RMTSYS_SERVICEID, AFSCONF_RMTSYSSERVICE,
securityObjects, N_SECURITY_OBJECTS,
RMTSYS_ExecuteRequest);
- if (service == (struct rx_service *)0)
+ if (service == NULL)
rmt_Quit("rx_NewService");
/* One may wish to tune some default RX params for better performance
* at some point... */
* here we also get back the new pag value; we need this so that the caller
* can add it to its group list via setgroups() */
afs_int32
-SRMTSYS_SetPag(call, creds, newpag, errornumber)
- struct rx_call *call;
- clientcred *creds;
- afs_int32 *newpag, *errornumber;
+SRMTSYS_SetPag(struct rx_call *call, clientcred *creds, afs_int32 *newpag,
+ afs_int32 *errornumber)
{
afs_uint32 blob[PIOCTL_HEADER];
struct ViceIoctl data;
/* Implements the remote pioctl(2) call */
afs_int32
-SRMTSYS_Pioctl(call, creds, path, cmd, follow, InData, OutData, errornumber)
- struct rx_call *call;
- clientcred *creds;
- afs_int32 cmd, follow, *errornumber;
- char *path;
- rmtbulk *InData, *OutData;
+SRMTSYS_Pioctl(struct rx_call *call, clientcred *creds, char *path,
+ afs_int32 cmd, afs_int32 follow, rmtbulk *InData,
+ rmtbulk *OutData, afs_int32 *errornumber)
{
register afs_int32 error;
struct ViceIoctl data;
return (0);
}
-rmt_Quit(msg, a, b)
- char *msg;
+void
+rmt_Quit(char *msg, ...)
{
- fprintf(stderr, msg, a, b);
+ va_list ap;
+
+ va_start(ap, msg);
+ vfprintf(stderr, msg, ap);
+ va_end(ap);
exit(1);
}