rd.c File Reference

#include <out.h>
#include "object.h"

Include dependency graph for rd.c:

Go to the source code of this file.

Defines

#define PARTEMIT   0
#define PARTRELO   1
#define PARTNAME   2
#define PARTCHAR   3
#define PARTDBUG   3
#define NPARTS   (PARTDBUG + 1)
#define OUTSECT(i)   (outseek[PARTEMIT] = offset[i])
#define BEGINSEEK(p, o)   (outseek[(p)] = (o))

Functions

long lseek ()
 rd_fdopen (fd)
 rd_close ()
 rd_fd ()
 rd_ohead (struct outhead *head)
 rd_rew_relos (struct outhead *head)
 rd_sect (struct outsect *sect, unsigned int cnt)
 rd_outsect (s)
 rd_emit (char *emit, long cnt)
 rd_relo (struct outrelo *relo, unsigned int cnt)
 rd_name (struct outname *name, unsigned int cnt)
 rd_string (char *addr, long len)

Variables

static long offset [MAXSECT]
static int outfile
static long outseek [NPARTS]
static long currpos
static long rd_base
static int sectionnr
static char * b
long n


Define Documentation

#define BEGINSEEK p,
 )     (outseek[(p)] = (o))
 

Definition at line 40 of file rd.c.

Referenced by rd_ohead(), and rd_rew_relos().

#define NPARTS   (PARTDBUG + 1)
 

Definition at line 30 of file rd.c.

#define OUTSECT i   )     (outseek[PARTEMIT] = offset[i])
 

Definition at line 38 of file rd.c.

Referenced by rd_outsect().

#define PARTCHAR   3
 

Definition at line 24 of file rd.c.

#define PARTDBUG   3
 

Definition at line 28 of file rd.c.

#define PARTEMIT   0
 

Definition at line 21 of file rd.c.

#define PARTNAME   2
 

Definition at line 23 of file rd.c.

#define PARTRELO   1
 

Definition at line 22 of file rd.c.


Function Documentation

long lseek  ) 
 

rd_close  ) 
 

Definition at line 93 of file rd.c.

References close, and outfile.

rd_emit char *  emit,
long  cnt
 

Definition at line 185 of file rd.c.

References offset, PARTEMIT, and sectionnr.

rd_fd  ) 
 

Definition at line 100 of file rd.c.

References outfile.

rd_fdopen fd   ) 
 

Definition at line 76 of file rd.c.

References currpos, i, L, lseek, NPARTS, outfile, outseek, PARTEMIT, rd_base, and sectionnr.

Referenced by do_file().

rd_name struct outname name,
unsigned int  cnt
 

Definition at line 216 of file rd.c.

References c, get4, PARTNAME, SZ_NAME, and uget2.

rd_ohead struct outhead head  ) 
 

Definition at line 105 of file rd.c.

References BEGINSEEK, c, get4, long(), off, OFF_RELO, PARTCHAR, PARTDBUG, PARTEMIT, PARTNAME, PARTRELO, rd_base, SZ_HEAD, SZ_NAME, SZ_RELO, and uget2.

Referenced by do_file().

rd_outsect s   ) 
 

Definition at line 176 of file rd.c.

References OUTSECT, s, and sectionnr.

rd_relo struct outrelo relo,
unsigned int  cnt
 

Definition at line 193 of file rd.c.

References c, get4, PARTRELO, SZ_RELO, and uget2.

rd_rew_relos struct outhead head  ) 
 

Definition at line 138 of file rd.c.

References BEGINSEEK, off, OFF_RELO, PARTRELO, and rd_base.

rd_sect struct outsect sect,
unsigned int  cnt
 

Definition at line 146 of file rd.c.

References c, get4, offset, PARTEMIT, rd_base, and SZ_SECT.

Referenced by do_file().

rd_string char *  addr,
long  len
 

Definition at line 239 of file rd.c.

References PARTCHAR.


Variable Documentation

char* b [static]
 

Definition at line 47 of file rd.c.

long currpos [static]
 

Definition at line 36 of file rd.c.

Referenced by rd_fdopen().

long n
 

Definition at line 48 of file rd.c.

Referenced by _Arguments__Argv(), _atn(), _exp(), _flush(), ack_get_instruction(), ack_get_statement(), ackbibi(), add(), add_reductions(), adler32(), aohand(), Array(), arrayelm(), ascii2octet(), asctime(), atan(), atoo(), bakcopy(), bas_get_instruction(), bas_get_statement(), boundary(), bread(), breakcmd(), build_tree(), bwrite(), BZ2_hbAssignCodes(), Call(), calloc(), cat(), check_mtab(), child(), chkdirzone(), chkindzone(), chkname(), chksuper(), cidr2a(), cidr_ntoa(), cihand(), cmdloop(), compress(), configtag(), cons_org0(), construct(), copy(), copy_data(), copylink(), copyout(), countfiles(), crc32_combine(), crypt(), cutneeds(), d_backup(), data_store_dmp(), date_exp(), decode(), default_goto(), deflateSetDictionary(), df(), dhcp_settag(), dice_off(), dice_ulg(), dir_read(), diskio(), dn_expand(), dn_find(), dn_skipname(), do_escape(), do_file(), do_fork(), do_video(), doarray(), dodump(), doelement(), dofuncn(), doprint(), doreturn(), doundiv(), eat_dir(), encode(), endsInBz2(), env_prefix(), eval(), evalstring(), exec_image(), exec_one(), execve(), exp(), expand(), explode(), f_indrel(), f_newwin(), fallbackQSort3(), file(), fill_window(), find_exist(), gzfilebuf::flushbuf(), fproc_dmp(), ftppasv(), fxp_check_ints(), fxp_readv(), fxp_writev(), gen_bitlen(), gen_codes(), get_cmostime(), get_codepage(), get_line(), get_literal(), get_number(), get_segment(), get_state(), get_string(), get_time(), get_token(), get_unumber(), getanswer(), getbuf(), getcap(), gethostbyaddr(), gethostbyname(), gethostinfo(), getinfo(), getnumber(), getpass(), getpipe(), getspeed(), gettable(), gf2_matrix_square(), glob1(), globname(), gnu_emit_instruction(), gnu_get_instruction(), gnu_get_statement(), guess_geometry(), gzheader(), gzread(), handle_req(), handle_status(), ichk(), ifname2if(), ifname2n(), imhand(), indent(), inet_aton(), inet_network(), init_block(), insert_query(), inslin(), inval_filp(), iqp_getc(), iqp_putc(), iso_712(), keep_reading(), killdiv(), link_free_chunk(), list(), ljhand(), load_mtab(), lock_device(), main(), mainQSort3(), make_off(), make_ulg(), memccpy(), memmap_dmp(), mihand(), mkfld(), mproc_dmp(), mqhand(), msort(), my_getcwd(), nch(), new_state(), newnode(), nextfile(), number(), nxdomain(), oneC_sum(), outfld(), params2params(), paramvalue(), parent(), parent1(), parseDate(), parsefname(), parseheredoc(), parseTime(), parseZoneName(), Pass3(), patch_stack(), pch_swap(), pr_cdname(), pr_rr(), print(), print1(), printFat(), printinfo(), printname(), privileges_dmp(), processfiles(), proctab_dmp(), putd(), putLong(), puto(), putpipe(), qp_query(), query_chaos(), queryparam(), r_lookup(), r_mkfld(), random_getbytes(), range_parse(), rcmd(), rd_bytes(), rdlink(), read_header(), readblock(), reader(), readline(), readword(), realloc(), receive(), recnum(), redirect(), regsub(), rehand(), res_init(), res_mkquery(), res_query(), res_querydomain(), res_search(), res_send(), rewrite_mtab(), rl_readv(), rl_writev(), rproc_dmp(), rw_chunk(), rzfile(), save_column(), saylntoo(), scan_tree(), scr_init(), secondary(), send_sig(), send_tree(), sendmask_dmp(), set_data_type(), setup_dma(), shiftcmd(), show_cores(), show_part(), sigaction_dmp(), simplecmd(), skip(), slave(), smatch(), sort(), spawn(), split(), Split(), strftime(), Strfun(), Strncmp(), strsave(), Subst(), sum(), tab_parse(), test02(), test11a(), test11b(), test11c(), test19c(), test1a(), test2a(), test5b(), test5c(), test5e(), test5f(), test5g(), test5h(), test5i(), topo(), tqhand(), tr_static_init(), tryz(), uname(), uncompress(), unix_exec(), unlink_free_chunk(), upd_wind(), update_mtab(), w_transfer(), wcsend(), wordlist(), wr_bytes(), writer(), writetty(), xwrite(), zfilbuf(), zgeth1(), zgethdr(), ziplocal_putValue(), ziplocal_putValue_inmemory(), zrbhdr(), zrbhdr32(), zrhhdr(), zsbh32(), zsbhdr(), and zshhdr().

long offset[MAXSECT] [static]
 

Definition at line 32 of file rd.c.

int outfile [static]
 

Definition at line 34 of file rd.c.

Referenced by descend(), dodiv(), doundiv(), file_compress(), file_uncompress(), get_cmd(), getdiv(), gunzip(), killdiv(), logging(), main(), outbyte(), rd_close(), rd_fd(), rd_fdopen(), and tar().

long outseek[NPARTS] [static]
 

Definition at line 35 of file rd.c.

Referenced by rd_fdopen().

long rd_base [static]
 

Definition at line 37 of file rd.c.

Referenced by rd_fdopen(), rd_ohead(), rd_rew_relos(), and rd_sect().

int sectionnr [static]
 

Definition at line 43 of file rd.c.

Referenced by rd_emit(), rd_fdopen(), and rd_outsect().


Generated on Fri Apr 14 22:57:52 2006 for minix by  doxygen 1.4.6