]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/cwfs/portfns.h
cwfs: fix 1GB memsize limitation
[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);
19 Chan*   fs_chaninit(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 Dentry* getdir(Iobuf*, int);
94 Chan*   getlcp(uchar*, long);
95 Off     getraddr(Device*);
96 void    hexdump(void*, int);
97 int     iaccess(File*, Dentry*, int);
98 void*   ialloc(uintptr, int);
99 Off     ibbpow(int);
100 Off     ibbpowsum(int);
101 Device* iconfig(char *);
102 Off     indfetch(Device*, Off, Off, Off , int, int, int);
103 int     ingroup(int, int);
104 int     inh(int, uchar*);
105 Devsize inqsize(char *file);
106 void    iobufinit(void);
107 void*   iobufmap(Iobuf*);
108 void    iobufunmap(Iobuf*);
109 int     iobufql(QLock*);
110 int     jukeread(Device*, Off, void*);
111 int     jukewrite(Device*, Off, void*);
112 void    jukeinit(Device*);
113 void    jukeream(Device*);
114 void    jukerecover(Device*);
115 Off     jukesaddr(Device*);
116 Devsize jukesize(Device*);
117 void    kbdchar(int);
118 void    lights(int, int);
119 void    launchinit(void);
120 void    localconfinit(void);
121 int     leadgroup(int, int);
122 void    lock(Lock*);
123 void    lockinit(void);
124 void    machinit(void);
125 Msgbuf* mballoc(int, Chan*, int);
126 void    mbinit(void);
127 void    mbfree(Msgbuf*);
128 Iobuf*  movebuf(Iobuf*);
129 void    mcatinit(Device*);
130 int     mcatread(Device*, Off, void*);
131 Devsize mcatsize(Device*);
132 int     mcatwrite(Device*, Off, void*);
133 void    mirrinit(Device*);
134 int     mirrread(Device*, Off, void*);
135 Devsize mirrsize(Device*);
136 int     mirrwrite(Device*, Off, void*);
137 void    mkqid(Qid*, Dentry*, int);
138 int     mkqidcmp(Qid*, Dentry*);
139 void    mkqid9p1(Qid9p1*, Qid*);
140 void    mkqid9p2(Qid*, Qid9p1*, int);
141 void    mlevinit(Device*);
142 int     mlevread(Device*, Off, void*);
143 Devsize mlevsize(Device*);
144 int     mlevwrite(Device*, Off, void*);
145 int     nametokey(char*, char*);
146 File*   newfp(void);
147 void    newscsi(Device *d, Scsi *sc);
148 Queue*  newqueue(int, char*);
149 void    newstart(void);
150 Wpath*  newwp(void);
151 int     nvrcheck(void);
152 char*   nvrgetconfig(void);
153 int     nvrsetconfig(char*);
154 int     walkto(char*);
155 vlong   number(char*, int, int);
156 int     okay(char *quest);
157 void    online(void);
158 void    panic(char*, ...);
159 void    partinit(Device*);
160 int     partread(Device*, Off, void*);
161 Devsize partsize(Device*);
162 int     partwrite(Device*, Off, void*);
163 void    prdate(void);
164 void    preread(Device*, Off);
165 int     prime(vlong);
166 void    printinit(void);
167 void    procinit(void);
168 void    procsetname(char *fmt, ...);
169 void    putbuf(Iobuf*);
170 Off     qidpathgen(Device*);
171 void    qlock(QLock*);
172 void*   querychanger(Device *);
173 void    qunlock(QLock*);
174 void    rahead(void *);
175 void    ream(Filsys*);
176 void*   fs_recv(Queue*, int);
177 void    rootream(Device*, Off);
178 int     roread(Device*, Off, void*);
179 void    rstate(Chan*, int);
180 Timet   rtc2sec(Rtc *);
181 void    sched(void);
182 void    schedinit(void);
183 int     scsiio(Device*, int, uchar*, int, void*, int);
184 void    scsiinit(void);
185 Off     scsiread(int, void*, long);
186 Devsize scsiseek(int, Devsize);
187 Off     scsiwrite(int, void*, long);
188 char*   sdof(Device*);
189 void    sec2rtc(Timet, Rtc *);
190 void    fs_send(Queue*, void*);
191 void    serve(void *);
192 int     serve9p1(Msgbuf*);
193 int     serve9p2(Msgbuf*);
194 void    settag(Iobuf*, int, long);
195 void    settime(Timet);
196 int     strtouid(char*);
197 Off     superaddr(Device*);
198 void    superream(Device*, Off);
199 void    swab(void*, int);
200 void    swab2(void *c);
201 void    swab8(void *c);
202 void    sync(char*);
203 int     syncblock(void);
204 void    sysinit(void);
205 int     testconfig(char *s);
206 int     Tfmt(Fmt*);
207 Timet   nextime(Timet, int, int);
208 Tlock*  tlocked(Iobuf*, Dentry*);
209 Timet   toytime(void);
210 Timet   rtctime(void);
211 void    setrtc(Timet);
212 void    uidtostr(char*, int, int);
213 Uid*    uidpstr(char*);
214 void    unlock(Lock*);
215 void    newproc(void(*)(void *), void*, char*);
216 void    wormcopy(void *);
217 void    wormprobe(void);
218 void    synccopy(void *);
219 long    wormsearch(Device*, int, long, long);
220 int     wormread(Device*, Off, void*);
221 Devsize wormsize(Device*);
222 Devsize wormsizeside(Device *, int side);
223 void    wormsidestarts(Device *dev, int side, Sidestarts *stp);
224 int     wormwrite(Device*, Off, void*);
225 void    wreninit(Device*);
226 int     wrenread(Device*, Off, void*);
227 Devsize wrensize(Device*);
228 int     wrenwrite(Device*, Off, void*);
229 void    cmd_exec(char*);
230 void    cmd_install(char*, char*, void (*)(int, char*[]));
231 ulong   flag_install(char*, char*);
232 void    srvinit(void);
233 Chan    *srvchan(int, char *);
234