From bb7af3f7a94d72a0884fcf9ccf8a1b345cb0f65d Mon Sep 17 00:00:00 2001 From: njn Date: Fri, 22 May 2009 07:08:12 +0000 Subject: DARWIN sync: change the 3rd arg of VG_(fcntl). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10101 a5019735-40e9-0310-863c-91ae7b9d1cf9 --- coregrind/m_libcfile.c | 2 +- coregrind/pub_core_libcfile.h | 2 +- 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 ); -- cgit v1.2.3