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
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)) {
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)
{