From 5a6b76272c52cd85faa99269f0cfa0bcbd0149e0 Mon Sep 17 00:00:00 2001 From: Tony Gutierrez Date: Tue, 1 May 2018 18:30:07 -0400 Subject: [PATCH] arch-x86: Enable the umask system call Change-Id: I309beb1604657e8d1807ac90458709df57f0f819 Reviewed-on: https://gem5-review.googlesource.com/10161 Reviewed-by: Gabe Black Reviewed-by: Jason Lowe-Power Maintainer: Brandon Potter --- src/arch/x86/linux/process.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc index 1bde67e4d..d464beb91 100644 --- a/src/arch/x86/linux/process.cc +++ b/src/arch/x86/linux/process.cc @@ -315,7 +315,7 @@ static SyscallDesc syscallDescs64[] = { /* 92 */ SyscallDesc("chown", unimplementedFunc), /* 93 */ SyscallDesc("fchown", unimplementedFunc), /* 94 */ SyscallDesc("lchown", unimplementedFunc), - /* 95 */ SyscallDesc("umask", unimplementedFunc), + /* 95 */ SyscallDesc("umask", umaskFunc), /* 96 */ SyscallDesc("gettimeofday", gettimeofdayFunc), /* 97 */ SyscallDesc("getrlimit", getrlimitFunc), /* 98 */ SyscallDesc("getrusage", getrusageFunc), @@ -609,7 +609,7 @@ static SyscallDesc syscallDescs32[] = { /* 57 */ SyscallDesc("setpgid", setpgidFunc), /* 58 */ SyscallDesc("ulimit", unimplementedFunc), /* 59 */ SyscallDesc("oldolduname", unimplementedFunc), - /* 60 */ SyscallDesc("umask", unimplementedFunc), + /* 60 */ SyscallDesc("umask", umaskFunc), /* 61 */ SyscallDesc("chroot", unimplementedFunc), /* 62 */ SyscallDesc("ustat", unimplementedFunc), /* 63 */ SyscallDesc("dup2", dup2Func), -- 2.30.2