]> git.proxmox.com Git - mirror_qemu.git/commitdiff
linux-user: Translate pipe2 flags; add to strace
authorRichard Henderson <rth@twiddle.net>
Sat, 2 Jun 2012 01:48:39 +0000 (18:48 -0700)
committerRichard Henderson <rth@twiddle.net>
Sat, 4 Aug 2012 16:37:49 +0000 (09:37 -0700)
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
linux-user/strace.list
linux-user/syscall.c

index a7eeaef99fd5eb29dce6710ab807fca6389f911c..af3c6a0ccede1120c1de2d9adb6e309063d3fc4e 100644 (file)
 #ifdef TARGET_NR_sync_file_range2
 { TARGET_NR_sync_file_range2, "sync_file_range2", NULL, NULL, NULL },
 #endif
+#ifdef TARGET_NR_pipe2
+{ TARGET_NR_pipe2, "pipe2", NULL, NULL, NULL },
+#endif
index 7d149a1570ede3c637bbf85b17d99172ee066b2d..07823e176b812d0bb33847a1d8491b609a35c9b0 100644 (file)
@@ -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: