xpaset.c | xpaset.c | |||
---|---|---|---|---|
skipping to change at line 32 | skipping to change at line 32 | |||
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 message after server completes\n" ); | fprintf(stderr, "\t-n\tdon't wait for message after server completes\n" ); | |||
fprintf(stderr, "\t-p\tdon't read (or send) buf data from stdin\n"); | fprintf(stderr, "\t-p\tdon't read (or send) buf data from stdin\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-v\tverify message to stdout\n"); | fprintf(stderr, "\t-v\tverify message to stdout\n"); | |||
fprintf(stderr, "\t--version display version and exit\n"); | ||||
fprintf(stderr, "\n"); | fprintf(stderr, "\n"); | |||
fprintf(stderr, "Data will be sent to access points matching the templa te or host:port.\n"); | fprintf(stderr, "Data 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> xpaset ds9 fits foo.fits < foo.fits\n"); | fprintf(stderr, "\tcsh> xpaset ds9 fits foo.fits < foo.fits\n"); | |||
fprintf(stderr, "\tcsh> echo \"stop\" | xpaset bynars:28571\n"); | fprintf(stderr, "\tcsh> echo \"stop\" | xpaset bynars:28571\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 73 | skipping to change at line 74 | |||
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; | |||
int fd; | int fd; | |||
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'; | |||
/* read from stdin */ | /* read from stdin */ | |||
fd = fileno(stdin); | fd = fileno(stdin); | |||
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/ |