mirror of
https://github.com/markqvist/tncattach.git
synced 2024-10-31 15:37:12 -04:00
12 lines
277 B
C
12 lines
277 B
C
|
#include <stdio.h>
|
||
|
#include <stdbool.h>
|
||
|
#include <string.h>
|
||
|
#include <unistd.h>
|
||
|
#include <fcntl.h>
|
||
|
#include <errno.h>
|
||
|
#include <termios.h>
|
||
|
|
||
|
int open_port(char* port);
|
||
|
int close_port(int fd);
|
||
|
bool setup_port(int fs, int speed);
|
||
|
bool set_port_blocking(int fd, bool should_block);
|