]> granicus.if.org Git - strace/blobdiff - fallocate.c
Robustify mpers.awk against invalid input
[strace] / fallocate.c
index 990106d2288649a0979fda44b65e7a613d9eb028..0b1cfec995e973f453906bf676b7fe82e26f50b3 100644 (file)
@@ -6,25 +6,23 @@
 
 #include "xlat/falloc_flags.h"
 
-int
-sys_fallocate(struct tcb *tcp)
+SYS_FUNC(fallocate)
 {
-       if (entering(tcp)) {
-               int argn;
+       int argn;
 
-               /* fd */
-               printfd(tcp, tcp->u_arg[0]);
-               tprints(", ");
+       /* fd */
+       printfd(tcp, tcp->u_arg[0]);
+       tprints(", ");
 
-               /* mode */
-               printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
-               tprints(", ");
+       /* mode */
+       printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
+       tprints(", ");
 
-               /* offset */
-               argn = printllval(tcp, "%llu, ", 2);
+       /* offset */
+       argn = printllval(tcp, "%llu, ", 2);
 
-               /* len */
-               printllval(tcp, "%llu", argn);
-       }
-       return 0;
+       /* len */
+       printllval(tcp, "%llu", argn);
+
+       return RVAL_DECODED;
 }