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>
21 #include <afs/afs_args.h>
23 #include "AFS_component_version_number.c"
26 main(int argc, char **argv)
34 printf("use: vsys <call number> <parms>\n");
39 for (i = 1; i < argc; i++) {
40 if (numberFlag && argv[i][0] == '-') {
41 if (strcmp(argv[i], "-s") == 0)
44 printf("bad switch %s\n", argv[i]);
47 } else if (numberFlag) {
48 parms[counter++] = atoi(argv[i]);
51 parms[counter++] = (intptr_t)argv[i];
56 syscall(AFS_SYSCALL, parms[0], parms[1], parms[2], parms[3], parms[4],
58 printf("code %d\n", code);