]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/webfs/fns.h
fix iointerrupt use
[plan9front.git] / sys / src / cmd / webfs / fns.h
1 /* buf.c */
2 void            initibuf(Ibuf*, Ioproc*, int);
3 int             readibuf(Ibuf*, char*, int);
4 void            unreadline(Ibuf*, char*);
5 int             readline(Ibuf*, char*, int);
6
7 /* client.c */
8 int             newclient(int);
9 void            closeclient(Client*);
10 void            clonectl(Ctl*);
11 int             ctlwrite(Req*, Ctl*, char*, char*);
12 int             clientctlwrite(Req*, Client*, char*, char*);
13 int             globalctlwrite(Req*, char*, char*);
14 void            ctlread(Req*, Client*);
15 void            globalctlread(Req*);
16 void            plumburl(char*, char*);
17
18 /* cookies.c */
19 void            cookieread(Req*);
20 void            cookiewrite(Req*);
21 void            cookieopen(Req*);
22 void            cookieclunk(Fid*);
23 void            initcookies(char*);
24 void            closecookies(void);
25 void            httpsetcookie(char*, char*, char*);
26 char*   httpcookies(char*, char*, int);
27
28 /* fs.c */
29 void            initfs(void);
30
31 /* http.c */
32 int             httpopen(Client*, Url*);
33 int             httpread(Client*, Req*);
34 void            httpclose(Client*);
35
36 /* io.c */
37 int             iotlsdial(Ioproc*, char*, char*, char*, int*, int);
38 int             ioprint(Ioproc*, int, char*, ...);
39 #pragma varargck argpos ioprint 3
40
41 /* plumb.c */
42 void    plumbinit(void);
43 void    plumbstart(void);
44 void    replumb(Client*);
45
46 /* url.c */
47 Url*            parseurl(char*, Url*);
48 void            freeurl(Url*);
49 void            rewriteurl(Url*);
50 int             seturlquery(Url*, char*);
51 Url*            copyurl(Url*);
52 char*   escapeurl(char*, int(*)(int));
53 char*   unescapeurl(char*);
54 void            initurl(void);
55
56 /* util.c */
57 char*   estrdup(char*);
58 char*   estrmanydup(char*, ...);
59 char*   estredup(char*, char*);
60 void*   emalloc(uint);
61 void*   erealloc(void*, uint);
62 char*   strlower(char*);