blob: 088f85754718663364407053a2d8114bf35fa012 [file] [log] [blame]
Dmitry V. Levin63f28dd2014-12-06 03:53:16 +00001#include "defs.h"
2
3#include <fcntl.h>
4
5#include "xlat/advise.h"
6
Dmitry V. Levina0bd3742015-04-07 01:36:50 +00007SYS_FUNC(fadvise64)
Dmitry V. Levin63f28dd2014-12-06 03:53:16 +00008{
9 if (entering(tcp)) {
10 int argn;
11 printfd(tcp, tcp->u_arg[0]);
12 argn = printllval(tcp, ", %lld", 1);
13 tprintf(", %ld, ", tcp->u_arg[argn++]);
14 printxval(advise, tcp->u_arg[argn], "POSIX_FADV_???");
15 }
16 return 0;
17}
18
Dmitry V. Levina0bd3742015-04-07 01:36:50 +000019SYS_FUNC(fadvise64_64)
Dmitry V. Levin63f28dd2014-12-06 03:53:16 +000020{
21 if (entering(tcp)) {
22 int argn;
23 printfd(tcp, tcp->u_arg[0]);
24 argn = printllval(tcp, ", %lld, ", 1);
25 argn = printllval(tcp, "%lld, ", argn);
26#if defined __ARM_EABI__ || defined AARCH64 || defined POWERPC || defined XTENSA
27 printxval(advise, tcp->u_arg[1], "POSIX_FADV_???");
28#else
29 printxval(advise, tcp->u_arg[argn], "POSIX_FADV_???");
30#endif
31 }
32 return 0;
33}