#include "defs.h"
+#include "xlat/name_to_handle_at_flags.h"
+
#ifndef MAX_HANDLE_SZ
# define MAX_HANDLE_SZ 128
#endif
tprints(", ");
/* flags */
- printflags(at_flags, tcp->u_arg[4], "AT_???");
+ printflags(name_to_handle_at_flags, tcp->u_arg[4],
+ "AT_???");
return RVAL_DECODED;
}
tprintf("{handle_bytes=%u", h.handle_bytes);
- /*
- * Abusing tcp->auxstr as a temporary storage.
- * Will be used and cleared on syscall exit.
- */
- tcp->auxstr = (void *) (unsigned long) h.handle_bytes;
+ set_tcb_priv_ulong(tcp, h.handle_bytes);
return 0;
} else {
- unsigned int i = (unsigned long) tcp->auxstr;
+ unsigned int i = get_tcb_priv_ulong(tcp);
if ((!syserror(tcp) || EOVERFLOW == tcp->u_error)
&& !umove(tcp, addr, &h)) {
}
}
tprints("}, ");
- tcp->auxstr = NULL;
/* mount_id */
printnum_int(tcp, tcp->u_arg[3], "%d");
tprints(", ");
/* flags */
- printflags(at_flags, tcp->u_arg[4], "AT_???");
+ printflags(name_to_handle_at_flags, tcp->u_arg[4], "AT_???");
}
return 0;
}