1 | #ifndef _ANSI
|
---|
2 | #include <ansi.h>
|
---|
3 | #endif
|
---|
4 |
|
---|
5 | /* sbbcpy.c */
|
---|
6 | _PROTOTYPE( int bcopy, (SBMA from, SBMA to, unsigned cnt) );
|
---|
7 | _PROTOTYPE( int sbm_wcpy, (int *from, int *to, unsigned cnt) );
|
---|
8 |
|
---|
9 | /* sberr.c */
|
---|
10 | _PROTOTYPE( int sbe_mem, (void) );
|
---|
11 | _PROTOTYPE( char *sbe_mvfy, (void) );
|
---|
12 | _PROTOTYPE( char *sbe_mfl, (int p) );
|
---|
13 | _PROTOTYPE( char *sbe_mlst, (int p) );
|
---|
14 | _PROTOTYPE( int sbe_smp, (struct smblk *sm, int type) );
|
---|
15 | _PROTOTYPE( char *sbe_sfl, (int p) );
|
---|
16 | _PROTOTYPE( int sbe_sds, (void) );
|
---|
17 | _PROTOTYPE( int sbe_psd, (struct sdblk *sd) );
|
---|
18 | _PROTOTYPE( char *sbe_svfy, (void) );
|
---|
19 | _PROTOTYPE( char *sbe_sdlist, (int p, int phys) );
|
---|
20 | _PROTOTYPE( int sbe_dsk, (SBFILE *sfp) );
|
---|
21 | _PROTOTYPE( char *sbe_sbvfy, (SBBUF *sbp) );
|
---|
22 | _PROTOTYPE( char *sbe_sbs, (SBBUF *sbp, int p) );
|
---|
23 |
|
---|
24 | /* sbm.c */
|
---|
25 | _PROTOTYPE( struct smblk *sbm_init, (SBMA xaddr, SBMO xlen) );
|
---|
26 | _PROTOTYPE( struct smblk *sbm_nget, (void) );
|
---|
27 | _PROTOTYPE( int sbm_nfre, (struct smblk *smp) );
|
---|
28 | _PROTOTYPE( struct smblk *sbm_nmak, (SBMO elsize, unsigned flag) );
|
---|
29 | _PROTOTYPE( struct smblk *sbm_lmak, (SBMA addr, SBMO elsize, int num) );
|
---|
30 | _PROTOTYPE( int sbm_nmov, (struct smblk *smp1, struct smblk *smp2, struct smblk **begp, int elsize) );
|
---|
31 | _PROTOTYPE( struct smblk *sbm_mget, (SBMO cmin, SBMO cmax) );
|
---|
32 | _PROTOTYPE( char *sbm_brk, (unsigned size) );
|
---|
33 | _PROTOTYPE( int sbm_mfree, (struct smblk *sm) );
|
---|
34 | _PROTOTYPE( struct smblk *sbm_exp, (struct smblk *sm, SBMO size) );
|
---|
35 | _PROTOTYPE( int sbm_mmrg, (struct smblk *smp) );
|
---|
36 | _PROTOTYPE( struct smblk *sbm_split, (struct smblk *smp, SBMO coff) );
|
---|
37 | _PROTOTYPE( int sbm_scpy, (char *from, char *to, unsigned count) );
|
---|
38 | #if 0
|
---|
39 | _PROTOTYPE( struct smblk *sbm_err, (struct smblk *val, char *str, int a0, int a1, int a2, int a3) );
|
---|
40 | #else
|
---|
41 | struct smblk *sbm_err();
|
---|
42 | #endif
|
---|
43 | _PROTOTYPE( char *malloc, (unsigned size) );
|
---|
44 | _PROTOTYPE( char *alloc, (unsigned size) );
|
---|
45 | _PROTOTYPE( int free, (char *ptr) );
|
---|
46 | _PROTOTYPE( char *realloc, (char *ptr, unsigned size) );
|
---|
47 | _PROTOTYPE( char *calloc, (unsigned nelem, unsigned elsize) );
|
---|
48 | _PROTOTYPE( int sbm_ngc, (void) );
|
---|
49 | _PROTOTYPE( int sbm_xngc, (struct smblk **begp, unsigned elsize, unsigned flag) );
|
---|
50 | _PROTOTYPE( int sbm_nfor, (int flag, int nodsiz, int (*proc )(), struct sbfile *arg) );
|
---|
51 |
|
---|
52 | /* sbstr.c */
|
---|
53 | _PROTOTYPE( SBSTR *sb_close, (SBBUF *sbp) );
|
---|
54 | _PROTOTYPE( int sb_setovw, (SBBUF *sbp) );
|
---|
55 | _PROTOTYPE( int sb_clrovw, (SBBUF *sbp) );
|
---|
56 | _PROTOTYPE( chroff sbx_fdlen, (int fd) );
|
---|
57 | _PROTOTYPE( SBSTR *sb_fduse, (int ifd) );
|
---|
58 | _PROTOTYPE( int sb_fdcls, (int ifd) );
|
---|
59 | _PROTOTYPE( int sbx_fcls, (struct sbfile *sfp) );
|
---|
60 | _PROTOTYPE( int sb_fdinp, (SBBUF *sb, int fd) );
|
---|
61 | _PROTOTYPE( int sb_fsave, (SBBUF *sb, int fd) );
|
---|
62 | _PROTOTYPE( int sb_sgetc, (SBBUF *sb) );
|
---|
63 | _PROTOTYPE( int sb_sputc, (SBBUF *sb, int ch) );
|
---|
64 | _PROTOTYPE( int sb_speekc, (SBBUF *sb) );
|
---|
65 | _PROTOTYPE( int sb_rgetc, (SBBUF *sb) );
|
---|
66 | _PROTOTYPE( int sb_rdelc, (SBBUF *sbp) );
|
---|
67 | _PROTOTYPE( int sb_deln, (SBBUF *sbp, chroff num) );
|
---|
68 | _PROTOTYPE( struct sdblk *sb_killn, (SBBUF *sbp, chroff num) );
|
---|
69 | _PROTOTYPE( SBSTR *sb_cpyn, (SBBUF *sbp, chroff num) );
|
---|
70 | _PROTOTYPE( int sb_sins, (SBBUF *sbp, struct sdblk *sdp) );
|
---|
71 | _PROTOTYPE( SBSTR *sbs_cpy, (SBSTR *sdp) );
|
---|
72 | _PROTOTYPE( int sbs_del, (SBSTR *sdp) );
|
---|
73 | _PROTOTYPE( SBSTR *sbs_app, (struct sdblk *sdp, struct sdblk *sdp2) );
|
---|
74 | _PROTOTYPE( chroff sbs_len, (SBSTR *sdp) );
|
---|
75 | _PROTOTYPE( int sb_seek, (SBBUF *sbp, chroff coff, int flg) );
|
---|
76 | _PROTOTYPE( int sb_rewind, (SBBUF *sbp) );
|
---|
77 | _PROTOTYPE( chroff sb_tell, (SBBUF *sbp) );
|
---|
78 | _PROTOTYPE( chroff sb_ztell, (SBBUF *sbp) );
|
---|
79 | #if 0
|
---|
80 | _PROTOTYPE( struct sdblk *sbx_ready, (SBBUF *sbp, int type, SBMO cmin, SBMO cmax) );
|
---|
81 | #else
|
---|
82 | struct sdblk *sbx_ready();
|
---|
83 | #endif
|
---|
84 | _PROTOTYPE( struct sdblk *sbx_next, (SBBUF *sbp) );
|
---|
85 | _PROTOTYPE( struct sdblk *sbx_norm, (SBBUF *sbp, int mode) );
|
---|
86 | _PROTOTYPE( struct sdblk *sbx_beg, (struct sdblk *sdp) );
|
---|
87 | _PROTOTYPE( int sbx_smdisc, (SBBUF *sbp) );
|
---|
88 | _PROTOTYPE( int sbx_sbrdy, (SBBUF *sbp) );
|
---|
89 | _PROTOTYPE( struct sdblk *sbx_scpy, (struct sdblk *sdp, struct sdblk *sdlast) );
|
---|
90 | _PROTOTYPE( struct sdblk *sbx_sdcpy, (struct sdblk *sdp) );
|
---|
91 | _PROTOTYPE( struct sdblk *sbx_xcis, (SBBUF *sbp, chroff num, struct sdblk **asd2, chroff *adot) );
|
---|
92 | _PROTOTYPE( struct sdblk *sbx_split, (struct sdblk *sdp, chroff coff) );
|
---|
93 | _PROTOTYPE( struct smblk *sbx_msplit, (struct smblk *smp, SBMO size) );
|
---|
94 | _PROTOTYPE( struct sdblk *sbx_ndel, (struct sdblk *sdp) );
|
---|
95 | _PROTOTYPE( int sbx_npdel, (struct sdblk *sdp) );
|
---|
96 | _PROTOTYPE( struct sdblk *sbx_ndget, (void) );
|
---|
97 | _PROTOTYPE( int sbx_ndfre, (struct sdblk *sdp) );
|
---|
98 | _PROTOTYPE( SBMA sbx_malloc, (unsigned size) );
|
---|
99 | _PROTOTYPE( struct smblk *sbx_mget, (SBMO cmin, SBMO cmax) );
|
---|
100 | _PROTOTYPE( int sbx_comp, (int cmin, int lev) );
|
---|
101 | _PROTOTYPE( int sbx_sdgc, (struct sdblk *sdp, int lev) );
|
---|
102 | #if 0
|
---|
103 | _PROTOTYPE( int sbx_aout, (struct sdblk *sdp, int flag, int fd) );
|
---|
104 | #else
|
---|
105 | int sbx_aout();
|
---|
106 | #endif
|
---|
107 | _PROTOTYPE( chroff sbx_qlen, (struct sdblk *sdp) );
|
---|
108 | _PROTOTYPE( int sbx_tset, (chroff loff, int align) );
|
---|
109 | _PROTOTYPE( struct sdblk *sbx_ffnd, (SBFILE *sfp, chroff size, chroff *aloc) );
|
---|
110 | _PROTOTYPE( int sbx_rdf, (int fd, char *addr, int cnt, int skflg, chroff loc) );
|
---|
111 | _PROTOTYPE( int sbx_rugpull, (int fd) );
|
---|
112 | _PROTOTYPE( int sbx_unpur, (struct sdblk *sd, struct sbfile *sf) );
|
---|
113 | #if 0
|
---|
114 | _PROTOTYPE( int sbx_err, (int val, char *str, int a0, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12) );
|
---|
115 | #else
|
---|
116 | int sbx_err();
|
---|
117 | #endif
|
---|
118 |
|
---|
119 | /* sbvall.c */
|
---|
120 | _PROTOTYPE( char *valloc, (unsigned size) );
|
---|