Add glue code for the thrift module. This includes: * workarounds for Zephyr's missing C++ facilities * thrift config.h This code was merged from the following repository at the commit specified below, with minor formatting and coding-style modifications. https://github.com/zephyrproject-rtos/gsoc-2022-thrift e12e014d295918cc5ba0b4c507d1bf595a2f539a Signed-off-by: Chris Friedt <cfriedt@meta.com>
21 lines
279 B
C
21 lines
279 B
C
/*
|
|
* Copyright 2022 Meta
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <errno.h>
|
|
#include <sys/stat.h>
|
|
|
|
#include <zephyr/kernel.h>
|
|
|
|
int stat(const char *restrict path, struct stat *restrict buf)
|
|
{
|
|
ARG_UNUSED(path);
|
|
ARG_UNUSED(buf);
|
|
|
|
errno = ENOTSUP;
|
|
|
|
return -1;
|
|
}
|