blob: 990106d2288649a0979fda44b65e7a613d9eb028 [file] [log] [blame]
#include "defs.h"
#ifdef HAVE_LINUX_FALLOC_H
# include <linux/falloc.h>
#endif
#include "xlat/falloc_flags.h"
int
sys_fallocate(struct tcb *tcp)
{
if (entering(tcp)) {
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 0;
}