The times syscall is marked as not supported, i.e. returns -ENOTSUP.
Signed-off-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #125
UK_PROVIDED_SYSCALLS-$(CONFIG_LIBUKTIME) += nanosleep-2
UK_PROVIDED_SYSCALLS-$(CONFIG_LIBUKTIME) += clock_gettime-2
UK_PROVIDED_SYSCALLS-$(CONFIG_LIBUKTIME) += gettimeofday-2
+UK_PROVIDED_SYSCALLS-$(CONFIG_LIBUKTIME) += times-1
sleep
timegm
times
+uk_syscall_e_times
+uk_syscall_r_times
usleep
utime
timer_create
return 0;
}
-int times(struct tm *buf __unused)
+UK_SYSCALL_R_DEFINE(int, times, struct tm *, buf)
{
- errno = ENOTSUP;
- return -1;
+ return -ENOTSUP;
}
int setitimer(int which __unused, const struct itimerval *new_value __unused,