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