diff --git a/include/zephyr/posix/stropts.h b/include/zephyr/posix/stropts.h index 649f0d87b7a..41afdb5ae28 100644 --- a/include/zephyr/posix/stropts.h +++ b/include/zephyr/posix/stropts.h @@ -22,6 +22,7 @@ int fdetach(const char *path); int fattach(int fildes, const char *path); int getmsg(int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *flagsp); int getpmsg(int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *bandp, int *flagsp); +int isastream(int fildes); #ifdef __cplusplus } diff --git a/lib/posix/options/stropts.c b/lib/posix/options/stropts.c index 66d44fcbb28..c1e6c9f54ed 100644 --- a/lib/posix/options/stropts.c +++ b/lib/posix/options/stropts.c @@ -58,3 +58,11 @@ int getpmsg(int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *band errno = ENOSYS; return -1; } + +int isastream(int fildes) +{ + ARG_UNUSED(fildes); + + errno = ENOSYS; + return -1; +}