Commit cd060f6c authored by Gaetan Perrot's avatar Gaetan Perrot Committed by Fabio Baltieri
Browse files

posix: Implement fdetach and fattach



`fdetach()` and `fattach()` are required
as part of _XOPEN_STREAMS Option Group.

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