home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2001 January
/
VPR0101A.BIN
/
OLS
/
TAR32053
/
tar32053.exe
/
SRC
/
TMP1
< prev
next >
Wrap
Text File
|
1999-05-23
|
15KB
|
224 lines
archio.c: fprintf(stderr, "No volume header\n");
archio.c: * Move tape head backward and change 'read' mode to 'write' mode
archio.c: /* Write volume header */
bits.c: * void copy_block(char *buf, unsigned len, int header)
bits.c: void copy_block(buf, len, header)
bits.c: int header; /* true if block header must be written */
bits.c: if (header) {
chkfname.c: static void print_header(void)
chkfname.c: print_header();
compress.c: * header and return values. Change as appropriate for your *
compress.c: * all modules if you change the header or a define in the *
compress.c: * header file. Corrected some typos. *
compress.c: * 12-06-88 DjG VERY minor changes for casts and header defines *
compress.c: * 4.10e 12-11-88 DjG Fixed more casts, prototypes and header file. *
compress.c: #define MAIN /* header has defining instances of globals */
compress.h: * This header supports a number of compiler defines and predefines. *
compress.h: * Rather than explain all of them, please print the header and read the *
compress.h: * the header. This is to help on 16 bit Msdos machines to get their *
compress.h: * This header can be maintained to keep up with the different compilers *
compress.h: * #define BIND in this header. Otherwise, this distribution of source *
compress.h: * NOTE!!! Compiler predefines were taken out of the compress.h header. *
compress.h: * compiler define in this header. Compiling without doing these *
compress.h: * called SMALLMODEL. The SMALLMODEL define is set in the header *
compress.h: * Defines: This header file contains most of the system wide defines. *
compress.h: /* the header to decide on value for NEARHEAP */
compress.h: /* Defines for third byte of header */
compress.h: a fourth header byte (for expansion).
compress.h: UCHAR magic_header[] = { 0x1F,0x9D }; /* 1F 9D */
compress.h: int nomagic = FALSE; /* Use a 3-byte magic number header, unless old file */
compress.h: extern UCHAR magic_header[];
crypt.h: #define RAND_HEAD_LEN 12 /* length of encryption random header */
deflate.c: /* To save space (see unlzw.c), we overlay prev+head with tab_prefix and
deflate.c: error: cannot overlay head with tab_prefix1
deflate.c: /* DECLARE(Pos, head, 1<<HASH_BITS); */
deflate.c: local unsigned lookahead; /* number of valid bytes ahead in window */
deflate.c: * Insert string s in the dictionary and set match_head to the previous head
deflate.c: #define INSERT_STRING(s, match_head) \
deflate.c: prev[(s) & WMASK] = match_head = head[ins_h], \
deflate.c: head[ins_h] = (s))
deflate.c: for (j = 0; j < HASH_SIZE; j++) head[j] = NIL;
deflate.c: memzero((char*)head, HASH_SIZE*sizeof(*head));
deflate.c: lookahead = read_buf((char *)window,
deflate.c: if (lookahead == 0 || lookahead == (unsigned)EOF) {
deflate.c: eofile = 1, lookahead = 0;
deflate.c: /* Make sure that we always have enough lookahead. This is important
deflate.c: while (lookahead < MIN_LOOKAHEAD && !eofile){
deflate.c: /* If lookahead < MIN_MATCH, ins_h is garbage, but this is
deflate.c: * IN assertions: cur_match is the head of the hash chain for the current
deflate.c: Assert(strstart <= window_size-MIN_LOOKAHEAD, "insufficient lookahead");
deflate.c: * lookahead only every 4th comparison; the 128th check will be made
deflate.c: * to check more often for insufficient lookahead.
deflate.c: /* We check for insufficient lookahead only every 8th comparison;
deflate.c: * Fill the window when the lookahead becomes insufficient.
deflate.c: * Updates strstart and lookahead, and sets eofile if end of input file.
deflate.c: * IN assertion: lookahead < MIN_LOOKAHEAD && strstart + lookahead > 0
deflate.c: fill_window_more = (unsigned)(window_size - (ulg)lookahead - (ulg)strstart);
deflate.c: /* If the window is almost full and there is insufficient lookahead,
deflate.c: * and lookahead == 1 (input done one byte at time)
deflate.c: m = head[n];
deflate.c: head[n] = (Pos)(m >= WSIZE ? m-WSIZE : NIL);
deflate.c: n = file_read((char*)window+strstart+lookahead, fill_window_more);
deflate.c: lookahead += n;
deflate.c: if (lookahead < MIN_LOOKAHEAD && !eofile)
deflate.c: static IPos deflate_fast_hash_head; /* head of the hash chain */
deflate.c: /*static IPos hash_head;*/ /* head of the hash chain */
deflate.c: /* while (lookahead != 0) {*/
deflate.c: * dictionary, and set hash_head to the head of the hash chain:
deflate.c: INSERT_STRING(strstart, deflate_fast_hash_head);
deflate.c: if (deflate_fast_hash_head != NIL && strstart - deflate_fast_hash_head <= MAX_DIST) {
deflate.c: deflate_fast_match_length = longest_match (deflate_fast_hash_head);
deflate.c: if (deflate_fast_match_length > lookahead) deflate_fast_match_length = lookahead;
deflate.c: lookahead -= deflate_fast_match_length;
deflate.c: INSERT_STRING(strstart, deflate_fast_hash_head);
deflate.c: * always MIN_MATCH bytes ahead. If lookahead < MIN_MATCH
deflate.c: * the next lookahead bytes will be emitted as literals.
deflate.c: lookahead--;
deflate.c: /* Make sure that we always have enough lookahead, except
deflate.c: while (lookahead < MIN_LOOKAHEAD && !eofile) fill_window();
deflate.c: while(lookahead != 0) {
deflate.c: while (lookahead < MIN_LOOKAHEAD && !eofile){
deflate.c: static IPos deflate_sub_hash_head=0; /* head of hash chain */
deflate.c: /*static IPos hash_head=0;*/ /* head of hash chain */
deflate.c: /* while (lookahead != 0) {*/
deflate.c: * dictionary, and set hash_head to the head of the hash chain:
deflate.c: INSERT_STRING(strstart, deflate_sub_hash_head);
deflate.c: if (deflate_sub_hash_head != NIL && prev_length < max_lazy_match &&
deflate.c: strstart - deflate_sub_hash_head <= MAX_DIST) {
deflate.c: deflate_sub_match_length = longest_match (deflate_sub_hash_head);
deflate.c: if (deflate_sub_match_length > lookahead) deflate_sub_match_length = lookahead;
deflate.c: lookahead -= prev_length-1;
deflate.c: INSERT_STRING(strstart, deflate_sub_hash_head);
deflate.c: * always MIN_MATCH bytes ahead. If lookahead < MIN_MATCH
deflate.c: * next lookahead bytes will always be emitted as literals.
deflate.c: lookahead--;
deflate.c: lookahead--;
deflate.c: Assert (strstart <= isize && lookahead <= isize, "a bit too far");
deflate.c: /* Make sure that we always have enough lookahead, except
deflate.c: while (lookahead < MIN_LOOKAHEAD && !eofile) fill_window();
deflate.c: lookahead=0; /* number of valid bytes ahead in window */
deflate.c: deflate_fast_hash_head=0; /* head of the hash chain */
deflate.c: deflate_sub_hash_head=0; /* head of hash chain */
gzip.c: long header_bytes=0; /**/
gzip.c: char magic[2]; /* magic header */
gzip.c: header_bytes = 0;
gzip.c: header_bytes = inptr + 2*sizeof(long); /* include crc and size */
gzip.c: * We are thus guaranteed that the entire local header fits in inbuf.
gzip.c: /* check_zipfile may get ofname from the local header */
gzip.c: header_bytes=0; /**/
gzip.h: * deflate: prev+head window d_buf l_buf outbuf
gzip.h: # define head (prev+WSIZE) /* hash head (see deflate.c) */
gzip.h: # define head tab_prefix1
gzip.h: extern long header_bytes;/* number of bytes in gzip header */
gzip.h: #define PACK_MAGIC "\037\036" /* Magic header for packed files */
gzip.h: #define GZIP_MAGIC "\037\213" /* Magic header for gzip files, 1F 8B */
gzip.h: #define OLD_GZIP_MAGIC "\037\236" /* Magic header for gzip 0.5 = freeze 1.x */
gzip.h: #define LZH_MAGIC "\037\240" /* Magic header for SCO LZH Compress files*/
gzip.h: #define PKZIP_MAGIC "\120\113\003\004" /* Magic header for pkzip files */
gzip.h: /* Minimum amount of lookahead, except at the end of the input file.
gzip.h: /* Macros for getting two-byte and four-byte header values */
gzip.h: void copy_block OF((char *buf, unsigned len, int header));
inflate.c: /* Undo too much lookahead. The next read will be byte aligned so we
inflate.c: /* Undo too much lookahead. The next read will be byte aligned so we
lzw.h: #define LZW_MAGIC "\037\235" /* Magic header for lzw files, 1F 9D */
lzw.h: /* Mask 0x20 is reserved to mean a fourth header byte, and 0x40 is free.
main.c: fprintf(stderr, "\t-g\tcreates GNUtar compatible header\n");
main.c: HEADER *head;
main.c: while (read_arch(TBLOCK, (char **)&head) == TBLOCK) {
main.c: if (eofblock(head->dummy))
main.c: type = decode_dir(namebuf, &statbuf, head);
main.c: if(TarMsgFileBegin(head,Current_file_name,tmpname)==-1){
main.c: HEADER *head;
main.c: while (read_arch(TBLOCK, (char **)&head) == TBLOCK) {
main.c: if (eofblock(head->dummy))
main.c: type = decode_dir(namebuf, &statbuf, head);
main.c: HEADER *head;
main.c: while (read_arch(TBLOCK, (char **)&head) == TBLOCK) {
main.c: if (eofblock(head->dummy))
main.c: type = decode_dir(name, &statbuf, head);
main.c: ustar = (bool)(memcmp(head->dbuf.magic, TMAGIC, TMAGLEN) == 0
main.c: || memcmp(head->dbuf.magic, TOMAGIC, TOMAGLEN) == 0);
main.c: if (ustar && head->dbuf.uname[0])
main.c: printf(" %s/", head->dbuf.uname);
main.c: if (ustar && head->dbuf.gname[0])
main.c: printf("%s", head->dbuf.gname);
main.c: printf("%s -> %s\n", name, head->dbuf.linkname);
main.c: printf("%s -> %s@\n", name, head->dbuf.linkname);
misc.c: * Return true if string t's head is same as string p
nt_secu.c: fwrite(&bufsize,4,1,fp); /* header 4byte integer */
nt_secu.c: fread(&bufsize,4,1,fp); /* header 4byte integer */
setarg.c: static char **args, **args_head=NULL;
setarg.c: {char **p; if(args_head) for(p = args_head; p < args; p++){
setarg.c: args = args_head =
setarg.c: (char **) realloc(args_head,(lastsize) * sizeof(char *));
setarg.c: if(args - args_head >= lastsize){
setarg.c: args_head, (lastsize += 40) * sizeof(char *));
setarg.c: args = new + (args - args_head);
setarg.c: args_head = new;
setarg.c: if(args_head!=NULL){free(args_head);args_head = 0;} /* changed by tsuneo */
setarg.c: *argcp = args - args_head - 1; /* -1 for null delimiter above */
setarg.c: *argvp = args_head;
setarg.c: *argcp = args - args_head - 1;
setarg.c: *argvp = args_head;
tar.h: * tar header block definition
tar32.c: static HEADER *Mhead; /* Setted by Find Next. Use at GetWriteTime ,etc..*/
tar32.c: HEADER *phead;
tar32.c: if(read_arch(TBLOCK, (char **)&phead) == TBLOCK){
tar32.c: sum=strtol(phead->dbuf.chksum,NULL,8);
tar32.c: if(sum == compsum(phead)){
tar32.c: HEADER *head;
tar32.c: while(read_arch(TBLOCK, (char **)&head) == TBLOCK) {
tar32.c: if (eofblock(head->dummy))
tar32.c: /* write(fileno(stderr),head,TBLOCK);*/
tar32.c: type = decode_dir(name, &statbuf, head);
tar32.c: /* HEADER *head;*/
tar32.c: /* headからinfoへ変換する。fnameはdecode_dir(_e)で得られた値。*/
tar32.c: /* 早い話がhead->dbuf.nameのこと。*/
tar32.c: void HeaderToIndividualInfo(INDIVIDUALINFO *info,HEADER *head,char *fname)
tar32.c: info->dwOriginalSize=strtol(head->dbuf.size,NULL,8);
tar32.c: info->dwCRC=head->dbuf.magic[0]*256+head->dbuf.magic[1];
tar32.c: ti=strtol(head->dbuf.mtime,NULL,8);
tar32.c: // strcpy(info->szFileName,fname/* head->dbuf.name*/);
tar32.c: st_mode=(unsigned short)strtol(head->dbuf.mode,NULL,8);
tar32.c: /* HEADER *head=Mhead;*/
tar32.c: while(read_arch(TBLOCK, (char **)&Mhead) == TBLOCK) {
tar32.c: HEADER *head=Mhead;
tar32.c: if (eofblock(head->dummy))
tar32.c: /* write(fileno(stderr),head,TBLOCK);*/
tar32.c: type = decode_dir(name, &statbuf, head);
tar32.c: HeaderToIndividualInfo(_lpSubInfo,head,name);
tar32.c: if(TarMsgFileBegin(head,Current_file_name,Current_file_name)==-1){
tar32.c: return strtol(Mhead->dbuf.mtime,NULL,8);
tar32.c: return strtol(Mhead->dbuf.atime,NULL,8);
tar32.c: return strtol(Mhead->dbuf.ctime,NULL,8);
tar32.c: st_mode=(unsigned short)strtol(Mhead->dbuf.mode,NULL,8);
tardir.c: printf("Warrning: header check sum. this file seems to ceated by old MS-C version.\n");
tarmsg.c: static void HeaderToExtractingInfoEx(EXTRACTINGINFOEX *exinfo,HEADER *phead,char *srcfile,char *destfile)
tarmsg.c: extern void HeaderToIndividualInfo(INDIVIDUALINFO *info,HEADER *head,char *fname);
tarmsg.c: HeaderToIndividualInfo(&iinfo,phead,srcfile);
tarmsg.c: int TarMsgFileBegin(HEADER *head,char *szDestFileName,char *szSourceFileName)
tarmsg.c: HeaderToExtractingInfoEx(&info,head,szDestFileName,szSourceFileName);
tarmsg.h: int TarMsgFileBegin(HEADER *head,char *szDestFileName,char *szSourceFileName);
tarwin.c: int SendFileBeginMessageToOwnerWindow(HEADER *head,char * szSourceFileName)
tarwin.c: HeaderToExtractingInfoEx(&info,head);
trees.c: * fast adaptation but have of course the overhead of transmitting trees
trees.c: * Send the header for a block using dynamic Huffman trees: the counts, the
trees.c: * and if the zip file can be seeked (to rewrite the local header),
trees.c: copy_block(buf, (unsigned)stored_len, 0); /* without header */
trees.c: copy_block(buf, (unsigned)stored_len, 1); /* with header */
unzip.c: /* PKZIP header definitions */
unzip.c: #define EXTFLG 8 /* bit for extended local header */
unzip.c: #define LOCHDR 30 /* size of local header, including sig */
unzip.c: #define EXTHDR 16 /* size of extended local header, inc sig */
unzip.c: int ext_header = 0; /* set if extended local header */
unzip.c: * The magic header has already been checked. The output buffer is cleared.
unzip.c: uch buf[EXTHDR]; /* extended local header */
unzip.c: if (pkzip && !ext_header) { /* crc and length at the end otherwise */
unzip.c: ext_header = pkzip = 0; /* for next file */
zip.c: long header_bytes; /* number of bytes in gzip header */
zip.c: /* Write the header to the gzip file. See algorithm.doc for the format */
zip.c: put_byte(GZIP_MAGIC[0]); /* magic header */
zip.c: header_bytes = (long)outcnt;
zip.c: header_bytes += 2*sizeof(long);
zip.c: header_bytes=0; /* number of bytes in gzip header */