git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Architectural Support: x86_64 (#37)
[lunaix-os.git]
/
lunaix-os
/
usr
/
libc
/
src
/
posix
/
fcntl.c
1
#include <lunaix/syscall.h>
2
#include <fcntl.h>
3
4
int
5
open(const char* path, int options)
6
{
7
return do_lunaix_syscall(__SYSCALL_open, path, options);
8
}
9
10
int
11
fstat(int fd, struct file_stat* stat)
12
{
13
return do_lunaix_syscall(__SYSCALL_fstat, fd, stat);
14
}