From: Paul Floyd Date: Sat, 30 Mar 2024 12:25:13 +0000 (+0100) Subject: Solaris: remove syscall close POST X-Git-Tag: VALGRIND_3_23_0~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=feda2fb576168547570d8c4d4e02db6d887a7d11;p=thirdparty%2Fvalgrind.git Solaris: remove syscall close POST And move the extra stuff that it did into PRE --- diff --git a/coregrind/m_syswrap/syswrap-solaris.c b/coregrind/m_syswrap/syswrap-solaris.c index 8e60ebc98..b954c2cfd 100644 --- a/coregrind/m_syswrap/syswrap-solaris.c +++ b/coregrind/m_syswrap/syswrap-solaris.c @@ -1782,16 +1782,7 @@ PRE(sys_close) { WRAPPER_PRE_NAME(generic, sys_close)(tid, layout, arrghs, status, flags); -} - -POST(sys_close) -{ - WRAPPER_POST_NAME(generic, sys_close)(tid, arrghs, status); door_record_revoke(tid, ARG1); - /* Possibly an explicitly open'ed client door fd was just closed. - Generic sys_close wrapper calls this only if VG_(clo_track_fds) = True. */ - if (!VG_(clo_track_fds)) - ML_(record_fd_close)(tid, ARG1); } PRE(sys_linkat) @@ -10829,7 +10820,7 @@ static SyscallTableEntry syscall_table[] = { #if defined(SOLARIS_OLD_SYSCALLS) SOLXY(__NR_open, sys_open), /* 5 */ #endif /* SOLARIS_OLD_SYSCALLS */ - SOLXY(__NR_close, sys_close), /* 6 */ + SOLX_(__NR_close, sys_close), /* 6 */ SOLX_(__NR_linkat, sys_linkat), /* 7 */ #if defined(SOLARIS_OLD_SYSCALLS) GENX_(__NR_link, sys_link), /* 9 */