view sw/libserial/nonblock.c @ 6:a10657f8024e

sw: move initflush.c module into libserial
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 12 Oct 2024 19:42:19 +0000
parents a4918a161d2e
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);
}