UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
grep.c File Reference
#include "types.h"
#include "stat.h"
#include "user.h"

Go to the source code of this file.

Functions

int match (char *, char *)
 
void grep (char *pattern, int fd)
 
int main (int argc, char *argv[])
 
int matchhere (char *, char *)
 
int matchstar (int, char *, char *)
 

Variables

char buf [1024]
 

Function Documentation

void grep ( char *  pattern,
int  fd 
)

Definition at line 11 of file grep.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 39 of file grep.c.

int match ( char *  re,
char *  text 
)

Definition at line 73 of file grep.c.

int matchhere ( char *  re,
char *  text 
)

Definition at line 85 of file grep.c.

int matchstar ( int  c,
char *  re,
char *  text 
)

Definition at line 99 of file grep.c.

Variable Documentation

char buf[1024]

Definition at line 7 of file grep.c.