]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin syscall: fix build with fd checks
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 13 Sep 2025 10:51:17 +0000 (12:51 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 13 Sep 2025 10:51:17 +0000 (12:51 +0200)
Missed a couple of places where there is a fd variable used in macros and function calls.

coregrind/m_syswrap/syswrap-darwin.c

index 761965d61072623b70d97a9215bd8e87c6617c43..d6df8b9969643561c37629c3e5d5651073ddfbb4 100644 (file)
@@ -9858,6 +9858,7 @@ POST(getattrlistbulk)
 
 PRE(faccessat)
 {
+    Int fd = ARG1;
     PRINT("faccessat(fd:%d, path:%#lx(%s), amode:%#lx, flag:%#lx)",
           fd, ARG2, ARG2 ? (HChar*)ARG2 : "null", ARG3, ARG4);
     PRE_REG_READ4(int, "faccessat",
@@ -9868,6 +9869,7 @@ PRE(faccessat)
 
 PRE(fstatat64)
 {
+    Int fd = ARG1;
     PRINT("fstatat64(fd:%d, path:%#lx(%s), ub:%#lx, flag:%#lx)",
           fd, ARG2, ARG2 ? (HChar*)ARG2 : "null", ARG3, ARG4);
     PRE_REG_READ4(int, "fstatat64",