Skip to content

Commit

Permalink
libc: arcmwdt: replace _write if not provided by the POSIX subsystem
Browse files Browse the repository at this point in the history
If CONFIG_POSIX_API is enabled, but CONFIG_POSIX_DEVICE_IO_ALIAS_WRITE
is not, the _write replacement should be provided to make stdio work.

Signed-off-by: Ilya Tagunov <Ilya.Tagunov@synopsys.com>
  • Loading branch information
tagunil authored and kartben committed Dec 3, 2024
1 parent 1bb5c34 commit 0afae55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libc/arcmwdt/libc-hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static inline int z_vrfy_zephyr_write_stdout(const void *buf, int nbytes)
#include <zephyr/syscalls/zephyr_write_stdout_mrsh.c>
#endif

#ifndef CONFIG_POSIX_API
#ifndef CONFIG_POSIX_DEVICE_IO_ALIAS_WRITE
int _write(int fd, const char *buf, unsigned int nbytes)
{
ARG_UNUSED(fd);
Expand Down

0 comments on commit 0afae55

Please sign in to comment.