mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
move socket_set_nodelay to osdep.c
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
4ef7b8944c
commit
bf1c852aa9
6 changed files with 11 additions and 21 deletions
|
@ -63,6 +63,12 @@ int socket_set_cork(int fd, int v)
|
|||
#endif
|
||||
}
|
||||
|
||||
int socket_set_nodelay(int fd)
|
||||
{
|
||||
int v = 1;
|
||||
return setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &v, sizeof(v));
|
||||
}
|
||||
|
||||
int qemu_madvise(void *addr, size_t len, int advice)
|
||||
{
|
||||
if (advice == QEMU_MADV_INVALID) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue