linux-user: Translate pipe2 flags; add to strace

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
Richard Henderson 2012-06-01 18:48:39 -07:00
parent a5e7ee467c
commit e7ea6cbefd
2 changed files with 5 additions and 1 deletions

View file

@ -1527,3 +1527,6 @@
#ifdef TARGET_NR_sync_file_range2 #ifdef TARGET_NR_sync_file_range2
{ TARGET_NR_sync_file_range2, "sync_file_range2", NULL, NULL, NULL }, { TARGET_NR_sync_file_range2, "sync_file_range2", NULL, NULL, NULL },
#endif #endif
#ifdef TARGET_NR_pipe2
{ TARGET_NR_pipe2, "pipe2", NULL, NULL, NULL },
#endif

View file

@ -5595,7 +5595,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
break; break;
#ifdef TARGET_NR_pipe2 #ifdef TARGET_NR_pipe2
case 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; break;
#endif #endif
case TARGET_NR_times: case TARGET_NR_times: