summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-05-22 07:08:12 +0000
committernjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-05-22 07:08:12 +0000
commitbb7af3f7a94d72a0884fcf9ccf8a1b345cb0f65d (patch)
treeb764a8139745f3c8181ce76908655c4a101b232b
parent0cd5d9737fa3cd7788203c2bf2b4468059eb3dc5 (diff)
DARWIN sync: change the 3rd arg of VG_(fcntl).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10101 a5019735-40e9-0310-863c-91ae7b9d1cf9
-rw-r--r--coregrind/m_libcfile.c2
-rw-r--r--coregrind/pub_core_libcfile.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/coregrind/m_libcfile.c b/coregrind/m_libcfile.c
index 50be7c00..9cddfc00 100644
--- a/coregrind/m_libcfile.c
+++ b/coregrind/m_libcfile.c
@@ -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);
diff --git a/coregrind/pub_core_libcfile.h b/coregrind/pub_core_libcfile.h
index dbd4ca86..548f1b4d 100644
--- a/coregrind/pub_core_libcfile.h
+++ b/coregrind/pub_core_libcfile.h
@@ -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 );