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