aboutsummaryrefslogtreecommitdiff
path: root/src/change_log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/change_log.cc')
-rw-r--r--src/change_log.cc20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/change_log.cc b/src/change_log.cc
index 8ff99e4..ae28079 100644
--- a/src/change_log.cc
+++ b/src/change_log.cc
@@ -1,7 +1,3 @@
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-
#include "actual_function.h"
#include "utility/io.h"
@@ -83,6 +79,14 @@ ssize_t writev(int fd, const iovec* iov, int iovcnt) {
return actual::writev(fd, iov, iovcnt);
}
+void* mmap(void* addr, size_t length, int prot, int flags, int fd, off_t offset) {
+ if ( prot & PROT_WRITE ) {
+ track_write(fd);
+ }
+
+ return actual::mmap(addr, length, prot, flags, fd, offset);
+}
+
int rename(const char* old_path, const char* new_path) {
track_rename(old_path, new_path);
@@ -110,11 +114,3 @@ int unlinkat(int dirfd, const char* path, int flags) {
return actual::unlinkat(dirfd, path, flags);
}
-
-void* mmap(void* addr, size_t length, int prot, int flags, int fd, off_t offset) {
- if ( prot & PROT_WRITE ) {
- track_write(fd);
- }
-
- return actual::mmap(addr, length, prot, flags, fd, offset);
-}