From 6f549419ebf588986daa99135c7cdb1b11002b56 Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Mon, 20 Jul 2015 09:15:21 -0500 Subject: syscall_emul: [patch 11/22] extend functionality of fcntl This changeset adds the ability to set a close-on-exec flag for a given file descriptor. It also reworks some of the logic surrounding setting and retrieving flags from the file description. --- src/arch/x86/linux/process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch/x86/linux/process.cc') diff --git a/src/arch/x86/linux/process.cc b/src/arch/x86/linux/process.cc index cf3a1d3d0..a5078c617 100644 --- a/src/arch/x86/linux/process.cc +++ b/src/arch/x86/linux/process.cc @@ -598,7 +598,7 @@ static SyscallDesc syscallDescs32[] = { /* 52 */ SyscallDesc("umount2", unimplementedFunc), /* 53 */ SyscallDesc("lock", unimplementedFunc), /* 54 */ SyscallDesc("ioctl", ioctlFunc), - /* 55 */ SyscallDesc("fcntl", unimplementedFunc), + /* 55 */ SyscallDesc("fcntl", fcntlFunc), /* 56 */ SyscallDesc("mpx", unimplementedFunc), /* 57 */ SyscallDesc("setpgid", unimplementedFunc), /* 58 */ SyscallDesc("ulimit", unimplementedFunc), -- cgit v1.2.3