darwin-head-build-fixes-20020821
[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("$Header$");
19
20 #include <sys/types.h>
21 #include <rx/rx.h>
22 #include <afs/afs_usrops.h>
23
24 void uafs_Shutdown(void);
25
26 int main(int argc, char **argv)
27 {
28     int port = 0;
29     char *afsMount = 0;
30     char *confDir = 0;
31     char *cacheBaseDir = 0;
32     long cacheBlocks = 0;
33     long cacheFiles = 0;
34     long cacheStatEntries = 0;
35     long dCacheSize = 0;
36     long vCacheSize = 0;
37     long chunkSize = 0;
38     long closeSynch = 0;
39     long debug = 0;
40     long nDaemons = 0;
41     long memCache = 0;
42     char *logFile = 0;
43
44     /*
45      * Initialize the AFS client
46      */
47     uafs_SetRxPort(port);
48
49     uafs_Init("linktest", afsMount, confDir, cacheBaseDir, cacheBlocks,
50               cacheFiles, cacheStatEntries, dCacheSize, vCacheSize,
51               chunkSize, closeSynch, debug, nDaemons,
52               memCache, logFile);
53
54     uafs_RxServerProc();
55
56     uafs_Shutdown();
57
58     return 0;
59 }