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:
parent
4a30aab2ae
commit
51439f012a
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue