repo.or.cz
/
ZeXOS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
added znfs daemon - for znfs host side; touch.c was missing
[ZeXOS.git]
/
tools
/
znfsd
/
main.c
blob
bad99c8ca588180a95d494f285909bc712c06cd2
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include
"client.h"
4
5
int
init
()
6
{
7
if
(!
net_init
())
8
return
0
;
9
10
if
(!
client_init
())
11
return
0
;
12
13
chroot
(
"root"
);
14
15
return
1
;
16
}
17
18
int
loop
()
19
{
20
int
ret
=
1
;
21
22
while
(
ret
)
23
ret
=
net_loop
();
24
}
25
26
int
main
(
int
argc
,
char
**
argv
)
27
{
28
printf
(
"ZeX/OS Network FileSystem Daemon
\n
"
);
29
30
if
(!
init
()) {
31
printf
(
"> ERROR -> !init ()
\n
"
);
32
return
-
1
;
33
}
34
35
loop
();
36
37
return
0
;
38
}