#include <sys/types.h>#include <sys/stat.h>#include <signal.h>#include <arch.h>Include dependency graph for archiver.c:

Go to the source code of this file.
Defines | |
| #define | S_IREAD S_IRUSR |
| #define | S_IWRITE S_IWUSR |
| #define | S_IEXEC S_IXUSR |
| #define | MAGIC_NUMBER ARMAG |
| #define | odd(nr) (nr & 01) |
| #define | even(nr) (odd(nr) ? nr + 1 : nr) |
| #define | FALSE 0 |
| #define | TRUE 1 |
| #define | READ 0 |
| #define | APPEND 2 |
| #define | CREATE 1 |
| #define | MEMBER struct ar_hdr |
| #define | NIL_PTR ((char *) 0) |
| #define | NIL_MEM ((MEMBER *) 0) |
| #define | NIL_LONG ((long *) 0) |
| #define | IO_SIZE (10 * 1024) |
| #define | equal(str1, str2) (!strncmp((str1), (str2), 14)) |
| #define | S_ISDIR(m) (m & S_IFDIR) |
Typedefs | |
| typedef char | BOOL |
Functions | |
| long | lseek () |
| char * | mktemp () |
| char * | ctime () |
| usage () | |
| error (BOOL quit, char *str1, char *str2, char *str3, char *str4) | |
| char * | basename (char *path) |
| unsigned int | rd_unsigned2 () |
| open_archive (char *name, int mode) | |
| catch () | |
| main (int argc, argv) | |
| MEMBER * | get_member () |
| char * | get_mode () |
| get (int argc, argv) | |
| add (char *name, int fd, char *mess) | |
| extract (MEMBER *member) | |
| copy_member (MEMBER *member, int from, int to, extracting) | |
| char * | get_mode (int mode) |
| wr_fatal () | |
| rd_fatal () | |
| mwrite (int fd, char *address, int bytes) | |
| show (char *s, char *name) | |
Variables | |
| static char | RcsId [] = "$Header: /opt/proj/minix/cvsroot/src/commands/aal/archiver.c,v 1.1.1.1 2005/04/21 14:53:57 beng Exp $" |
| BOOL | verbose |
| BOOL | app_fl |
| BOOL | ex_fl |
| BOOL | show_fl |
| BOOL | pr_fl |
| BOOL | rep_fl |
| BOOL | del_fl |
| BOOL | nocr_fl |
| BOOL | local_fl |
| BOOL | update_fl |
| int | ar_fd |
| char | io_buffer [IO_SIZE] |
| char * | progname |
| char | temp_buf [32] |
| char * | temp_arch = &temp_buf[0] |
|
|
Definition at line 66 of file archiver.c. Referenced by buf_read(), buf_write(), get(), isInBuffer(), and open_archive(). |
|
|
Definition at line 67 of file archiver.c. Referenced by get(), and open_archive(). |
|
|
Definition at line 77 of file archiver.c. Referenced by __diff(), cmdlookup(), command(), doevent(), doinclude(), exec_one(), expr_operator(), find_builtin(), first(), get(), get_member(), lookup_op(), main(), parsefield(), parsenode(), printit(), readtoken(), readtoken1(), second(), uniq(), and updatepwd(). |
|
|
Definition at line 59 of file archiver.c. Referenced by add(), copy_member(), and crc32_combine(). |
|
|
|
Definition at line 75 of file archiver.c. Referenced by add(), copy_member(), and put_line(). |
|
|
Definition at line 54 of file archiver.c. Referenced by open_archive(). |
|
|
Definition at line 69 of file archiver.c. Referenced by add(), get(), get_member(), and show(). |
|
|
Definition at line 73 of file archiver.c. |
|
|
Definition at line 72 of file archiver.c. Referenced by get(), and get_member(). |
|
|
Definition at line 71 of file archiver.c. Referenced by abort_mined(), add_file(), add_path(), alloc(), bad_write(), basename(), bottom_line(), change(), copy(), cstart(), CTL(), delete(), error(), exception(), extract(), fcntl(), get_expression(), get_header(), get_line(), get_opts(), insert(), length_of(), load_file(), MA(), main(), match(), mbrk(), move(), mread(), msbrk(), mwrite(), new_field(), open_outfile(), print(), print_table(), PT(), put_line(), scratch_file(), search(), set_up(), SH(), sort(), string_print(), substitute(), tarfile(), verb_print(), VI(), WB(), WT(), and yank(). |
|
|
Definition at line 58 of file archiver.c. Referenced by copy_member(), and crc32_combine(). |
|
|
Definition at line 65 of file archiver.c. Referenced by _read_pm(), determine(), disk_io(), do_close(), do_unpause(), extract(), get(), get_inode(), get_super(), interact(), itverb(), main(), pipe_check(), PT(), read(), read_cluster(), read_fat(), read_more(), read_standards(), release(), rw_inode(), rw_super(), scratch_file(), set(), test04(), test06(), test10(), test11(), test7d(), test7i(), test7j(), trverb(), and WB(). |
|
|
Definition at line 37 of file archiver.c. Referenced by get_mode(), and rwx(). |
|
|
Definition at line 31 of file archiver.c. Referenced by get_mode(), getfp(), and rwx(). |
|
|
Definition at line 79 of file archiver.c. Referenced by add(), apply_remove(), ar_open(), cleandir(), compare(), copy(), copy1(), delete(), do1(), do_change(), do_chown(), file(), file_data(), fpathconf(), fts_stat(), link1(), linked(), lnk_creat(), main(), makedir(), makepath(), makeUnixDir(), mark(), mk_link(), mkpath(), mpBuildUnixFilename(), new_node(), opendir(), r_readdir(), rl_add_slash(), select_image(), test21b(), test27a(), test39f(), traverse(), and unlnk_exist(). |
|
|
Definition at line 34 of file archiver.c. Referenced by get_mode(), getfp(), rwx(), tmpstart(), and touch(). |
|
|
|
Definition at line 61 of file archiver.c. |
|
||||||||||||||||
|
Definition at line 464 of file archiver.c. References AR_TOTAL, basename, close, error, even, FALSE, io_buffer, IO_SIZE, L, lseek, member, MEMBER, mwrite(), offset, open, read, S_ISDIR, show(), stat, status, strncpy(), verbose, wr_arhdr(), and x. Referenced by cmd_append(), cmd_read(), compare(), filter(), inflate_fast(), input(), master(), mkdifferences(), paste(), and v_insert(). |
|
|
Definition at line 135 of file archiver.c. |
|
|
Definition at line 191 of file archiver.c. |
|
||||||||||||||||||||
|
Definition at line 555 of file archiver.c. References AR_TOTAL, BOOL, error, even, FALSE, io_buffer, IO_SIZE, L, long(), lseek, mwrite(), odd, offset, pos, read, strncpy(), and TRUE. |
|
|
Referenced by AnyMail(), cdiff(), days2time(), dbgprint(), deliver(), logmsg(), main(), personprint(), Print_Record(), printit(), quickprint(), sayhello(), shortprint(), syslog(), tab_print(), and wall(). |
|
||||||||||||||||||||||||
|
Definition at line 121 of file archiver.c. References _exit, sprint(), strlen(), temp_arch, unlink, and write. |
|
|
Definition at line 530 of file archiver.c. References ar_fd, chmod, close, copy_member(), creat, error, FALSE, pr_fl, show(), strncpy(), and verbose. Referenced by main(), move(), spcmove(), vbreak(), vdrink(), vdrop(), vextract(), vfill(), vinsert(), vlock(), vpour(), and vwear(). |
|
||||||||||||
|
Definition at line 320 of file archiver.c. References app_fl, APPEND, ar_fd, basename, copy_member(), CREATE, del_fl, equal, ex_fl, get_member(), i, member, MEMBER, NIL_MEM, open_archive(), pr_fl, print, READ, rep_fl, show_fl, temp_arch, and wr_arhdr(). |
|
|
Definition at line 299 of file archiver.c. References ar_fd, equal, error, lseek, member, MEMBER, NIL_MEM, rd_arhdr(), SYMDEF, and TRUE. Referenced by get(). |
|
|
Definition at line 593 of file archiver.c. |
|
|
|
|
|
|
|
||||||||||||
|
Definition at line 198 of file archiver.c. References app_fl, del_fl, ex_fl, local_fl, nocr_fl, pr_fl, progname, ptr, rep_fl, show_fl, TRUE, update_fl, usage, and verbose. |
|
|
Referenced by create_file_names(), filter(), main(), make_tmp(), opentemp(), sbx_tset(), and spool(). |
|
||||||||||||||||
|
Definition at line 624 of file archiver.c. References error, TRUE, and write. Referenced by add(), add_file(), adjust_boundary(), copy(), copy_member(), and put_line(). |
|
||||||||||||
|
Definition at line 157 of file archiver.c. References AALMAG, APPEND, ARMAG, close, creat, CREATE, error, FALSE, L, lseek, magic, MAGIC_NUMBER, nocr_fl, open, progname, rd_unsigned2(), TRUE, and wr_int2(). Referenced by get(). |
|
|
Definition at line 619 of file archiver.c. Referenced by rd_arhdr(), and rd_bytes(). |
|
|
Referenced by open_archive(), and process(). |
|
||||||||||||
|
Definition at line 633 of file archiver.c. References MEMBER, print, and x. Referenced by add(), extract(), mlabel(), set(), and uniq(). |
|
|
Definition at line 108 of file archiver.c. |
|
|
Definition at line 614 of file archiver.c. Referenced by wr_bytes(). |
|
|
Definition at line 83 of file archiver.c. |
|
|
Definition at line 97 of file archiver.c. Referenced by extract(), get(), and get_member(). |
|
|
Definition at line 88 of file archiver.c. |
|
|
Definition at line 84 of file archiver.c. |
|
|
Definition at line 99 of file archiver.c. Referenced by add(), copy(), copy_member(), and skip_entry(). |
|
|
Definition at line 90 of file archiver.c. Referenced by main(). |
|
|
Definition at line 89 of file archiver.c. Referenced by main(), and open_archive(). |
|
|
Definition at line 86 of file archiver.c. Referenced by extract(), get(), main(), and string_print(). |
|
|
Definition at line 101 of file archiver.c. Referenced by _mwrite_one(), check_mtab(), del_entry(), do_getname(), eat_dir(), error(), fatal(), fatal_error(), fxp_getname(), init(), main(), main_loop(), open_archive(), pexit(), process_command_line(), rl_getname(), Usage(), usage(), warn(), word_alloc(), xmalloc(), and xrealloc(). |
|
|
Definition at line 9 of file archiver.c. |
|
|
Definition at line 87 of file archiver.c. |
|
|
Definition at line 85 of file archiver.c. |
|
|
Definition at line 104 of file archiver.c. |
|
|
Definition at line 103 of file archiver.c. |
|
|
Definition at line 91 of file archiver.c. Referenced by main(). |
|
|
Definition at line 82 of file archiver.c. Referenced by add(), another_hunk(), argmatch(), cl_block(), dec(), deliver(), deltemp(), do_ed_script(), dump_dir(), dump_file(), extract(), finduser(), format_device(), get_flags(), get_line(), hashcmd(), inittemp(), interrupt(), ListHosts(), main(), minfo(), mlabel(), mpartition(), output(), plan_a(), plan_b(), pr_class(), pr_rr(), pr_type(), predef(), prin1(), print_conn(), printinfo(), readfs(), scan_input(), scan_profile(), skip_to(), talk(), there_is_another_patch(), transform(), and unix_exec(). |
1.4.6