source: trunk/minix/commands/elle/sbproto.h@ 12

Last change on this file since 12 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 5.2 KB
Line 
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
41struct 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
82struct 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
105int 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
116int sbx_err();
117#endif
118
119/* sbvall.c */
120_PROTOTYPE( char *valloc, (unsigned size) );
Note: See TracBrowser for help on using the repository browser.