-# if defined(X32)
-int sys_old_mmap(struct tcb *tcp)
-{
- long u_arg[6];
- if (umoven(tcp, tcp->u_arg[0], sizeof(u_arg), (char *) u_arg) == -1)
- return 0;
- if (entering(tcp)) {
- /* addr */
- if (!u_arg[0])
- tprints("NULL, ");
- else
- tprintf("%#lx, ", u_arg[0]);
- /* len */
- tprintf("%lu, ", u_arg[1]);
- /* prot */
- printflags(mmap_prot, u_arg[2], "PROT_???");
- tprints(", ");
- /* flags */
-# ifdef MAP_TYPE
- printxval(mmap_flags, u_arg[3] & MAP_TYPE, "MAP_???");
- addflags(mmap_flags, u_arg[3] & ~MAP_TYPE);
-# else
- printflags(mmap_flags, u_arg[3], "MAP_???");
-# endif
- /* fd */
- tprints(", ");
- printfd(tcp, u_arg[4]);
- /* offset */
- tprintf(", %#lx", u_arg[5]);
- }
- return RVAL_HEX;
-}
-# endif
-