repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git]
/
lib
/
posix
/
_creat.c
blob
b4f475848ae66898381a6725eba61858fdfb7b9e
1
#include <lib.h>
2
#define creat _creat
3
#include <fcntl.h>
4
5
PUBLIC
int
creat
(
name
,
mode
)
6
_CONST
char
*
name
;
7
_mnx_Mode_t mode
;
8
{
9
message m
;
10
11
m
.
m3_i2
=
mode
;
12
_loadname
(
name
, &
m
);
13
return
(
_syscall
(
FS
,
CREAT
, &
m
));
14
}