repo.or.cz
/
fse.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add a refer book
[fse.git]
/
main.c
blob
d6c8c3f4421c287e0bc5f81a3d59c3ead303b551
1
#include <stdio.h>
2
#include <sys/stat.h>
3
#include <fcntl.h>
4
#include <unistd.h>
5
6
#include
"hash_index.h"
7
8
extern
void
fetch
(
void
);
9
10
static void
init
()
11
{
12
if
(
mkdir
(
HASH_DIR
,
0700
) <
0
) {
13
printf
(
"ERROR: init hash dir error!
\n
"
);
14
return
;
15
}
16
}
17
18
19
int
main
(
void
)
20
{
21
init
();
22
23
fetch
();
24
return
0
;
25
}