mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 10:46:25 +00:00
Add shutdown to lwIP libc plugin
This commit is contained in:
parent
30fe9d1912
commit
db21cd6f0e
@ -196,6 +196,7 @@ struct Plugin : Libc::Plugin
|
|||||||
int ioctl(Libc::File_descriptor *sockfdo, int request, char *argp);
|
int ioctl(Libc::File_descriptor *sockfdo, int request, char *argp);
|
||||||
int listen(Libc::File_descriptor *sockfdo, int backlog);
|
int listen(Libc::File_descriptor *sockfdo, int backlog);
|
||||||
ssize_t read(Libc::File_descriptor *fdo, void *buf, ::size_t count);
|
ssize_t read(Libc::File_descriptor *fdo, void *buf, ::size_t count);
|
||||||
|
int shutdown(Libc::File_descriptor *fdo, int);
|
||||||
int select(int nfds, fd_set *readfds, fd_set *writefds,
|
int select(int nfds, fd_set *readfds, fd_set *writefds,
|
||||||
fd_set *exceptfds, struct timeval *timeout);
|
fd_set *exceptfds, struct timeval *timeout);
|
||||||
ssize_t send(Libc::File_descriptor *, const void *buf, ::size_t len, int flags);
|
ssize_t send(Libc::File_descriptor *, const void *buf, ::size_t len, int flags);
|
||||||
@ -431,6 +432,12 @@ ssize_t Plugin::read(Libc::File_descriptor *fdo, void *buf, ::size_t count)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int Plugin::shutdown(Libc::File_descriptor *sockfdo, int how)
|
||||||
|
{
|
||||||
|
return lwip_shutdown(get_lwip_fd(sockfdo), how);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int Plugin::select(int nfds,
|
int Plugin::select(int nfds,
|
||||||
fd_set *readfds,
|
fd_set *readfds,
|
||||||
fd_set *writefds,
|
fd_set *writefds,
|
||||||
|
Loading…
Reference in New Issue
Block a user