diff --git a/include/zephyr/posix/stropts.h b/include/zephyr/posix/stropts.h index 9474c36edb..de24435eef 100644 --- a/include/zephyr/posix/stropts.h +++ b/include/zephyr/posix/stropts.h @@ -18,6 +18,8 @@ struct strbuf { }; int putmsg(int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr, int flags); +int fdetach(const char *path); +int fattach(int fildes, const char *path); #ifdef __cplusplus } diff --git a/lib/posix/options/stropts.c b/lib/posix/options/stropts.c index 54fca00cc9..9db1a790a4 100644 --- a/lib/posix/options/stropts.c +++ b/lib/posix/options/stropts.c @@ -18,3 +18,20 @@ int putmsg(int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr errno = ENOSYS; return -1; } + +int fdetach(const char *path) +{ + ARG_UNUSED(path); + + errno = ENOSYS; + return -1; +} + +int fattach(int fildes, const char *path) +{ + ARG_UNUSED(fildes); + ARG_UNUSED(path); + + errno = ENOSYS; + return -1; +}