From e7ea6cbefdddd63851d3e9b7bc1f82c2c2985756 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 1 Jun 2012 18:48:39 -0700 Subject: linux-user: Translate pipe2 flags; add to strace Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- linux-user/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linux-user/syscall.c') diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7d149a1570..07823e176b 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5595,7 +5595,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, break; #ifdef TARGET_NR_pipe2 case TARGET_NR_pipe2: - ret = do_pipe(cpu_env, arg1, arg2, 1); + ret = do_pipe(cpu_env, arg1, + target_to_host_bitmask(arg2, fcntl_flags_tbl), 1); break; #endif case TARGET_NR_times: -- cgit v1.2.1