FreeCalypso > hg > fc-sim-sniff
comparison sw/libserial/nonblock.c @ 21:c4346cdc9641
sw/libserial: based on FC host tools version
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 22 Aug 2023 02:44:23 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
20:f6579cef76e1 | 21:c4346cdc9641 |
---|---|
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 } |