comparison libserial-newlnx/nonblock.c @ 254:6984b76f3def

beginning of libserial-newlnx: copy of libserial-orig
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 22 Sep 2017 00:09:37 +0000
parents
children
comparison
equal deleted inserted replaced
253:6f078c4a5506 254:6984b76f3def
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 }