include-afsconfig-before-param-h-20010712
[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 main(int argc, char **argv)
25 {
26     int port = 0;
27     char *afsMount = 0;
28     char *confDir = 0;
29     char *cacheBaseDir = 0;
30     long cacheBlocks = 0;
31     long cacheFiles = 0;
32     long cacheStatEntries = 0;
33     long dCacheSize = 0;
34     long vCacheSize = 0;
35     long chunkSize = 0;
36     long closeSynch = 0;
37     long debug = 0;
38     long nDaemons = 0;
39     long memCache = 0;
40     char *logFile = 0;
41
42     /*
43      * Initialize the AFS client
44      */
45     uafs_SetRxPort(port);
46
47     uafs_Init("linktest", afsMount, confDir, cacheBaseDir, cacheBlocks,
48               cacheFiles, cacheStatEntries, dCacheSize, vCacheSize,
49               chunkSize, closeSynch, debug, nDaemons,
50               memCache, logFile);
51
52     uafs_RxServerProc();
53
54     uafs_Shutdown();
55
56     return 0;
57 }