X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ffcntl%2Fopenat.c;h=ad165ec323f77ac3c91b91573f46a3a5802af6c3;hb=4d3a162d001a93edd285fb6603a883c30ae553ba;hp=4faeb29613ab5e0a5a45bdcba5bd059260bebfd1;hpb=2da3ab1382ca8e39eb1e4428103764a81fba73d3;p=musl diff --git a/src/fcntl/openat.c b/src/fcntl/openat.c index 4faeb296..ad165ec3 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; @@ -17,4 +16,4 @@ int openat(int fd, const char *filename, int flags, ...) return syscall_cp(SYS_openat, fd, filename, flags|O_LARGEFILE, mode); } -LFS64(openat); +weak_alias(openat, openat64);