search for: invalid_socket

Displaying 8 results from an estimated 8 matches for "invalid_socket".

2008 Jan 04
13
Unable to delete epoll event
I occasionally get a fatal error unable to delete epoll event: Bad file descriptor I think the attached patch will fix it. The patch does two things: 1) changes the error we look for from ENOENT to EBADF. It is hard to reproduce this error, but if I change the epoll_ctl line to epoll_ctl(epfd, EPOLL_CTL_DEL, 666, ed->GetEpollEvent()); it does return -1 with errno = EBADF on my Linux 2.6.9
2004 Aug 06
0
Submission: Patch to libshout/sock.c for MacOSX
...39;; return 1; } else { return 0; } } /* * Connect to hostname on specified port and return the created socket. */ SOCKET sock_connect_wto(const char *hostname, const int port, const int timeout) { SOCKET sockfd; struct sockaddr_in sin, server; if (!hostname || !hostname[0]) { return INVALID_SOCKET; } else if (port <= 0) { return INVALID_SOCKET; } sockfd = socket(AF_INET, SOCK_STREAM, 0); if (sockfd == INVALID_SOCKET) { sock_close(sockfd); return INVALID_SOCKET; } memset(&sin, 0, sizeof(sin)); memset(&server, 0, sizeof(struct sockaddr_in)); if (inet_aton(hostname,...
2014 Feb 13
3
Libguestfs (1.22.6) driver/changes for mingw/win32
Hi, I attached the changes I made to a vanilla libguestfs-1.22.6 in order to make it work in mingw/win32. Added is also the patch required to make QEMU compatible (add a command to QMP that lists the supported devices (the regilat way you do it print it to stderr, which is difficult to redirect in win32)). This is done on behalf of Intel Corp. Thanks, Or (oberon in irc)
2008 May 30
0
Wine release 1.0-rc3
...d unneeded variable from print_basic. winedbg: Fixed the print_basic command when dealing with long long values. winedump: Fully dump the compiland (V3) structure out of .pdb files. Francois Gouget (6): kernel32/tests: Get the tests running again on Win95. ws2_32: Make sure INVALID_SOCKET is correctly typed. shell32: s/library/Wine/ for consistency in the license message. ddraw: Remove trailing spaces in Wine traces. tests: Add a broken() function to make it possible to handle Windows misbehaviors that we don't want to reproduce in Wine. regedit: Remove e...
2007 Nov 30
0
Wine release 0.9.50
...plicate includes. ntdll: Remove duplicate includes. kernel32: Remove duplicate includes. setupapi: Remove duplicate includes. dlls: Remove duplicate includes. tools: Remove duplicate includes. wininet/tests: Do not compare the return value of socket() with 0. Use INVALID_SOCKET instead. rpcrt4: socket() returns -1 on error so check the return value against that. shdocvw: Rename the wrappers around HeapAlloc() &Co to use the new standard naming. dnsapi: Rename the wrappers around HeapAlloc() &Co to use the new standard naming. urlmon: Rename...
2007 Dec 14
21
Some silly benchs (was: 1.9)
Guys, Just for fun, I tried to see (I know, a silly way to test it) how much overhead we have calling the C functions of the extensions. the benchmark script and the results: http://pastie.caboo.se/128646 The naive C extension: http://pastie.caboo.se/128647 I compared 1.8.6 (VC6 and mingw builds) against a fresh checkout of ruby trunk. What I understand from that is 1.9 is slower than 1.8
2020 Aug 18
15
[PATCH nbdkit 0/9] Port to Windows.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw This is the port to Windows using native Windows APIs (not MSYS or Cygwin). This patch series is at the point where it basically now works. I can run the server with the memory plugin, and access it remotely using guestfish, creating filesystems and so on without any apparent problems. Nevertheless there are many
2020 Aug 20
15
[PATCH nbdkit 0/13] Port to Windows without using a separate library.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw-nolib After a lot of work I have made the port to Windows work without using a separate library. Instead, on Windows only, we build an "import library" (library of stubs) which resolves references to nbdkit_* functions in the main program and fixes up the plugin, basically the first technique outlined in