view sw/libserial/nonblock.c @ 4:1dacfe7d5b3d

sw: add top Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 11 Oct 2024 23:56:48 +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);
}