Use afsd code in libuafs
[openafs.git] / src / libuafs / linktest.c
index 85c56d4..c9e83c2 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
-RCSID("$Header$");
 
+#include <sys/socket.h>
+#include <sys/stat.h>
 #include <sys/types.h>
-#include <rx/rx.h>
-#include <afs/afs_usrops.h>
 
-void uafs_Shutdown(void);
+#include <netinet/in.h>
+#include <afs/sysincludes.h>
+#include <rx/rx.h>
+#include <afs_usrops.h>
 
-int main(int argc, char **argv)
+int
+main(int argc, char **argv)
 {
     int port = 0;
-    char *afsMount = 0;
-    char *confDir = 0;
-    char *cacheBaseDir = 0;
-    long cacheBlocks = 0;
-    long cacheFiles = 0;
-    long cacheStatEntries = 0;
-    long dCacheSize = 0;
-    long vCacheSize = 0;
-    long chunkSize = 0;
-    long closeSynch = 0;
-    long debug = 0;
-    long nDaemons = 0;
-    long memCache = 0;
-    char *logFile = 0;
-
     /*
      * Initialize the AFS client
      */
     uafs_SetRxPort(port);
 
-    uafs_Init("linktest", afsMount, confDir, cacheBaseDir, cacheBlocks,
-             cacheFiles, cacheStatEntries, dCacheSize, vCacheSize,
-             chunkSize, closeSynch, debug, nDaemons,
-             memCache, logFile);
+    uafs_Setup(NULL);
+    uafs_ParseArgs(0, NULL);
+    uafs_Run();
 
     uafs_RxServerProc();