Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add openat and friends

  • Loading branch information...
commit 83c9a7ed7a7159bc5079d98a19733710c6a79366 1 parent 6f1bc3b
leitner authored
View
1  CHANGES
@@ -38,6 +38,7 @@
various build fixes, add sys/atomic.h and the __CAS function
redo nice with get/setpriority as glibc does (Thierry Vignaud)
add fdopendir
+ add openat and friends
0.32:
add mbsinit, mbrlen, mbtowc, wctomb, mbrtowc, wcrtomb, wcwidth
View
2  include/fcntl.h
@@ -649,7 +649,7 @@ int sync_file_range(int fd, off64_t offset, off64_t nbytes, unsigned int flags)
int fallocate(int fd, int mode, loff_t offset, loff_t len) __THROW;
#endif
-#ifdef _ATFILE_SOURCE
+#if defined(_ATFILE_SOURCE) || _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
#define AT_FDCWD -100 /* Special value used to indicate openat should use the current working directory. */
#define AT_SYMLINK_NOFOLLOW 0x100 /* Do not follow symbolic links. */
#define AT_REMOVEDIR 0x200 /* Remove directory instead of unlinking file. */
View
3  syscalls.s/faccessat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(faccessat,faccessat)
View
3  syscalls.s/fchmodat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(fchmodat,fchmodat)
View
3  syscalls.s/fchownat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(fchownat,fchownat)
View
3  syscalls.s/futimesat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(futimesat,futimesat)
View
3  syscalls.s/linkat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(linkat,linkat)
View
3  syscalls.s/mkdirat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(mkdirat,mkdirat)
View
3  syscalls.s/mknodat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(mknodat,mknodat)
View
3  syscalls.s/newfstatat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(newfstatat,newfstatat)
View
3  syscalls.s/openat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall_weak(openat,openat,__libc_openat)
View
3  syscalls.s/readlinkat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(readlinkat,readlinkat)
View
3  syscalls.s/renameat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(renameat,renameat)
View
3  syscalls.s/symlinkat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(symlinkat,symlinkat)
View
3  syscalls.s/unlinkat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(unlinkat,unlinkat)
View
3  syscalls.s/utimensat.S
@@ -0,0 +1,3 @@
+#include "syscalls.h"
+
+syscall(utimensat,utimensat)
Please sign in to comment.
Something went wrong with that request. Please try again.