comparison sw/libserial/nonblock.c @ 2:a4918a161d2e

sw: starting with libserial, copied from fc-sim-sniff
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 11 Oct 2024 22:37:11 +0000
parents
children
comparison
equal deleted inserted replaced
1:b3190839cce3 2:a4918a161d2e
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 }