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:
parent
5cad846407
commit
46129c998a
7
fcntl.c
7
fcntl.c
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user