more-uafs-support-20040417
[openafs.git] / src / libuafs / linktest.c
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11  * This program is NOT intended ever to be run.  Its sole purpose is to
12  * test whether a program can link with libuafs.a.
13  */
14
15 #include <afsconfig.h>
16 #include <afs/param.h>
17
18 RCSID
19     ("$Header$");
20
21 #include <sys/socket.h>
22 #include <sys/stat.h>
23 #include <sys/types.h>
24
25 #include <netinet/in.h>
26 #include <afs/sysincludes.h>
27 #include <rx/rx.h>
28 #include <afs_usrops.h>
29
30 void uafs_Shutdown(void);
31
32 int
33 main(int argc, char **argv)
34 {
35     int port = 0;
36     char *afsMount = 0;
37     char *confDir = 0;
38     char *cacheBaseDir = 0;
39     long cacheBlocks = 0;
40     long cacheFiles = 0;
41     long cacheStatEntries = 0;
42     long dCacheSize = 0;
43     long vCacheSize = 0;
44     long chunkSize = 0;
45     long closeSynch = 0;
46     long debug = 0;
47     long nDaemons = 0;
48     long memCache = 0;
49     char *logFile = 0;
50
51     /*
52      * Initialize the AFS client
53      */
54     uafs_SetRxPort(port);
55
56     uafs_Init("linktest", afsMount, confDir, cacheBaseDir, cacheBlocks,
57               cacheFiles, cacheStatEntries, dCacheSize, vCacheSize, chunkSize,
58               closeSynch, debug, nDaemons, memCache, logFile);
59
60     uafs_RxServerProc();
61
62     uafs_Shutdown();
63
64     return 0;
65 }