|
Classes |
| struct | link |
Defines |
| #define | POSIX_COMP |
| #define | DIRECT_3 |
| #define | direct dirent |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | STRING_SIZE 256 |
| #define | HEADER_SIZE TBLOCK |
| #define | NAME_SIZE NAMSIZ |
| #define | m_name name |
| #define | m_mode mode |
| #define | m_uid uid |
| #define | m_gid gid |
| #define | m_size size |
| #define | m_time mtime |
| #define | m_checksum chksum |
| #define | m_linked typeflag |
| #define | m_link linkname |
| #define | hdr_block dummy |
| #define | m header |
| #define | member dbuf |
| #define | INT_TYPE (sizeof(header.member.m_uid)) |
| #define | LONG_TYPE (sizeof(header.member.m_size)) |
| #define | NIL_HEADER ((HEADER *) 0) |
| #define | NIL_PTR ((char *) 0) |
| #define | TBLOCK_SIZE TBLOCK |
| #define | flush() print(NIL_PTR) |
| #define | block_size() |
Typedefs |
| typedef char | BOOL |
| typedef union hblock | HEADER |
Functions |
| | _PROTOTYPE (int main,(int argc, char **argv)) |
| | _PROTOTYPE (void error,(char *s1, char *s2)) |
| | _PROTOTYPE (BOOL get_header,(void)) |
| | _PROTOTYPE (void tarfile,(void)) |
| | _PROTOTYPE (void extract,(char *file)) |
| | _PROTOTYPE (void copy,(char *file, int from, int to, long bytes)) |
| | _PROTOTYPE (long convert,(char str[], int type)) |
| | _PROTOTYPE (int checksum,(void)) |
| | _PROTOTYPE (int is_dir,(char *file)) |
| | _PROTOTYPE (char *path_name,(char *file)) |
| | _PROTOTYPE (void add_path,(char *name)) |
| | _PROTOTYPE (void add_close,(int fd)) |
| | _PROTOTYPE (int add_open,(char *file, struct stat *st)) |
| | _PROTOTYPE (void make_header,(char *file, struct stat *st)) |
| | _PROTOTYPE (void is_added,(struct stat *st, char *file)) |
| | _PROTOTYPE (void is_deleted,(struct stat *st)) |
| | _PROTOTYPE (char *is_linked,(struct stat *st)) |
| | _PROTOTYPE (void mread,(int fd, char *address, int bytes)) |
| | _PROTOTYPE (int bread,(int fd, char *address, int bytes)) |
| | _PROTOTYPE (void print,(char *str)) |
| | _PROTOTYPE (char *num_out,(long number)) |
| | _PROTOTYPE (void string_print,(char *buffer, char *fmt,...)) |
| void | error (char *s1, char *s2) |
| int | main (int argc, argv) |
| BOOL | get_header () |
| void | tarfile () |
| void | skip_entry () |
| void | extract (char *file) |
| void | delete (char *file) |
| void | do_chown (char *file) |
| void | timestamp (char *file) |
| void | copy (char *file, int from, int to, long bytes) |
| long | convert (str, int type) |
| int | checksum () |
| int | is_dir (char *file) |
| char * | path_name (char *file) |
| void | add_path (char *name) |
| void | add_file (char *file) |
| void | verb_print (char *s1, char *s2) |
| void | add_close (int fd) |
| int | add_open (char *file, struct stat *st) |
| void | make_header (char *file, struct stat *st) |
| void | is_added (struct stat *st, char *file) |
| void | is_deleted (struct stat *st) |
| char * | is_linked (struct stat *st) |
| void | clear_header () |
| void | adjust_boundary () |
| void | mread (int fd, char *address, int bytes) |
| void | mwrite (int fd, char *address, int bytes) |
| int | bread (int fd, char *address, int bytes) |
| int | bwrite (int fd, char *address, int bytes) |
| void | print (char *str) |
| char * | num_out (long number) |
| void | string_print (char *buffer, char *fmt) |
Variables |
| struct link * | link_top |
| HEADER | header |
| BOOL | show_fl |
| BOOL | creat_fl |
| BOOL | ext_fl |
| int | tar_fd |
| char | usage [] = "Usage: tar [cxt][vo][F][f] tarfile [files]." |
| char | io_buffer [TBLOCK_SIZE] |
| char | path [NAME_SIZE] |
| char | pathname [NAME_SIZE] |
| int | force_flag = 0 |
| int | chown_flag = 0 |
| int | verbose_flag = 0 |
| int | norec_flag = 0 |
| ino_t | ar_inode |
| dev_t | ar_dev |
| int | total_blocks |
| int | u_mask |
| char | output [TBLOCK_SIZE] |