Import Upstream version 1.8.5
[hcoop/debian/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
19 #include <sys/socket.h>
20 #include <sys/stat.h>
21 #include <sys/types.h>
22
23 #include <netinet/in.h>
24 #include <afs/sysincludes.h>
25 #include <rx/rx.h>
26 #include <afs_usrops.h>
27
28 int
29 main(int argc, char **argv)
30 {
31 int port = 0;
32 /*
33 * Initialize the AFS client
34 */
35 uafs_SetRxPort(port);
36
37 uafs_Setup(NULL);
38 uafs_ParseArgs(0, NULL);
39 uafs_Run();
40
41 uafs_RxServerProc();
42
43 uafs_Shutdown();
44
45 return 0;
46 }