view libserial-newlnx/nonblock.c @ 493:35d3f4c26b96

loadtools/scripts/c155.init: WS=4 setting matching official fw
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 24 May 2019 06:27:32 +0000
parents 6984b76f3def
children
line wrap: on
line source

/*
 * This module contains the set_serial_nonblock() function.
 */

#include <sys/types.h>
#include <sys/ioctl.h>
#include <unistd.h>

extern int target_fd;

set_serial_nonblock(state)
	int state;
{
	ioctl(target_fd, FIONBIO, &state);
}