repo.or.cz
/
erinaco.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add recursive scanning
[erinaco.git]
/
open.c
blob
a795206d3c20b3f869d99de208a1d396033c2a95
1
#include <unistd.h>
2
#include <fcntl.h>
3
4
int
open_read
(
const char
*
filename
) {
5
return
open
(
filename
,
O_RDONLY
);
6
}
7
8
int
open_readwrite
(
const char
*
filename
)
9
{
10
return
open
(
filename
,
O_RDWR
|
O_TRUNC
|
O_CREAT
,
0644
);
11
}