|
|
1.1 root 1: #include <u.h>
2: #include <libc.h>
3: #include <../boot/boot.h>
4:
5: extern char *timeserver;
6: static Method *config;
7:
8: static void
9: confighyb(Method *mp, void (*cf)(Method*))
10: {
11: char *save;
12:
13: config = mp;
14: save = mp->arg;
15: mp->arg = 0;
16: (*cf)(mp);
17: mp->arg = save;
18: configlocal(mp);
19: }
20:
21: void
22: confighybrid(Method *mp)
23: {
24: confighyb(mp, config9600);
25: }
26:
27: int
28: authhybrid(void)
29: {
30: return dkauth();
31: }
32:
33: int
34: connecthybrid(void)
35: {
36: int fd;
37:
38: fd = dkconnect();
39: if(fd < 0)
40: fatal("can't connect to file server");
41: doauthenticate(fd, config);
42: /*if(cfs)
43: fd = (*cfs)(fd);*/
44: srvcreate("bootes", fd);
45: timeserver = "#s/bootes";
46: return connectlocal();
47: }
48:
49: void
50: configHybrid(Method *mp)
51: {
52: confighyb(mp, config19200);
53: }
54:
55: int
56: authHybrid(void)
57: {
58: return dkauth();
59: }
60:
61: int
62: connectHybrid(void)
63: {
64: return connecthybrid();
65: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.