summaryrefslogblamecommitdiffstats
path: root/get_syscall_range.template.c
blob: ad35cf4666e0e2b0c915c9fcdf767d8832d78397 (plain) (tree)






















                                                                                                 
/* See LICENSE file for copyright and license details. */


#include "zzz-syscalls.h" /* in generated/ */

static enum libsyscalls_error
get_zzz_syscall_range(enum libsyscalls_arch arch, long long int *min_out, long long int *max_out)
{
#define CASE(ARCH)\
	case LIBSYSCALLS_ARCH_##ARCH:\
		*min_out = MIN_ZZZ_SYSCALL_FOR_##ARCH;\
		*max_out = MAX_ZZZ_SYSCALL_FOR_##ARCH;\
		break

	switch ((int)arch) {
	LIST_ZZZ_ARCHES(CASE, ;);
	default:
		return LIBSYSCALLS_E_ARCHNOSUP;
	}
	return LIBSYSCALLS_E_OK;

#undef CASE
}