fcntl.c: mark F_DUPFD and F_DUPFD_CLOEXEC return code with RVAL_FD flag

* fcntl.c (SYS_FUNC(fcntl)): Set RVAL_FD flag in the return code
for F_DUPFD and F_DUPFD_CLOEXEC operations.
This commit is contained in:
Дмитрий Левин 2015-10-09 20:19:25 +00:00
parent 5cad846407
commit 46129c998a

View File

@ -117,10 +117,13 @@ SYS_FUNC(fcntl)
tprints(", ");
printflags(fdflags, tcp->u_arg[2], "FD_???");
break;
case F_SETOWN: case F_DUPFD:
case F_DUPFD_CLOEXEC:
case F_SETOWN:
tprintf(", %ld", tcp->u_arg[2]);
break;
case F_DUPFD:
case F_DUPFD_CLOEXEC:
tprintf(", %ld", tcp->u_arg[2]);
return RVAL_DECODED | RVAL_FD;
case F_SETFL:
tprints(", ");
tprint_open_modes(tcp->u_arg[2]);