Support for ARM Compiler C library. This commit add support for the ARM Compiler C libary in: - Kconfig - libc/armstdc A new Kconfig symbol is added to allow a toolchain to specify if they support linking with the minimal C library. Also the CMake variable `TOOLCHAIN_HAS_NEWLIB` is exported to Kconfig so that CONFIG_NEWLIB_LIBS can only be enabled if the toolchain has newlib. The armclang toolchain selects the CMake scatter file generator and disables support for the LD linker template which is not supported by armlink. For the ARM Compiler C library, a corresponding lib/libc/armstc/ folder with a minimal implementation to work with the ARM Compiler C library is added. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
22 lines
449 B
C
22 lines
449 B
C
/*
|
|
* Copyright (c) 2018 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_FCNTL_H_
|
|
#define ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_FCNTL_H_
|
|
|
|
#define O_CREAT 0x0200
|
|
#define O_APPEND 0x0400
|
|
#define O_EXCL 0x0800
|
|
#define O_NONBLOCK 0x4000
|
|
|
|
#define F_DUPFD 0
|
|
#define F_GETFL 3
|
|
#define F_SETFL 4
|
|
|
|
int open(const char *name, int flags, ...);
|
|
|
|
#endif /* ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_SYS_FCNTL_H_ */
|