posix: Implement isastream

`isastream()` is required as part of _XOPEN_STREAMS Option Group.

signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
This commit is contained in:
Gaetan Perrot 2024-02-02 18:52:59 +09:00 committed by Chris Friedt
parent 4a30aab2ae
commit 51439f012a
2 changed files with 9 additions and 0 deletions

View file

@ -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
}

View file

@ -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;
}