mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 14:13:09 +00:00
parent
74b7b768f8
commit
bee2c10ce1
@ -180,6 +180,7 @@ struct Plugin : Libc::Plugin
|
|||||||
int connect(Libc::File_descriptor *sockfdo,
|
int connect(Libc::File_descriptor *sockfdo,
|
||||||
const struct sockaddr *addr,
|
const struct sockaddr *addr,
|
||||||
socklen_t addrlen);
|
socklen_t addrlen);
|
||||||
|
int fcntl(Libc::File_descriptor *sockfdo, int cmd, long val);
|
||||||
void freeaddrinfo(struct ::addrinfo *res);
|
void freeaddrinfo(struct ::addrinfo *res);
|
||||||
int getaddrinfo(const char *node, const char *service,
|
int getaddrinfo(const char *node, const char *service,
|
||||||
const struct ::addrinfo *hints,
|
const struct ::addrinfo *hints,
|
||||||
@ -312,6 +313,25 @@ int Plugin::connect(Libc::File_descriptor *sockfdo,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int Plugin::fcntl(Libc::File_descriptor *sockfdo, int cmd, long val)
|
||||||
|
{
|
||||||
|
int s = get_lwip_fd(sockfdo);
|
||||||
|
int result = -1;
|
||||||
|
|
||||||
|
switch (cmd) {
|
||||||
|
case F_GETFL:
|
||||||
|
case F_SETFL:
|
||||||
|
result = lwip_fcntl(s, cmd, val);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
PERR("unsupported fcntl() request");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Plugin::freeaddrinfo(struct ::addrinfo *res)
|
void Plugin::freeaddrinfo(struct ::addrinfo *res)
|
||||||
{
|
{
|
||||||
struct ::addrinfo *next;
|
struct ::addrinfo *next;
|
||||||
|
Loading…
Reference in New Issue
Block a user