<commit_before>#include "defs.h"

static int
decode_utimes(struct tcb *tcp, int offset, int special)
{
	if (entering(tcp)) {
		printpath(tcp, tcp->u_arg[offset]);
		tprints(", ");
		if (tcp->u_arg[offset + 1] == 0)
			tprints("NULL");
		else {
			tprints("[");
			printtv_bitness(tcp, tcp->u_arg[offset + 1],
					BITNESS_CURRENT, special);
			tprints(", ");
			printtv_bitness(tcp, tcp->u_arg[offset + 1]
					+ sizeof(struct timeval),
					BITNESS_CURRENT, special);
			tprints("]");
		}
	}
	return 0;
}

SYS_FUNC(utimes)
{
	return decode_utimes(tcp, 0, 0);
}

SYS_FUNC(futimesat)
{
	if (entering(tcp))
		print_dirfd(tcp, tcp->u_arg[0]);
	return decode_utimes(tcp, 1, 0);
}

SYS_FUNC(utimensat)
{
	if (entering(tcp)) {
		print_dirfd(tcp, tcp->u_arg[0]);
		decode_utimes(tcp, 1, 1);
		tprints(", ");
		printflags(at_flags, tcp->u_arg[3], "AT_???");
	}
	return 0;
}

#ifdef ALPHA
SYS_FUNC(osf_utimes)
{
	if (entering(tcp)) {
		printpath(tcp, tcp->u_arg[0]);
		tprints(", ");
		printtv_bitness(tcp, tcp->u_arg[1], BITNESS_32,  0);
	}
	return 0;
}
#endif /* ALPHA */<commit_msg>utimes.c: make use of RVAL_DECODED<commit_after>#include "defs.h"

static void
decode_utimes(struct tcb *tcp, int offset, int special)
{
	printpath(tcp, tcp->u_arg[offset]);
	tprints(", ");
	if (tcp->u_arg[offset + 1] == 0)
		tprints("NULL");
	else {
		tprints("[");
		printtv_bitness(tcp, tcp->u_arg[offset + 1],
				BITNESS_CURRENT, special);
		tprints(", ");
		printtv_bitness(tcp, tcp->u_arg[offset + 1]
				+ sizeof(struct timeval),
				BITNESS_CURRENT, special);
		tprints("]");
	}
}

SYS_FUNC(utimes)
{
	decode_utimes(tcp, 0, 0);

	return RVAL_DECODED;
}

SYS_FUNC(futimesat)
{
	print_dirfd(tcp, tcp->u_arg[0]);
	decode_utimes(tcp, 1, 0);

	return RVAL_DECODED;
}

SYS_FUNC(utimensat)
{
	print_dirfd(tcp, tcp->u_arg[0]);
	decode_utimes(tcp, 1, 1);
	tprints(", ");
	printflags(at_flags, tcp->u_arg[3], "AT_???");

	return RVAL_DECODED;
}

#ifdef ALPHA
SYS_FUNC(osf_utimes)
{
	printpath(tcp, tcp->u_arg[0]);
	tprints(", ");
	printtv_bitness(tcp, tcp->u_arg[1], BITNESS_32,  0);

	return RVAL_DECODED;
}
#endif /* ALPHA */
{'fraction_non_alphanumeric': 0.18981921979067554, 'fraction_numerical': 0.018553758325404377, 'mean_word_length': 4.7146739130434785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '841386', 'n_tokens_mistral': 1004, 'n_tokens_neox': 928, 'n_words': 162}