repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fail posix_spawn file_actions operations with negative fds
[musl.git]
/
src
/
fcntl
/
posix_fallocate.c
blob
c57a24aef4d9aa7da437bac0d4ec32522c8cfc01
1
#include <fcntl.h>
2
#include
"syscall.h"
3
4
int
posix_fallocate
(
int
fd
,
off_t base
,
off_t len
)
5
{
6
return
-
__syscall
(
SYS_fallocate
,
fd
,
0
,
__SYSCALL_LL_E
(
base
),
7
__SYSCALL_LL_E
(
len
));
8
}
9
10
weak_alias
(
posix_fallocate
,
posix_fallocate64
);