]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips32: hook up sethostname syscall
authorPetar Jovanovic <mips32r2@gmail.com>
Mon, 19 Aug 2019 17:23:58 +0000 (17:23 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Mon, 19 Aug 2019 17:23:58 +0000 (17:23 +0000)
Hook up sethostname syscall for mips32.

This fixes sethostname01 and several other tests in the LTP test suite.

coregrind/m_syswrap/syswrap-mips32-linux.c

index f32e02d5932446a0a2fdfe7654a165ac3d3a86b3..0f29acab6c9e9f9824b91c507aab97609e5f965f 100644 (file)
@@ -839,7 +839,7 @@ static SyscallTableEntry syscall_main_table[] = {
    GENX_ (__NR_setregid,               sys_setregid),                // 71
    //   PLAX_(__NR_sigsuspend,        sys_sigsuspend),        // 72
    LINXY (__NR_sigpending,             sys_sigpending),              // 73
-   //..    //   (__NR_sethostname,       sys_sethostname),       // 74
+   GENX_ (__NR_sethostname,            sys_sethostname),             // 74
    GENX_ (__NR_setrlimit,              sys_setrlimit),               // 75
    GENXY (__NR_getrlimit,              sys_getrlimit),               // 76
    GENXY (__NR_getrusage,              sys_getrusage),               // 77