X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffcntl%2Fopenat.c;h=83a9e0d008c46da269963bc18eceffd81196b472;hb=8949da7ab1c0dbf801e8bc78f0c0adc625020f75;hp=4faeb29613ab5e0a5a45bdcba5bd059260bebfd1;hpb=2da3ab1382ca8e39eb1e4428103764a81fba73d3;p=musl diff --git a/src/fcntl/openat.c b/src/fcntl/openat.c index 4faeb296..83a9e0d0 100644 --- a/src/fcntl/openat.c +++ b/src/fcntl/openat.c @@ -1,11 +1,10 @@ #include #include #include "syscall.h" -#include "libc.h" int openat(int fd, const char *filename, int flags, ...) { - mode_t mode; + mode_t mode = 0; if ((flags & O_CREAT) || (flags & O_TMPFILE) == O_TMPFILE) { va_list ap; @@ -16,5 +15,3 @@ int openat(int fd, const char *filename, int flags, ...) return syscall_cp(SYS_openat, fd, filename, flags|O_LARGEFILE, mode); } - -LFS64(openat);