posix: net: add a trivial implementation of sockatmark()
Add a trivial implementation of sockatmark(). Signed-off-by: Chris Friedt <chrisfriedt@gmail.com>
This commit is contained in:
parent
6720c92f3e
commit
494493a3b8
|
@ -125,6 +125,8 @@ static inline int getsockname(int sock, struct sockaddr *addr,
|
|||
|
||||
#endif /* CONFIG_NET_SOCKETS_POSIX_NAMES */
|
||||
|
||||
int sockatmark(int s);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -275,3 +275,11 @@ void setservent(int stayopen)
|
|||
{
|
||||
ARG_UNUSED(stayopen);
|
||||
}
|
||||
|
||||
int sockatmark(int s)
|
||||
{
|
||||
ARG_UNUSED(s);
|
||||
|
||||
errno = ENOSYS;
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue