]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
syswrap cleanup: remove Solaris references in generic sys_open
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 14 Feb 2026 12:36:02 +0000 (13:36 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 14 Feb 2026 12:36:02 +0000 (13:36 +0100)
On Solaris sys_open is handled in syswrap-solaris.c

coregrind/m_syswrap/syswrap-generic.c

index d8910fdbaf944ff8e9e02632524691e546f7fe9d..592a1276607e5dca029f4d10e2fdf650eaf45502 100644 (file)
@@ -4773,7 +4773,7 @@ POST(sys_nanosleep)
       POST_MEM_WRITE( ARG2, sizeof(struct vki_timespec) );
 }
 
-#if defined(VGO_linux) || defined(VGO_solaris)
+#if defined(VGO_linux)
 /* Handles the case where the open is of /proc/self/auxv or
    /proc/<pid>/auxv, and just gives out a copy of the fd for the
    fake file we cooked up at startup (in m_main).  Also, seeks the
@@ -4798,11 +4798,6 @@ Bool ML_(handle_auxv_open)(SyscallStatus *status, const HChar *filename,
       return True;
    }
 
-#  if defined(VGO_solaris)
-   VG_(sprintf)(name, "/proc/self/fd/%d", VG_(cl_auxv_fd));
-   SysRes sres = VG_(open)(name, flags, 0);
-   SET_STATUS_from_SysRes(sres);
-#  else
    SysRes sres = VG_(dup)(VG_(cl_auxv_fd));
    SET_STATUS_from_SysRes(sres);
    if (!sr_isError(sres)) {
@@ -4810,13 +4805,10 @@ Bool ML_(handle_auxv_open)(SyscallStatus *status, const HChar *filename,
       if (off < 0)
          SET_STATUS_Failure(VKI_EMFILE);
    }
-#  endif
 
    return True;
 }
-#endif // defined(VGO_linux) || defined(VGO_solaris)
 
-#if defined(VGO_linux)
 Bool ML_(handle_self_exe_open)(SyscallStatus *status, const HChar *filename,
                                int flags)
 {