blob: ad35cf4666e0e2b0c915c9fcdf767d8832d78397 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* 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
}
|