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