]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Changes for tilegx: Use VKI_AT_FDCWD not AT_FDCWD.
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 13 May 2015 21:26:46 +0000 (21:26 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 13 May 2015 21:26:46 +0000 (21:26 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15227

coregrind/m_aspacemgr/aspacemgr-common.c
coregrind/m_libcfile.c
include/vki/vki-scnums-tilegx-linux.h

index 21f1e0e73966c3feed029209f50a31f74f9292f9..a235875536b6e4069a2da5aa82fea5599952941e 100644 (file)
@@ -247,7 +247,7 @@ SysRes ML_(am_open) ( const HChar* pathname, Int flags, Int mode )
    SysRes res = VG_(do_syscall4)(__NR_openat,
                                  VKI_AT_FDCWD, (UWord)pathname, flags, mode);
 #  elif defined(VGP_tilegx_linux)
-   SysRes res = VG_(do_syscall4)(__NR_openat, AT_FDCWD, (UWord)pathname,
+   SysRes res = VG_(do_syscall4)(__NR_openat, VKI_AT_FDCWD, (UWord)pathname,
                                  flags, mode);
 #  else
    SysRes res = VG_(do_syscall3)(__NR_open, (UWord)pathname, flags, mode);
@@ -273,8 +273,8 @@ Int ML_(am_readlink)(const HChar* path, HChar* buf, UInt bufsiz)
    res = VG_(do_syscall4)(__NR_readlinkat, VKI_AT_FDCWD,
                                            (UWord)path, (UWord)buf, bufsiz);
 #  elif defined(VGP_tilegx_linux)
-   res = VG_(do_syscall4)(__NR_readlinkat, AT_FDCWD, (UWord)path, (UWord)buf,
-                          bufsiz);
+   res = VG_(do_syscall4)(__NR_readlinkat, VKI_AT_FDCWD, (UWord)path,
+                          (UWord)buf, bufsiz);
 #  else
    res = VG_(do_syscall3)(__NR_readlink, (UWord)path, (UWord)buf, bufsiz);
 #  endif
index 8506f5d614be37c1ca4454f0598ca12848875bb6..ce442ec7890fceac9c30c7dc39ff6cc508875a86 100644 (file)
@@ -435,7 +435,7 @@ Int VG_(fcntl) ( Int fd, Int cmd, Addr arg )
 Int VG_(rename) ( const HChar* old_name, const HChar* new_name )
 {
 #  if defined(VGP_tilegx_linux)
-   SysRes res = VG_(do_syscall3)(__NR_renameat, AT_FDCWD,
+   SysRes res = VG_(do_syscall3)(__NR_renameat, VKI_AT_FDCWD,
                                  (UWord)old_name, (UWord)new_name);
 #  else
    SysRes res = VG_(do_syscall2)(__NR_rename, (UWord)old_name, (UWord)new_name);
index 5d942157acccf2ec3895dfb7c0f6df038da5ea43..3a780301a8886f2cfe0de44c88945a60309850cc 100644 (file)
@@ -33,8 +33,6 @@
 #ifndef __VKI_SCNUMS_TILEGX_LINUX_H
 #define __VKI_SCNUMS_TILEGX_LINUX_H
 
-#define AT_FDCWD    -100
-
 /* From tilegx linux/include/asm-generic/unistd.h */
 
 #define __NR_io_setup 0