Commit | Line | Data |
---|---|---|
805e021f CE |
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 | #include <afsconfig.h> | |
10 | #include <afs/param.h> | |
11 | ||
12 | #include <roken.h> | |
13 | ||
14 | ||
15 | #include "AFS_component_version_number.c" | |
16 | ||
17 | main(argc, argv) | |
18 | char **argv; | |
19 | { | |
20 | int inode; | |
21 | struct stat status; | |
22 | #ifdef AFS_SGI61_ENV | |
23 | int vnode, unique, datav; | |
24 | #else /* AFS_SGI61_ENV */ | |
25 | afs_int32 vnode, unique, datav; | |
26 | #endif /* AFS_SGI61_ENV */ | |
27 | ||
28 | if (stat("/vicepa", &status) == -1) { | |
29 | perror("stat"); | |
30 | exit(1); | |
31 | } | |
32 | vnode = atoi(argv[1]); | |
33 | unique = atoi(argv[2]); | |
34 | datav = atoi(argv[3]); | |
35 | inode = icreate(status.st_dev, 0, 17, vnode, unique, datav); | |
36 | if (inode == -1) { | |
37 | perror("icreate"); | |
38 | exit(1); | |
39 | } | |
40 | printf("icreate successful, inode=%d\n", inode); | |
41 | exit(0); | |
42 | } |