/* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. * * This software has been released under the terms of the IBM Public * License. For details, see the LICENSE file in the top-level source * directory or online at http://www.openafs.org/dl/license10.html */ #include #include #include #include #include #include #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_STDINT_H # include #endif #include #include "AFS_component_version_number.c" int main(int argc, char **argv) { afs_int32 code; int i, counter; afs_int32 parms[6]; int numberFlag; if (argc < 2) { printf("use: vsys \n"); exit(1); } numberFlag = 1; counter = 0; for (i = 1; i < argc; i++) { if (numberFlag && argv[i][0] == '-') { if (strcmp(argv[i], "-s") == 0) numberFlag = 0; else { printf("bad switch %s\n", argv[i]); exit(1); } } else if (numberFlag) { parms[counter++] = atoi(argv[i]); numberFlag = 1; } else { parms[counter++] = (intptr_t)argv[i]; numberFlag = 1; } } code = syscall(AFS_SYSCALL, parms[0], parms[1], parms[2], parms[3], parms[4], parms[5]); printf("code %d\n", code); return 0; }