comparison libserial-orig/nonblock.c @ 252:d27a89068280

set_serial_nonblock() added to libserial
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 21 Sep 2017 23:30:53 +0000
parents
children
comparison
equal deleted inserted replaced
251:fb577c31e960 252:d27a89068280
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 }