strace/fallocate.c
Dmitry V. Levin 5dcf3b1642 fallocate.c: make use of RVAL_DECODED
* fallocate.c (sys_fallocate): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00

29 lines
413 B
C

#include "defs.h"
#ifdef HAVE_LINUX_FALLOC_H
# include <linux/falloc.h>
#endif
#include "xlat/falloc_flags.h"
SYS_FUNC(fallocate)
{
int argn;
/* fd */
printfd(tcp, tcp->u_arg[0]);
tprints(", ");
/* mode */
printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
tprints(", ");
/* offset */
argn = printllval(tcp, "%llu, ", 2);
/* len */
printllval(tcp, "%llu", argn);
return RVAL_DECODED;
}