uud.c File Reference

#include <sys/types.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <stdio.h>

Include dependency graph for uud.c:

Go to the source code of this file.

Defines

#define UNIX   1
#define SYSNAME   "unix"
#define Error(n)   exit(n)
#define WRITE   "w"
#define loop   while (1)
#define NCHARS   256
#define LINELEN   256
#define FILELEN   64
#define NORMLEN   60
#define SEQMAX   'z'
#define SEQMIN   'a'

Functions

 _PROTOTYPE (int main,(int argc, char **argv))
 _PROTOTYPE (char *getnword,(char *str, int n))
 _PROTOTYPE (void gettable,(void))
 _PROTOTYPE (void getfile,(char *buf))
 _PROTOTYPE (void format,(char *fp,...))
 _PROTOTYPE (void doprnt,(char *fp, char *ap))
 _PROTOTYPE (void puti,(unsigned int i, unsigned int r))
 _PROTOTYPE (void outc,(int c))
int main (int argc, argv)
char * getnword (char *str, int n)
void gettable ()
void decode ()
void getfile (char *buf)
void format (char *fp, args)
void doprnt (char *fp, char *ap)
void puti (unsigned int i, unsigned int r)
void outc (char c)

Variables

char seqc
int first
int secnd
int check
int numl
FILEin
FILEout
char * pos
char ifname [FILELEN]
char ofname [FILELEN]
char * source = NULL
char * target = NULL
char blank
char part = '\0'
int partn
int lens
int debug = 0
int nochk = 0
int onedone = 0
int chtbl [NCHARS]
int cdlen [NORMLEN+3]


Define Documentation

#define Error n   )     exit(n)
 

Definition at line 41 of file uud.c.

Referenced by check_mallinks(), check_ml_last(), check_work_empty(), decode(), Delmacro(), Delnum(), Delstr(), Field(), Find_Inode(), Findchar(), Findmacro(), Findnum(), Findstr(), getfile(), gettable(), Macro(), main(), Newstr(), nr_ds(), nr_it(), nr_rm(), nr_rn(), nr_rr(), nr_tr(), nr_Ub(), nr_Uc(), nr_Ur(), Nreq(), Print_Number(), Process(), Read_Disk(), Read_Super_Block(), Recover_Blocks(), rl_check_ints(), Search(), Setroman(), Str2word(), and Write_Word().

#define FILELEN   64
 

Definition at line 53 of file uud.c.

Referenced by main().

#define LINELEN   256
 

Definition at line 52 of file uud.c.

#define loop   while (1)
 

Definition at line 49 of file uud.c.

Referenced by blank(), copy_action(), copy_text(), copy_union(), decode(), el3_interrupt(), find_command(), getfile(), main(), parse(), readtoken1(), and yylex().

#define NCHARS   256
 

Definition at line 51 of file uud.c.

Referenced by gettable(), and main().

#define NORMLEN   60
 

Definition at line 54 of file uud.c.

Referenced by main().

#define SEQMAX   'z'
 

Definition at line 56 of file uud.c.

Referenced by encode().

#define SEQMIN   'a'
 

Definition at line 57 of file uud.c.

Referenced by encode().

#define SYSNAME   "unix"
 

Definition at line 26 of file uud.c.

#define UNIX   1
 

Definition at line 15 of file uud.c.

#define WRITE   "w"
 

Definition at line 44 of file uud.c.


Function Documentation

_PROTOTYPE void  outc,
(int c
 

_PROTOTYPE void  puti,
(unsigned int i, unsigned int r
 

_PROTOTYPE void  doprnt,
(char *fp, char *ap) 
 

_PROTOTYPE void  format,
(char *fp,...) 
 

_PROTOTYPE void  getfile,
(char *buf
 

_PROTOTYPE void  gettable,
(void) 
 

_PROTOTYPE char *  getnword,
(char *str, int n
 

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

void decode  ) 
 

Definition at line 279 of file uud.c.

References blank, bp, c, cdlen, chtbl, debug, Error, fclose(), fgets(), format, getfile(), ifname, in, LINELEN, loop, n, NULL, numl, out, outl(), strlen(), and strncmp().

void doprnt char *  fp,
char *  ap
 

Definition at line 500 of file uud.c.

References c, k, outc, puti(), and s.

void format char *  fp,
args 
 

Definition at line 494 of file uud.c.

References doprnt().

void getfile char *  buf  ) 
 

Definition at line 414 of file uud.c.

References access, debug, Error, fgets(), format, freopen(), getnword(), gettable(), ifname, in, lens, LINELEN, loop, NULL, numl, part, partn, pos, source, strcat(), strcpy(), strlen(), and strncmp().

Referenced by decode().

char* getnword char *  str,
int  n
 

Definition at line 222 of file uud.c.

References NULL.

Referenced by getfile().

void gettable  ) 
 

Definition at line 238 of file uud.c.

References c, chtbl, Error, fgets(), format, in, LINELEN, n, NCHARS, and NULL.

int main int  argc,
argv 
 

Definition at line 80 of file uud.c.

References blank, cdlen, chtbl, debug, Error, exit(), fgets(), FILELEN, fopen(), format, gettable(), i, ifname, in, j, LINELEN, loop, NCHARS, nochk, NORMLEN, NULL, numl, onedone, partn, source, stdin, strcat(), strcpy(), strncmp(), and target.

void outc char  c  ) 
 

Definition at line 554 of file uud.c.

References putchar.

void puti unsigned int  i,
unsigned int  r
 

Definition at line 540 of file uud.c.

References outc, puti(), and s.


Variable Documentation

char blank
 

Definition at line 65 of file uud.c.

Referenced by decode(), expand(), main(), scroll(), wclrtobot(), wclrtoeol(), wdeleteln(), werase(), and winsertln().

int cdlen[NORMLEN+3]
 

Definition at line 68 of file uud.c.

Referenced by decode(), and main().

int check
 

Definition at line 59 of file uud.c.

int chtbl[NCHARS]
 

Definition at line 68 of file uud.c.

Referenced by decode(), gettable(), and main().

int debug = 0
 

Definition at line 67 of file uud.c.

int first
 

Definition at line 59 of file uud.c.

Referenced by apply(), change_partition(), copylink(), cut(), decode(), del(), dodash(), dp_recv(), fatFreeWithDir(), getStart(), gunpipe(), init(), ip_print_frags(), last_sunday(), list(), listdir(), lock_op(), main(), next_head(), ns_recv(), OpenFileByDirentry(), p_bre(), p_ere(), parse_range(), printFat(), process(), re_compile(), record_irq(), searchwhatis(), sink(), and wnoutrefresh().

char ifname[FILELEN]
 

Definition at line 63 of file uud.c.

FILE* in
 

Definition at line 61 of file uud.c.

Referenced by gzifstream::attach(), gzfilebuf::attach(), bclose(), bget4(), bload(), bopen(), bskip(), build_index(), decode(), def(), expbackq(), extract(), filbuf(), file_compress(), getfile(), gettable(), getzrxinit(), gzcopy(), gzhead(), gzheader(), gztack(), inf(), inflate(), inflate_fast(), inflateSync(), main(), gzifstream::open(), gzfilebuf::open(), gzfilebuf::open_mode(), output_stored_text(), output_trailing_text(), partcompress(), read4(), readin(), readmore(), recomp(), rijndael_cbc_decrypt(), rijndael_cbc_encrypt(), rijndael_ecb_decrypt(), rijndael_ecb_encrypt(), gzfilebuf::showmanyc(), skip(), terminate(), transform(), gzfilebuf::underflow(), unicode_read(), wcs(), wctxpn(), zfilbuf(), zpull(), zsendfdata(), and zsendfile().

int lens
 

Definition at line 66 of file uud.c.

Referenced by codes(), and getfile().

int nochk = 0
 

Definition at line 67 of file uud.c.

Referenced by main().

int numl
 

Definition at line 59 of file uud.c.

Referenced by address(), decode(), getfile(), and main().

char ofname[FILELEN]
 

Definition at line 63 of file uud.c.

int onedone = 0
 

Definition at line 67 of file uud.c.

Referenced by main().

FILE * out
 

Definition at line 61 of file uud.c.

Referenced by appnd_start(), gzofstream::attach(), gzfilebuf::attach(), bcpio_wr(), cpio_wr(), decode(), def(), display(), draw(), evalcase(), evalfor(), evaltree(), extract(), file_uncompress(), gen_init(), getoptscmd(), gz_uncompress(), gzcopy(), gzinit(), gztack(), inf(), inflate(), inflate_fast(), inflateSync(), lrstr(), main(), gzofstream::open(), gzfilebuf::open(), gzfilebuf::open_mode(), openhere(), output_semantic_actions(), output_stored_text(), output_trailing_text(), gzfilebuf::overflow(), put4(), re_compile(), readtoken1(), recomp(), rijndael_cbc_decrypt(), rijndael_cbc_encrypt(), rijndael_ecb_decrypt(), rijndael_ecb_encrypt(), tar_wr(), transform(), unicode_write(), ustar_wr(), and vcpio_wr().

char part = '\0'
 

Definition at line 65 of file uud.c.

Referenced by encode(), getfile(), main(), makename(), and sanitycheck_failed().

int partn
 

Definition at line 66 of file uud.c.

Referenced by getfile(), and main().

char* pos
 

Definition at line 62 of file uud.c.

int secnd
 

Definition at line 59 of file uud.c.

char seqc
 

Definition at line 58 of file uud.c.

Referenced by encode().

char* source = NULL
 

Definition at line 64 of file uud.c.

char * target = NULL
 

Definition at line 64 of file uud.c.

Referenced by chksymlinkzone(), dump_line(), main(), mcopy(), mpBuildUnixFilename(), and regerror().


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