]> granicus.if.org Git - strace/commit
Decode paths associated with file descriptors returned by syscalls
authorZubin Mithra <zubin.mithra@gmail.com>
Wed, 4 Jun 2014 03:00:41 +0000 (08:30 +0530)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 4 Jun 2014 16:28:04 +0000 (16:28 +0000)
commit64aa1b1e2dd14c5259bd349270f4d1e29d4fb421
treec13761b26cbab8f78c3d657723f8c60db4c10d0d
parent327102c7f6a8d70a32f83280f897fc02da0a8810
Decode paths associated with file descriptors returned by syscalls

* defs.h (RVAL_FD): New macro.
(RVAL_MASK, RVAL_STR, RVAL_NONE): Update.
* desc.c (sys_dup, sys_delete_module): New functions.
(do_dup2, decode_open, sys_creat): Change return value to RVAL_FD.
* linux/dummy.h (sys_delete_module, sys_dup): Remove.
* linux/syscall.h (sys_delete_module, sys_dup): New prototypes.
* syscall.c (trace_syscall_exiting): Handle RVAL_FD.

Signed-off-by: Zubin Mithra <zubin.mithra@gmail.com>
defs.h
desc.c
file.c
linux/dummy.h
linux/syscall.h
syscall.c