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:
Chris Friedt 2024-03-22 21:40:31 -04:00
parent 6720c92f3e
commit 494493a3b8
2 changed files with 10 additions and 0 deletions

View file

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

View file

@ -275,3 +275,11 @@ void setservent(int stayopen)
{
ARG_UNUSED(stayopen);
}
int sockatmark(int s)
{
ARG_UNUSED(s);
errno = ENOSYS;
return -1;
}