]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/cwfs/portfns.h
remove mconf cruft
[plan9front.git] / sys / src / cmd / cwfs / portfns.h
1 void    accessdir(Iobuf*, Dentry*, int, int);
2 void    addfree(Device*, Off, Superb*);
3 void    arpstart(void);
4 void    arginit(void);
5 void*   authnew(void);
6 void    authfree(void*);
7 int     authread(File*, uchar*, int);
8 int     authwrite(File*, uchar*, int);
9 void    cdiag(char*, int);
10 int     cnumb(void);
11 Device* config(void);
12 int     rawchar(int);
13 Off     bufalloc(Device*, int, long, int);
14 void    buffree(Device*, Off, int, Truncstate *);
15 int     byuid(void*, void*);
16 int     canlock(Lock*);
17 int     canqlock(QLock*);
18 void    cfsdump(Filsys*);
19 void    chanhangup(Chan *cp, char *msg, int dolock);
20 Chan*   fs_chaninit(int, int, int);
21 void    cmd_check(int, char*[]);
22 void    cmd_users(int, char*[]);
23 void    cmd_newuser(int, char*[]);
24 void    cmd_netdb(int, char*[]);
25 void    cmd_printconf(int, char*[]);
26 void    cmd_wormreset(int, char *[]);
27 int     checkname(char*);
28 int     checktag(Iobuf*, int, Off);
29 int     cksum(void*, int, int);
30 int     cksum0(int, int);
31 void    cyclstart(void);
32 void    dotrace(int);
33 int     conschar(void);
34 void    consinit(void (*)(char*, int));
35 void    consstart(int);
36 void    consserve(void);
37 int     conslock(void);
38 int     con_attach(int, char*, char*);
39 int     con_clone(int, int);
40 int     con_create(int, char*, int, int, long, int);
41 int     con_clri(int);
42 int     con_fstat(int);
43 int     con_open(int, int);
44 int     con_read(int, char*, Off, int);
45 int     con_remove(int);
46 int     con_session(void);
47 int     con_walk(int, char*);
48 int     con_write(int, char*, Off, int);
49 int     cwgrow(Device*, Superb*, int);
50 int     cwfree(Device*, Off);
51 void    cwinit(Device*);
52 Off     cwraddr(Device*);
53 int     cwread(Device*, Off, void*);
54 void    cwream(Device*);
55 void    cwrecover(Device*);
56 Off     cwsaddr(Device*);
57 Devsize cwsize(Device*);
58 int     cwwrite(Device*, Off, void*);
59 char*   dataof(char *file);
60 void    datestr(char*, Timet);
61 Off     dbufread(Iobuf*, Dentry*, Off, Off, int);
62 void    delay(int);
63 Filsys* dev2fs(Device *dev);
64 int     devcmpr(Device*, Device*);
65 void    devream(Device*, int);
66 void    devrecover(Device*);
67 void    devinit(Device*);
68 int     devread(Device*, Off, void*);
69 Devsize devsize(Device*);
70 int     devwrite(Device*, Off, void*);
71 Iobuf*  dnodebuf(Iobuf*, Dentry*, Off, int, int);
72 Iobuf*  dnodebuf1(Iobuf*, Dentry*, Off, int, int);
73 int     doremove(File*, int);
74 void    dtrunc(Iobuf*, Dentry*, int);
75 int     dtrunclen(Iobuf *p, Dentry *, Off newsize, int uid);
76 int     dumpblock(Device*);
77 void    netinit(void);
78 void    netstart(void);
79 void    exit(void);
80 void    fileinit(Chan*);
81 File*   filep(Chan*, ulong, int);
82 void    firmware(void);
83 int     fname(char*);
84 int     fpair(char*, char*);
85 void    formatinit(void);
86 int     fread(void*, int);
87 void    freefp(File*);
88 void    freewp(Wpath*);
89 Filsys* fsstr(char*);
90 Devsize fwormsize(Device*);
91 void    fwormream(Device*);
92 void    fworminit(Device*);
93 int     fwormread(Device*, Off, void*);
94 int     fwormwrite(Device*, Off, void*);
95 char*   getauthlist(void);
96 Iobuf*  getbuf(Device*, Off, int);
97 char*   getwrd(char*, char*);
98 int     getc(void);
99 Dentry* getdir(Iobuf*, int);
100 Chan*   getlcp(uchar*, long);
101 Off     getraddr(Device*);
102 void    hexdump(void*, int);
103 int     iaccess(File*, Dentry*, int);
104 void*   ialloc(ulong, int);
105 Off     ibbpow(int);
106 Off     ibbpowsum(int);
107 Device* iconfig(char *);
108 Off     indfetch(Device*, Off, Off, Off , int, int, int);
109 int     ingroup(int, int);
110 int     inh(int, uchar*);
111 Devsize inqsize(char *file);
112 void    iobufinit(void);
113 void*   iobufmap(Iobuf*);
114 void    iobufunmap(Iobuf*);
115 int     iobufql(QLock*);
116 int     jukeread(Device*, Off, void*);
117 int     jukewrite(Device*, Off, void*);
118 void    jukeinit(Device*);
119 void    jukeream(Device*);
120 void    jukerecover(Device*);
121 Off     jukesaddr(Device*);
122 Devsize jukesize(Device*);
123 void    kbdchar(int);
124 void    lights(int, int);
125 void    launchinit(void);
126 void    localconfinit(void);
127 int     leadgroup(int, int);
128 void    lock(Lock*);
129 void    lockinit(void);
130 void    machinit(void);
131 Msgbuf* mballoc(int, Chan*, int);
132 void    mbinit(void);
133 void    mbfree(Msgbuf*);
134 Iobuf*  movebuf(Iobuf*);
135 void    mcatinit(Device*);
136 int     mcatread(Device*, Off, void*);
137 Devsize mcatsize(Device*);
138 int     mcatwrite(Device*, Off, void*);
139 void    mirrinit(Device*);
140 int     mirrread(Device*, Off, void*);
141 Devsize mirrsize(Device*);
142 int     mirrwrite(Device*, Off, void*);
143 void    mkqid(Qid*, Dentry*, int);
144 int     mkqidcmp(Qid*, Dentry*);
145 void    mkqid9p1(Qid9p1*, Qid*);
146 void    mkqid9p2(Qid*, Qid9p1*, int);
147 void    mlevinit(Device*);
148 int     mlevread(Device*, Off, void*);
149 Devsize mlevsize(Device*);
150 int     mlevwrite(Device*, Off, void*);
151 int     nametokey(char*, char*);
152 File*   newfp(void);
153 void    newscsi(Device *d, Scsi *sc);
154 Queue*  newqueue(int, char*);
155 void    newstart(void);
156 Wpath*  newwp(void);
157 int     nvrcheck(void);
158 char*   nvrgetconfig(void);
159 int     nvrsetconfig(char*);
160 int     walkto(char*);
161 vlong   number(char*, int, int);
162 int     okay(char *quest);
163 void    online(void);
164 void    panic(char*, ...);
165 void    partinit(Device*);
166 int     partread(Device*, Off, void*);
167 Devsize partsize(Device*);
168 int     partwrite(Device*, Off, void*);
169 void    prdate(void);
170 void    preread(Device*, Off);
171 void    prflush(void);
172 int     prime(vlong);
173 void    printinit(void);
174 void    procinit(void);
175 void    procsetname(char *fmt, ...);
176 void    putbuf(Iobuf*);
177 void    putstrn(char *str, int n);
178 Off     qidpathgen(Device*);
179 void    qlock(QLock*);
180 void*   querychanger(Device *);
181 void    qunlock(QLock*);
182 void    rahead(void *);
183 void    ream(Filsys*);
184 void*   fs_recv(Queue*, int);
185 void    rootream(Device*, Off);
186 int     roread(Device*, Off, void*);
187 void    rstate(Chan*, int);
188 Timet   rtc2sec(Rtc *);
189 void    sched(void);
190 void    schedinit(void);
191 int     scsiio(Device*, int, uchar*, int, void*, int);
192 void    scsiinit(void);
193 Off     scsiread(int, void*, long);
194 Devsize scsiseek(int, Devsize);
195 Off     scsiwrite(int, void*, long);
196 char*   sdof(Device*);
197 void    sec2rtc(Timet, Rtc *);
198 void    fs_send(Queue*, void*);
199 void    serve(void *);
200 int     serve9p1(Msgbuf*);
201 int     serve9p2(Msgbuf*);
202 void    settag(Iobuf*, int, long);
203 void    settime(Timet);
204 void    startprint(void);
205 int     strtouid(char*);
206 Off     superaddr(Device*);
207 void    superream(Device*, Off);
208 void    swab(void*, int);
209 void    swab2(void *c);
210 void    swab8(void *c);
211 void    sync(char*);
212 int     syncblock(void);
213 void    sysinit(void);
214 int     testconfig(char *s);
215 int     Tfmt(Fmt*);
216 Timet   nextime(Timet, int, int);
217 Tlock*  tlocked(Iobuf*, Dentry*);
218 Timet   toytime(void);
219 Timet   rtctime(void);
220 void    setrtc(Timet);
221 void    uidtostr(char*, int, int);
222 Uid*    uidpstr(char*);
223 void    unlock(Lock*);
224 void    newproc(void(*)(void *), void*, char*);
225 void    wormcopy(void *);
226 void    wormprobe(void);
227 void    synccopy(void *);
228 long    wormsearch(Device*, int, long, long);
229 int     wormread(Device*, Off, void*);
230 Devsize wormsize(Device*);
231 Devsize wormsizeside(Device *, int side);
232 void    wormsidestarts(Device *dev, int side, Sidestarts *stp);
233 int     wormwrite(Device*, Off, void*);
234 void    wreninit(Device*);
235 int     wrenread(Device*, Off, void*);
236 Devsize wrensize(Device*);
237 int     wrenwrite(Device*, Off, void*);
238 void    cmd_exec(char*);
239 void    cmd_install(char*, char*, void (*)(int, char*[]));
240 ulong   flag_install(char*, char*);
241 void    srvinit(void);
242 Chan    *srvchan(int, char *);
243