Category : OS/2 Files
Archive   : GNUGREP.ZIP
Filename : FGREP.PAT

 
Output of file : FGREP.PAT contained in archive : GNUGREP.ZIP
diff -cbr orig/fgrep/fgrep.c new/fgrep/fgrep.c
*** orig/fgrep/fgrep.c Thu Jun 18 15:41:09 1992
--- new/fgrep/fgrep.c Thu Jun 18 15:26:24 1992
***************
*** 444,456 ****

static const char version[] = "GNU fgrep, version 1.1";

- #define USAGE \
- "usage: %s [-[[AB] ]] [-[CVchilnsvwx]] [-[ef]] []\n"
-
static void
usage()
{
! fprintf(stderr, USAGE, prog);
exit(2);
}

--- 444,473 ----

static const char version[] = "GNU fgrep, version 1.1";

static void
usage()
{
! printf("\n%s\n", version);
! printf("\nUsage: %s [-[[AB]]] [-[CVchilnsvwx]] [-[ef]] []\n", prog);
!
! printf("\n -A print lines of context after every matching line"
! "\n -B print lines of context before every matching line"
! "\n -C print 2 lines of context on each side of every match"
! "\n - print lines of context on each side"
! "\n -V print the version number on stderr");
! printf("\n -b print every match preceded by its byte offset"
! "\n -c print a total count of matching lines only"
! "\n -e search for ; useful if begins with -"
! "\n -f take from the given "
! "\n -h don't display filenames on matches");
! printf("\n -i ignore case difference when comparing strings"
! "\n -l list files containing matches only"
! "\n -n print each match preceded by its line number"
! "\n -s run silently producing no output except error messages"
! "\n -v print only lines that contain no matches for the "
! "\n -w print only lines where the match is a complete word"
! "\n -x print only lines where the match is a whole line\n");
!
exit(2);
}

***************
*** 462,467 ****
--- 479,489 ----
int count_matches, no_filenames, list_files;
int opt, cc, desc, count, status;
FILE *fp;
+
+ #ifdef __EMX__
+ _wildcard(&argc, &argv);
+ setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
+ #endif

prog = argv[0];
if (prog && strrchr(prog, '/'))
diff -cbr orig/fgrep/std.h new/fgrep/std.h
*** orig/fgrep/std.h Thu Jun 18 15:41:10 1992
--- new/fgrep/std.h Sun Jan 19 20:06:17 1992
***************
*** 88,94 ****
#endif

/* Declaring this here should be safe. Some losing 's don't. */
! extern int errno;

/* Adapt variable arguments to new implementations (with )
or old (which are assumed to have ). */
--- 88,94 ----
#endif

/* Declaring this here should be safe. Some losing 's don't. */
! /* extern int errno; */

/* Adapt variable arguments to new implementations (with )
or old (which are assumed to have ). */
diff -cbr orig/fgrep/unix.h new/fgrep/unix.h
*** orig/fgrep/unix.h Thu Jun 18 15:41:10 1992
--- new/fgrep/unix.h Thu Jun 18 15:23:19 1992
***************
*** 50,56 ****
extern void EXFUN(pause, (void));
extern int EXFUN(pipe, (int *));
extern int EXFUN(read, (int, char *, size_t));
! extern int EXFUN(stat, (const char *, struct stat *));
extern int EXFUN(fstat, (int, struct stat *));
extern int EXFUN(umask, (int));
extern int EXFUN(unlink, (const char *));
--- 50,56 ----
extern void EXFUN(pause, (void));
extern int EXFUN(pipe, (int *));
extern int EXFUN(read, (int, char *, size_t));
! /* extern int EXFUN(stat, (char *, struct stat *)); */
extern int EXFUN(fstat, (int, struct stat *));
extern int EXFUN(umask, (int));
extern int EXFUN(unlink, (const char *));



  3 Responses to “Category : OS/2 Files
Archive   : GNUGREP.ZIP
Filename : FGREP.PAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/