Commit 04601aed authored by Nikolay Agishev's avatar Nikolay Agishev Committed by Maureen Helm
Browse files

ARCMWDT: Add headers for POSIX compatibility



Add ENODATA errno code, wich is not presented in ARCMWDT headers
Add PATH_MAX define

Signed-off-by: default avatarNikolay Agishev <agishev@synopsys.com>
parent 947c9dc1
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 1984-1999, 2012 Wind River Systems, Inc.
 * Copyright (c) 2023 Synopsys
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @file
 * @brief System error numbers
 */

#ifndef LIB_LIBC_ARCMWDT_INCLUDE_ERRNO_H_
#define LIB_LIBC_ARCMWDT_INCLUDE_ERRNO_H_

#include_next <errno.h>

#ifdef __cplusplus
extern "C" {
#endif

/* MWDT supports range of error codes (ref. $(METAWARE_ROOT)/arc/lib/src/inc/errno.h)
 * Add unsupported only
 */
#ifndef ENODATA
#define ENODATA 86
#endif

/**
 * @}
 */

#ifdef __cplusplus
}
#endif


#endif /* LIB_LIBC_ARCMWDT_INCLUDE_ERRNO_H_ */
+22 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2023 Synopsys
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#ifndef LIB_LIBC_ARCMWDT_INCLUDE_LIMITS_H_
#define LIB_LIBC_ARCMWDT_INCLUDE_LIMITS_H_

#include_next <limits.h>

#ifdef __cplusplus
extern "C" {
#endif

#define PATH_MAX 256

#ifdef __cplusplus
}
#endif

#endif /* LIB_LIBC_ARCMWDT_INCLUDE_LIMITS_H_ */