2 * Copyright 2000, International Business Machines Corporation and others.
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
10 #include <afsconfig.h>
11 #include <afs/param.h>
24 #include <afs/afs_args.h>
26 #include "AFS_component_version_number.c"
29 main(int argc
, char **argv
)
36 memset(&parms
, 0, sizeof(parms
));
39 printf("use: vsys <call number> <parms>\n");
44 for (i
= 1; i
< argc
; i
++) {
45 if (numberFlag
&& argv
[i
][0] == '-') {
46 if (strcmp(argv
[i
], "-s") == 0)
49 printf("bad switch %s\n", argv
[i
]);
52 } else if (numberFlag
) {
53 parms
[counter
++] = atoi(argv
[i
]);
56 parms
[counter
++] = (intptr_t)argv
[i
];
62 syscall(AFS_SYSCALL
, parms
[0], parms
[1], parms
[2], parms
[3], parms
[4],
67 printf("code %d\n", code
);