FreeCalypso > hg > fc-sim-tools
comparison calypso/nonblock.c @ 5:f6b03af63bf7
fcsim-calypso-be: add FIONBIO setting to 0
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 14 Mar 2021 05:15:49 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:deeeef558279 | 5:f6b03af63bf7 |
---|---|
1 /* | |
2 * This module contains the set_serial_nonblock() function. | |
3 */ | |
4 | |
5 #include <sys/types.h> | |
6 #include <sys/ioctl.h> | |
7 #include <unistd.h> | |
8 | |
9 extern int target_fd; | |
10 | |
11 set_serial_nonblock(state) | |
12 int state; | |
13 { | |
14 ioctl(target_fd, FIONBIO, &state); | |
15 } |