Add shutdown to lwIP libc plugin

This commit is contained in:
Norman Feske 2012-05-25 17:12:04 +02:00 committed by Christian Helmuth
parent 30fe9d1912
commit db21cd6f0e
1 changed files with 7 additions and 0 deletions

View File

@ -196,6 +196,7 @@ struct Plugin : Libc::Plugin
int ioctl(Libc::File_descriptor *sockfdo, int request, char *argp);
int listen(Libc::File_descriptor *sockfdo, int backlog);
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,
fd_set *exceptfds, struct timeval *timeout);
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,
fd_set *readfds,
fd_set *writefds,