Changeset 28483 in vbox
- Timestamp:
- Apr 19, 2010 4:51:41 PM (15 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/misc.c
r28449 r28483 100 100 } 101 101 102 void103 fd_block(int fd)104 {105 #ifdef FIONBIO106 int opt = 0;107 108 ioctlsocket(fd, FIONBIO, &opt);109 #else110 int opt;111 112 opt = fcntl(fd, F_GETFL, 0);113 opt &= ~O_NONBLOCK;114 fcntl(fd, F_SETFL, opt);115 #endif116 }117 102 118 103 #ifdef VBOX_WITH_SLIRP_BSD_MBUF -
trunk/src/VBox/Devices/Network/slirp/misc.h
r28482 r28483 33 33 34 34 35 extern int x_port, x_server, x_display;36 37 int show_x (char *, struct socket *);38 void redir_x (u_int32_t, int, int, int);39 35 void getouraddr (PNATState); 40 36 void slirp_insque (PNATState, void *, void *); 41 37 void slirp_remque (PNATState, void *); 42 int slirp_openpty (int *, int *);43 int fork_exec (PNATState, struct socket *, char *, int);44 void snooze_hup (int);45 void snooze (void);46 void relay (int);47 void add_emu (char *);48 38 void fd_nonblock (int); 49 void fd_block (int);50 39 51 40 #ifdef VBOX_WITH_SLIRP_BSD_MBUF
Note:
See TracChangeset
for help on using the changeset viewer.