diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:53:24 +0000 |
commit | b5f8ee61a7f7e9bd291dd26b0585d03eb686c941 (patch) | |
tree | d4d31289c39fc00da064a825df13a0b98ce95b10 /fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/linux-sgx/untrusted/time.c | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.tar.xz netdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.zip |
Adding upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/linux-sgx/untrusted/time.c')
-rw-r--r-- | fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/linux-sgx/untrusted/time.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/linux-sgx/untrusted/time.c b/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/linux-sgx/untrusted/time.c deleted file mode 100644 index 5fa387b0c..000000000 --- a/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/linux-sgx/untrusted/time.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2019 Intel Corporation. All rights reserved. - * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - */ -#include <stdbool.h> -#include <sys/stat.h> -#include <time.h> -#include <fcntl.h> - -/** time clock **/ -int -ocall_clock_gettime(unsigned clock_id, void *tp_buf, unsigned int tp_buf_size) -{ - return clock_gettime((clockid_t)clock_id, (struct timespec *)tp_buf); -} - -int -ocall_clock_getres(int clock_id, void *res_buf, unsigned int res_buf_size) -{ - return clock_getres(clock_id, (struct timespec *)res_buf); -} - -int -ocall_utimensat(int dirfd, const char *pathname, const void *times_buf, - unsigned int times_buf_size, int flags) -{ - return utimensat(dirfd, pathname, (struct timespec *)times_buf, flags); -} - -int -ocall_futimens(int fd, const void *times_buf, unsigned int times_buf_size) -{ - return futimens(fd, (struct timespec *)times_buf); -} - -int -ocall_clock_nanosleep(unsigned clock_id, int flags, const void *req_buf, - unsigned int req_buf_size, const void *rem_buf, - unsigned int rem_buf_size) -{ - return clock_nanosleep((clockid_t)clock_id, flags, - (struct timespec *)req_buf, - (struct timespec *)rem_buf); -} |