|
From: <sv...@va...> - 2009-05-22 07:08:20
|
Author: njn
Date: 2009-05-22 08:08:12 +0100 (Fri, 22 May 2009)
New Revision: 10101
Log:
DARWIN sync: change the 3rd arg of VG_(fcntl).
Modified:
trunk/coregrind/m_libcfile.c
trunk/coregrind/pub_core_libcfile.h
Modified: trunk/coregrind/m_libcfile.c
===================================================================
--- trunk/coregrind/m_libcfile.c 2009-05-22 06:42:14 UTC (rev 10100)
+++ trunk/coregrind/m_libcfile.c 2009-05-22 07:08:12 UTC (rev 10101)
@@ -299,7 +299,7 @@
}
/* 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);
Modified: trunk/coregrind/pub_core_libcfile.h
===================================================================
--- trunk/coregrind/pub_core_libcfile.h 2009-05-22 06:42:14 UTC (rev 10100)
+++ trunk/coregrind/pub_core_libcfile.h 2009-05-22 07:08:12 UTC (rev 10101)
@@ -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 );
|