FreeCalypso > hg > freecalypso-tools
view libserial-posix/nonblock.c @ 926:6a0aa8d36d06
rvinterf backslash escape: introduce libprint
The new helper function library named libprint is meant to replace
the badly misnamed libg23, and will soon contain functions for
printing all of the same kinds of GPF TST packets that are now handled
in libg23. However, we are also moving safe_print_trace() from libasync
to this new library, and changing it to emit our new backslash escape
format.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 23 May 2023 03:47:46 +0000 |
parents | fd7b447b99e3 |
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); }