2 * Copyright (C) 2006 by Latchesar Ionkov <lucho@ionkov.net>
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * LATCHESAR IONKOV AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
24 extern Spuserpool
*sp_unix_users
;
27 Spfcall
*sp_version(Spreq
*req
, Spfcall
*tc
);
28 Spfcall
*sp_auth(Spreq
*req
, Spfcall
*tc
);
29 Spfcall
*sp_attach(Spreq
*req
, Spfcall
*tc
);
30 Spfcall
*sp_flush(Spreq
*req
, Spfcall
*tc
);
31 Spfcall
*sp_walk(Spreq
*req
, Spfcall
*tc
);
32 Spfcall
*sp_open(Spreq
*req
, Spfcall
*tc
);
33 Spfcall
*sp_create(Spreq
*req
, Spfcall
*tc
);
34 Spfcall
*sp_read(Spreq
*req
, Spfcall
*tc
);
35 Spfcall
*sp_write(Spreq
*req
, Spfcall
*tc
);
36 Spfcall
*sp_clunk(Spreq
*req
, Spfcall
*tc
);
37 Spfcall
*sp_remove(Spreq
*req
, Spfcall
*tc
);
38 Spfcall
*sp_stat(Spreq
*req
, Spfcall
*tc
);
39 Spfcall
*sp_wstat(Spreq
*req
, Spfcall
*tc
);
42 void sp_srv_add_req(Spsrv
*srv
, Spreq
*req
);
43 void sp_srv_remove_req(Spsrv
*srv
, Spreq
*req
);
44 void sp_srv_add_workreq(Spsrv
*srv
, Spreq
*req
);
45 void sp_srv_remove_workreq(Spsrv
*srv
, Spreq
*req
);
46 Spreq
*sp_req_alloc(Spconn
*conn
, Spfcall
*tc
);
47 void sp_req_free(Spreq
*req
);
48 void sp_srv_process_fcall(Spconn
*conn
, Spfcall
*tc
);
51 int sp_printstat(FILE *f
, Spstat
*st
, int dotu
);
52 int sp_dump(FILE *f
, u8
*data
, int datalen
);