dd.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>

Include dependency graph for dd.c:

Go to the source code of this file.

Defines

#define EOS   '\0'
#define BOOLEAN   int
#define TRUE   1
#define FALSE   0
#define BIGNUM   2147483647
#define SWAB   0x0001
#define LCASE   0x0002
#define UCASE   0x0004
#define NOERROR   0x0008
#define SYNC   0x0010
#define SILENT   0x0020
#define BLANK   ' '
#define DEFAULT   512

Functions

 _PROTOTYPE (int main,(int argc, char **argv))
 _PROTOTYPE (BOOLEAN is,(char *pc))
 _PROTOTYPE (int num,(void))
 _PROTOTYPE (void puto,(void))
 _PROTOTYPE (int ulcase,(int c))
 _PROTOTYPE (void cnull,(int c))
 _PROTOTYPE (void over,(int dummy))
BOOLEAN is (char *pc)
int num ()
void puto ()
void statistics ()
int main (int argc, argv)
int ulcase (int c)
void cnull (int c)
void null (int c)
void extra ()
void over (int sig)

Variables

char * pch
char * errorp
unsigned cbs
unsigned bs
unsigned skip
unsigned nseek
unsigned count
int seekseen = FALSE
unsigned ibs = DEFAULT
unsigned obs = DEFAULT
unsigned files = 1
char * ifilename = NULL
char * ofilename = NULL
int convflag = 0
int flag = 0
int ifd
int ofd
int ibc
char * ibuf
char * obuf
char * op
unsigned nifull
unsigned nipartial
unsigned nofull
unsigned nopartial
int cbc
unsigned ntr
unsigned obc
int ns
char mlen [] = {64, 45, 82, 45, 83, 96, 109, 100, 109, 97, 96, 116, 108, 9}


Define Documentation

#define BIGNUM   2147483647
 

Definition at line 45 of file dd.c.

Referenced by num().

#define BLANK   ' '
 

Definition at line 85 of file dd.c.

Referenced by cmp(), and skip_fields().

#define BOOLEAN   int
 

Definition at line 15 of file dd.c.

#define DEFAULT   512
 

Definition at line 86 of file dd.c.

#define EOS   '\0'
 

Definition at line 14 of file dd.c.

#define FALSE   0
 

Definition at line 17 of file dd.c.

#define LCASE   0x0002
 

Definition at line 80 of file dd.c.

Referenced by inittty(), main(), mode(), and ulcase().

#define NOERROR   0x0008
 

Definition at line 82 of file dd.c.

Referenced by compose_reply(), DecodeError(), ListHosts(), main(), printinfo(), res_mkquery(), and res_query().

#define SILENT   0x0020
 

Definition at line 84 of file dd.c.

Referenced by main(), and statistics().

#define SWAB   0x0001
 

Definition at line 79 of file dd.c.

Referenced by main().

#define SYNC   0x0010
 

Definition at line 83 of file dd.c.

Referenced by inflateSync(), main(), and sync().

#define TRUE   1
 

Definition at line 16 of file dd.c.

#define UCASE   0x0004
 

Definition at line 81 of file dd.c.

Referenced by main(), and ulcase().


Function Documentation

_PROTOTYPE void  over,
(int dummy) 
 

_PROTOTYPE void  cnull,
(int c
 

_PROTOTYPE int  ulcase,
(int c
 

_PROTOTYPE void  puto,
(void) 
 

_PROTOTYPE int  num,
(void) 
 

_PROTOTYPE BOOLEAN  is,
(char *pc
 

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

void cnull int  c  ) 
 

Definition at line 359 of file dd.c.

References null, and ulcase().

void extra  ) 
 

Definition at line 376 of file dd.c.

References null.

Referenced by bc_divide(), compress_block(), cylinderalign(), decomp(), gen_bitlen(), inflate_table(), inflate_table9(), inflateBack9(), rijndael_cbc_decrypt(), rijndael_cbc_encrypt(), rijndael_ecb_decrypt(), rijndael_ecb_encrypt(), setviz(), and unzRepair().

BOOLEAN is char *  pc  ) 
 

Definition at line 32 of file dd.c.

References EOS, FALSE, pch, ps, and TRUE.

int main int  argc,
argv 
 

Definition at line 135 of file dd.c.

References convert(), dup, EOS, errno, errorp, exit(), fprintf(), fstat, i, int(), iptr, is, j, LCASE, lseek, NOERROR, num(), O_CREAT, O_RDONLY, O_TRUNC, O_WRONLY, open, over(), pch, puto(), read, S_ISBLK, S_ISREG, sbrk, SEEK_SET, SIG_IGN, SIGINT, signal(), SILENT, st, stat::st_mode, statistics(), stderr, strerror(), SWAB, SYNC, TRUE, UCASE, and write.

void null int  c  ) 
 

Definition at line 366 of file dd.c.

References puto().

int num  ) 
 

Definition at line 47 of file dd.c.

References BIGNUM, EOS, errorp, exit(), fprintf(), L, long(), num(), pc, pch, stderr, and TRUE.

void over int  sig  ) 
 

Definition at line 385 of file dd.c.

References exit(), raise(), SIG_DFL, signal(), and statistics().

Referenced by main().

void puto  ) 
 

Definition at line 106 of file dd.c.

References errno, exit(), fprintf(), n, stderr, strerror(), and write.

Referenced by main(), and null().

void statistics  ) 
 

Definition at line 126 of file dd.c.

References fprintf(), SILENT, and stderr.

Referenced by main(), and over().

int ulcase int  c  ) 
 

Definition at line 345 of file dd.c.

References LCASE, and UCASE.

Referenced by cnull().


Variable Documentation

unsigned bs
 

Definition at line 88 of file dd.c.

Referenced by bsClose(), bsGetBit(), bsOpenReadStream(), bsOpenWriteStream(), bsPutBit(), bsPutUChar(), and bsPutUInt32().

int cbc
 

Definition at line 101 of file dd.c.

unsigned cbs
 

Definition at line 88 of file dd.c.

int convflag = 0
 

Definition at line 96 of file dd.c.

unsigned count
 

Definition at line 88 of file dd.c.

char * errorp
 

Definition at line 19 of file dd.c.

Referenced by main(), and num().

unsigned files = 1
 

Definition at line 92 of file dd.c.

int flag = 0
 

Definition at line 97 of file dd.c.

Referenced by decode_message(), doset(), err(), eval(), exportcmd(), forkexec(), get_args(), grave(), ioecho(), itoa(), main(), onecommand(), patch_ptr(), prolog(), set_misc_flags(), setdash(), test19e(), test5a(), and warn().

int ibc
 

Definition at line 98 of file dd.c.

unsigned ibs = DEFAULT
 

Definition at line 90 of file dd.c.

char* ibuf
 

Definition at line 99 of file dd.c.

int ifd
 

Definition at line 98 of file dd.c.

char* ifilename = NULL
 

Definition at line 93 of file dd.c.

char mlen[] = {64, 45, 82, 45, 83, 96, 109, 100, 109, 97, 96, 116, 108, 9}
 

Definition at line 104 of file dd.c.

unsigned nifull
 

Definition at line 100 of file dd.c.

unsigned nipartial
 

Definition at line 100 of file dd.c.

unsigned nofull
 

Definition at line 100 of file dd.c.

unsigned nopartial
 

Definition at line 100 of file dd.c.

int ns
 

Definition at line 103 of file dd.c.

Referenced by hasSuffix(), main(), Newstr(), and res_send().

unsigned nseek
 

Definition at line 88 of file dd.c.

unsigned ntr
 

Definition at line 102 of file dd.c.

unsigned obc
 

Definition at line 102 of file dd.c.

unsigned obs = DEFAULT
 

Definition at line 91 of file dd.c.

char * obuf
 

Definition at line 99 of file dd.c.

int ofd
 

Definition at line 98 of file dd.c.

Referenced by iwritfile(), and sbx_aout().

char* ofilename = NULL
 

Definition at line 94 of file dd.c.

char * op
 

Definition at line 99 of file dd.c.

char* pch
 

Definition at line 19 of file dd.c.

Referenced by is(), main(), and num().

int seekseen = FALSE
 

Definition at line 89 of file dd.c.

unsigned skip
 

Definition at line 88 of file dd.c.

Referenced by columns(), command(), display(), do_extract_currentfile(), equal(), extract(), getendif(), getexp(), gzheader(), httpget(), Indirect(), list_dir(), listsym(), log_append(), mkfld(), parse(), run(), and Split().


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