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>
15 #include <afs/afs_args.h>
17 #include "AFS_component_version_number.c"
27 if (argc < 2) {printf("use: vsys <call number> <parms>\n"); exit(1); }
31 if (numberFlag && argv[i][0] == '-') {
32 if (strcmp(argv[i], "-s")==0) numberFlag = 0;
34 printf("bad switch %s\n", argv[i]);
38 else if (numberFlag) {
39 parms[counter++] = atoi(argv[i]);
43 parms[counter++] = (afs_int32) argv[i];
47 code = syscall(AFS_SYSCALL, parms[0], parms[1], parms[2], parms[3], parms[4], parms[5]);
48 printf("code %d\n", code);