xpainfo.c | xpainfo.c | |||
---|---|---|---|---|
skipping to change at line 30 | skipping to change at line 30 | |||
fprintf(stderr, " %s [-h] [-i nsinet] [-m method] [-n] [-s] [-t sval,l val] [-u users] <tmpl|host:port> [paramlist]\n", s); | fprintf(stderr, " %s [-h] [-i nsinet] [-m method] [-n] [-s] [-t sval,l val] [-u users] <tmpl|host:port> [paramlist]\n", s); | |||
fprintf(stderr, "\n"); | fprintf(stderr, "\n"); | |||
fprintf(stderr, "switches:\n"); | fprintf(stderr, "switches:\n"); | |||
fprintf(stderr, "\t-h\tprint this message\n"); | fprintf(stderr, "\t-h\tprint this message\n"); | |||
fprintf(stderr, "\t-i \toverride XPA_NSINET environment variable\n"); | fprintf(stderr, "\t-i \toverride XPA_NSINET environment variable\n"); | |||
fprintf(stderr, "\t-m\toverride XPA_METHOD environment variable\n"); | fprintf(stderr, "\t-m\toverride XPA_METHOD environment variable\n"); | |||
fprintf(stderr, "\t-n\tdon't wait for ack from server\n"); | fprintf(stderr, "\t-n\tdon't wait for ack from server\n"); | |||
fprintf(stderr, "\t-s\tserver mode\n"); | fprintf(stderr, "\t-s\tserver mode\n"); | |||
fprintf(stderr, "\t-t \toverride XPA_[SHORT,LONG]_TIMEOUT environment v ariables\n"); | fprintf(stderr, "\t-t \toverride XPA_[SHORT,LONG]_TIMEOUT environment v ariables\n"); | |||
fprintf(stderr, "\t-u \toverride XPA_NSUSERS environment variable\n"); | fprintf(stderr, "\t-u \toverride XPA_NSUSERS environment variable\n"); | |||
fprintf(stderr, "\t--version display version and exit\n"); | ||||
fprintf(stderr, "\n"); | fprintf(stderr, "\n"); | |||
fprintf(stderr, "Info will be sent to access points matching the templa te or host:port.\n"); | fprintf(stderr, "Info will be sent to access points matching the templa te or host:port.\n"); | |||
fprintf(stderr, "Templates are of the form [class:]name. Wildcards *,?, [] are accepted.\n"); | fprintf(stderr, "Templates are of the form [class:]name. Wildcards *,?, [] are accepted.\n"); | |||
fprintf(stderr, "A set of qualifying parameters can be appended.\n"); | fprintf(stderr, "A set of qualifying parameters can be appended.\n"); | |||
fprintf(stderr, "\n"); | fprintf(stderr, "\n"); | |||
fprintf(stderr, "examples:\n"); | fprintf(stderr, "examples:\n"); | |||
fprintf(stderr, "\tcsh> xpainfo IMAGE ds9 image\n"); | fprintf(stderr, "\tcsh> xpainfo IMAGE ds9 image\n"); | |||
fprintf(stderr, "\n"); | fprintf(stderr, "\n(version: %s)\n", XPA_VERSION); | |||
exit(1); | exit(1); | |||
} | } | |||
#ifdef ANSI_FUNC | #ifdef ANSI_FUNC | |||
int | int | |||
main (int argc, char **argv) | main (int argc, char **argv) | |||
#else | #else | |||
int | int | |||
main(argc, argv) | main(argc, argv) | |||
int argc; | int argc; | |||
skipping to change at line 69 | skipping to change at line 70 | |||
char *xtemplate=NULL; | char *xtemplate=NULL; | |||
char lbuf[SZ_LINE]; | char lbuf[SZ_LINE]; | |||
char tbuf[SZ_LINE]; | char tbuf[SZ_LINE]; | |||
char mode[SZ_LINE]; | char mode[SZ_LINE]; | |||
char cmd[SZ_LINE]; | char cmd[SZ_LINE]; | |||
char *s; | char *s; | |||
char **errs=NULL; | char **errs=NULL; | |||
char **names=NULL; | char **names=NULL; | |||
XPA xpa=NULL; | XPA xpa=NULL; | |||
/* display version and exit, if necessary */ | ||||
if( (argc == 2) && !strcmp(argv[1], "--version") ){ | ||||
fprintf(stderr, "%s\n", XPA_VERSION); | ||||
exit(0); | ||||
} | ||||
/* make sure we have enough arguments */ | /* make sure we have enough arguments */ | |||
if( argc < 2 ) | if( argc < 2 ) | |||
usage(argv[0]); | usage(argv[0]); | |||
/* start with no mode flag */ | /* start with no mode flag */ | |||
*mode = '\0'; | *mode = '\0'; | |||
/* we want the args in the same order in which they arrived, and | /* we want the args in the same order in which they arrived, and | |||
gnu getopt sometimes changes things without this */ | gnu getopt sometimes changes things without this */ | |||
putenv("POSIXLY_CORRECT=true"); | putenv("POSIXLY_CORRECT=true"); | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 8 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |