cdiff.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <ctype.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <limits.h>
#include <stdio.h>

Include dependency graph for cdiff.c:

Go to the source code of this file.

Defines

#define PATCHLEVEL   2
#define Nullfp   (FILE*)0
#define Nullch   (char*)0
#define ENOUGH   (NAME_MAX + PATH_MAX + 1)
#define CRC_END   12

Functions

 _PROTOTYPE (int main,(int argc, char **argv))
 _PROTOTYPE (void dumphunk,(void))
 _PROTOTYPE (char *getold,(int targ))
 _PROTOTYPE (void *xmalloc,(size_t size))
 _PROTOTYPE (void *xrealloc,(void *ptr, size_t size))
int main (int argc, char **argv)
void dumphunk ()
char * getold (int targ)
char * getnew (int targ)
void * xmalloc (size_t size)
void * xrealloc (void *ptr, size_t size)

Variables

char buff [512]
FILEinputfp
FILEoldfp
FILEnewfp
int oldmin
int oldmax
int newmin
int newmax
int oldbeg
int oldend
int newbeg
int newend
int preoldmax
int prenewmax
int preoldbeg
int preoldend
int prenewbeg
int prenewend
int oldwanted
int newwanted
char * oldhunk
char * newhunk
char * progname
size_t oldsize
size_t oldalloc
size_t newsize
size_t newalloc


Define Documentation

#define CRC_END   12
 

Definition at line 46 of file cdiff.c.

#define ENOUGH   (NAME_MAX + PATH_MAX + 1)
 

Definition at line 45 of file cdiff.c.

Referenced by inflateCopy(), and main().

#define Nullch   (char*)0
 

Definition at line 44 of file cdiff.c.

#define Nullfp   (FILE*)0
 

Definition at line 43 of file cdiff.c.

#define PATCHLEVEL   2
 

Definition at line 8 of file cdiff.c.


Function Documentation

_PROTOTYPE void *  xrealloc,
(void *ptr, size_t size) 
 

_PROTOTYPE void *  xmalloc,
(size_t size) 
 

_PROTOTYPE char *  getold,
(int targ) 
 

_PROTOTYPE void  dumphunk,
(void) 
 

_PROTOTYPE int  main,
(int argc, char **argv) 
 

void dumphunk  ) 
 

Definition at line 259 of file cdiff.c.

References getold(), i, preoldend, and preoldmax.

Referenced by cdiff().

char* getnew int  targ  ) 
 

Definition at line 330 of file cdiff.c.

References fgets(), newfp, newline, and Nullch.

Referenced by cdiff().

char* getold int  targ  ) 
 

Definition at line 318 of file cdiff.c.

References fgets(), Nullch, oldfp, and oldline.

Referenced by cdiff(), and dumphunk().

int main int  argc,
char **  argv
 

Definition at line 48 of file cdiff.c.

References atoi, context, ENOUGH, i, newalloc, newhunk, oldalloc, oldhunk, progname, s, status, and xmalloc().

void* xmalloc size_t  size  ) 
 

Definition at line 342 of file cdiff.c.

References exit(), fprintf(), malloc(), NULL, progname, ptr, and stderr.

Referenced by add_v(), cdiff(), main(), new_edge(), new_line(), and pushname().

void* xrealloc void *  ptr,
size_t  size
 

Definition at line 355 of file cdiff.c.

References exit(), fprintf(), NULL, progname, realloc(), and stderr.

Referenced by cdiff().


Variable Documentation

char buff[512]
 

Definition at line 22 of file cdiff.c.

Referenced by bakcopy(), DOdata(), DOgetreply(), dump_registers(), dump_stack(), get_pty(), insert_char(), main(), openpty(), read_symbol(), sayhello(), settty(), syslog(), TalkInit(), test19f(), and TTYinfo().

FILE* inputfp
 

Definition at line 24 of file cdiff.c.

Referenced by cdiff().

size_t newalloc
 

Definition at line 34 of file cdiff.c.

Referenced by main().

int newbeg
 

Definition at line 27 of file cdiff.c.

int newend
 

Definition at line 27 of file cdiff.c.

FILE * newfp
 

Definition at line 24 of file cdiff.c.

Referenced by cdiff(), getnew(), and main().

char * newhunk
 

Definition at line 32 of file cdiff.c.

Referenced by main().

int newmax
 

Definition at line 26 of file cdiff.c.

Referenced by pack_vector().

int newmin
 

Definition at line 26 of file cdiff.c.

size_t newsize
 

Definition at line 34 of file cdiff.c.

Referenced by sbrk(), and writeit().

int newwanted
 

Definition at line 30 of file cdiff.c.

size_t oldalloc
 

Definition at line 34 of file cdiff.c.

Referenced by main().

int oldbeg
 

Definition at line 27 of file cdiff.c.

int oldend
 

Definition at line 27 of file cdiff.c.

Referenced by bothcases(), mcadd(), and nonnewline().

FILE * oldfp
 

Definition at line 24 of file cdiff.c.

Referenced by cdiff(), and getold().

char* oldhunk
 

Definition at line 32 of file cdiff.c.

Referenced by main().

int oldmax
 

Definition at line 26 of file cdiff.c.

int oldmin
 

Definition at line 26 of file cdiff.c.

size_t oldsize
 

Definition at line 34 of file cdiff.c.

Referenced by realloc(), and sbrk().

int oldwanted
 

Definition at line 30 of file cdiff.c.

int prenewbeg
 

Definition at line 29 of file cdiff.c.

int prenewend
 

Definition at line 29 of file cdiff.c.

int prenewmax
 

Definition at line 28 of file cdiff.c.

int preoldbeg
 

Definition at line 29 of file cdiff.c.

int preoldend
 

Definition at line 29 of file cdiff.c.

Referenced by dumphunk().

int preoldmax
 

Definition at line 28 of file cdiff.c.

Referenced by dumphunk().

char* progname
 

Definition at line 33 of file cdiff.c.


Generated on Fri Apr 14 23:06:14 2006 for minix by  doxygen 1.4.6