Commit 51439f01 authored by Gaetan Perrot's avatar Gaetan Perrot Committed by Chris Friedt
Browse files

posix: Implement isastream



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

signed-off-by: default avatarGaetan Perrot <gaetanperrotpro@gmail.com>
parent 4a30aab2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
}
+8 −0
Original line number Diff line number Diff line
@@ -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;
}