#endif
#include "update.h"
#include "global.h"
+#include "update_internal.h"
char *whoami;
static int verbose;
afs_int32 atime, afs_int32 mtime);
static int RenameNewFiles(struct filestr *modFiles);
static int PathsAreEquivalent(char *path1, char *path2);
+int FetchFile(struct rx_call *, char *, char *, int);
+int IsCompatible(char *, afs_int32, afs_int32);
+int NotOnHost(char *, struct filestr *);
+int update_ReceiveFile(int, struct rx_call *, struct stat *);
afs_int32
GetServer(char *aname)
int
-osi_audit()
+osi_audit(void)
{
/* this sucks but it works for now.
*/
#include "update.h"
#include "global.h"
-extern int UPDATE_ExecuteRequest();
+extern int UPDATE_ExecuteRequest(struct rx_call *);
static int AddObject(char **expPath, char *dir);
static int PathInDirectory(char *dir, char *path);
+int update_SendFile(int, struct rx_call *, struct stat *);
+int update_SendDirInfo(char *, struct rx_call *, struct stat *,
+ char *origDir);
struct afsconf_dir *cdir;
int nDirs;
int dirLevel[MAXENTRIES];
char *whoami;
-static int Quit();
+static int Quit(char *);
int rxBind = 0;
}
int
-osi_audit()
+osi_audit(void)
{
/* this sucks but it works for now.
*/
}
static int
-Quit(msg, a, b)
- char *msg;
+Quit(char *msg)
{
- fprintf(stderr, msg, a, b);
+ fprintf(stderr, msg);
exit(1);
}
%#include <rx/rx.h>
%#include <rx/rx_null.h>
+%#include "global.h"
+%#include "update_internal.h"
%#define UPDATE_SERVICEPORT htonl(0) /* user server's port */
%#define UPDATE_SERVICEID 4
--- /dev/null
+/*
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ *
+ * This software has been released under the terms of the IBM Public
+ * License. For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
+ */
+
+#ifndef AFS_SRC_UPDATE_INTERNAL_H
+#define AFS_SRC_UPDATE_INTERNAL_H
+
+/* utils.c */
+
+extern int AddToList(struct filestr **, char *);
+extern int ZapList(struct filestr **);
+
+/* server.c */
+
+extern int UPDATE_FetchFile(struct rx_call *, char *);
+extern int UPDATE_FetchInfo(struct rx_call *, char *);
+
+#endif
+