]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/cwfs/portfns.h
cwfs: fix network listener, relay auth errors. boot(8): split bootargs only on first...
[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(Chan*, File*, uchar*, int);
8 int     authwrite(Chan*, 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 ulong   meminit(void);
135 Iobuf*  movebuf(Iobuf*);
136 void    mcatinit(Device*);
137 int     mcatread(Device*, Off, void*);
138 Devsize mcatsize(Device*);
139 int     mcatwrite(Device*, Off, void*);
140 void    mirrinit(Device*);
141 int     mirrread(Device*, Off, void*);
142 Devsize mirrsize(Device*);
143 int     mirrwrite(Device*, Off, void*);
144 void    mkqid(Qid*, Dentry*, int);
145 int     mkqidcmp(Qid*, Dentry*);
146 void    mkqid9p1(Qid9p1*, Qid*);
147 void    mkqid9p2(Qid*, Qid9p1*, int);
148 void    mlevinit(Device*);
149 int     mlevread(Device*, Off, void*);
150 Devsize mlevsize(Device*);
151 int     mlevwrite(Device*, Off, void*);
152 int     nametokey(char*, char*);
153 File*   newfp(void);
154 void    newscsi(Device *d, Scsi *sc);
155 Queue*  newqueue(int, char*);
156 void    newstart(void);
157 Wpath*  newwp(void);
158 int     nvrcheck(void);
159 char*   nvrgetconfig(void);
160 int     nvrsetconfig(char*);
161 int     walkto(char*);
162 vlong   number(char*, int, int);
163 int     okay(char *quest);
164 void    online(void);
165 void    panic(char*, ...);
166 void    partinit(Device*);
167 int     partread(Device*, Off, void*);
168 Devsize partsize(Device*);
169 int     partwrite(Device*, Off, void*);
170 void    prdate(void);
171 void    preread(Device*, Off);
172 void    prflush(void);
173 int     prime(vlong);
174 void    printinit(void);
175 void    procinit(void);
176 void    procsetname(char *fmt, ...);
177 void    putbuf(Iobuf*);
178 void    putstrn(char *str, int n);
179 Off     qidpathgen(Device*);
180 void    qlock(QLock*);
181 void*   querychanger(Device *);
182 void    qunlock(QLock*);
183 void    rahead(void *);
184 void    ream(Filsys*);
185 void*   fs_recv(Queue*, int);
186 void    rootream(Device*, Off);
187 int     roread(Device*, Off, void*);
188 void    rstate(Chan*, int);
189 Timet   rtc2sec(Rtc *);
190 void    sched(void);
191 void    schedinit(void);
192 int     scsiio(Device*, int, uchar*, int, void*, int);
193 void    scsiinit(void);
194 Off     scsiread(int, void*, long);
195 Devsize scsiseek(int, Devsize);
196 Off     scsiwrite(int, void*, long);
197 char*   sdof(Device*);
198 void    sec2rtc(Timet, Rtc *);
199 void    fs_send(Queue*, void*);
200 void    serve(void *);
201 int     serve9p1(Msgbuf*);
202 int     serve9p2(Msgbuf*);
203 void    settag(Iobuf*, int, long);
204 void    settime(Timet);
205 void    startprint(void);
206 int     strtouid(char*);
207 Off     superaddr(Device*);
208 void    superream(Device*, Off);
209 void    swab(void*, int);
210 void    swab2(void *c);
211 void    swab8(void *c);
212 void    sync(char*);
213 int     syncblock(void);
214 void    sysinit(void);
215 int     testconfig(char *s);
216 int     Tfmt(Fmt*);
217 Timet   nextime(Timet, int, int);
218 Tlock*  tlocked(Iobuf*, Dentry*);
219 Timet   toytime(void);
220 Timet   rtctime(void);
221 void    setrtc(Timet);
222 void    uidtostr(char*, int, int);
223 Uid*    uidpstr(char*);
224 void    unlock(Lock*);
225 void    newproc(void(*)(void *), void*, char*);
226 void    wormcopy(void *);
227 void    wormprobe(void);
228 void    synccopy(void *);
229 long    wormsearch(Device*, int, long, long);
230 int     wormread(Device*, Off, void*);
231 Devsize wormsize(Device*);
232 Devsize wormsizeside(Device *, int side);
233 void    wormsidestarts(Device *dev, int side, Sidestarts *stp);
234 int     wormwrite(Device*, Off, void*);
235 void    wreninit(Device*);
236 int     wrenread(Device*, Off, void*);
237 Devsize wrensize(Device*);
238 int     wrenwrite(Device*, Off, void*);
239 void    cmd_exec(char*);
240 void    cmd_install(char*, char*, void (*)(int, char*[]));
241 ulong   flag_install(char*, char*);
242 void    srvinit(void);
243 Chan    *srvchan(int, char *);
244