]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
DARWIN sync: change the 3rd arg of VG_(fcntl).
authorNicholas Nethercote <njn@valgrind.org>
Fri, 22 May 2009 07:08:12 +0000 (07:08 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Fri, 22 May 2009 07:08:12 +0000 (07:08 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10101

coregrind/m_libcfile.c
coregrind/pub_core_libcfile.h

index 50be7c00cb4ac8be68db13acf08eab1e9b096a63..9cddfc0058a437069d6536ef1de959093396a8c7 100644 (file)
@@ -299,7 +299,7 @@ SysRes VG_(dup2) ( Int oldfd, Int newfd )
 }
 
 /* Returns -1 on error. */
-Int VG_(fcntl) ( Int fd, Int cmd, Int arg )
+Int VG_(fcntl) ( Int fd, Int cmd, Addr arg )
 {
    SysRes res = VG_(do_syscall3)(__NR_fcntl, fd, cmd, arg);
    return sr_isError(res) ? -1 : sr_Res(res);
index dbd4ca86956564ada73faf5cbc2f61c47c98281f..548f1b4d709fca1f909cc90b9c153edb6224c855 100644 (file)
@@ -41,7 +41,7 @@
 
 /* Move an fd into the Valgrind-safe range */
 extern Int VG_(safe_fd) ( Int oldfd );
-extern Int VG_(fcntl)   ( Int fd, Int cmd, Int arg );
+extern Int VG_(fcntl)   ( Int fd, Int cmd, Addr arg );
 
 /* Convert an fd into a filename */
 extern Bool VG_(resolve_filename) ( Int fd, HChar* buf, Int n_buf );