aboutsummaryrefslogtreecommitdiff
path: root/lib/system/unix/internals.h
blob: b9189bbed7c08ccba45a9eb55a44cde8847e5a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef  LOCAL_UNIX_INTERNALS_H
# define LOCAL_UNIX_INTERNALS_H 20190725
# define _GNU_SOURCE 1

# include "../../internals.h"
# ifndef LIBTIO_DISABLED_UNIX

#  include <string.h>
#  include <errno.h>
#  include <time.h>
#  include <dirent.h>
#  include <fcntl.h>
#  include <unistd.h>
#  include <termios.h>
#  include <sys/stat.h>
#  include <sys/ioctl.h>

TIO_EXTERN(size_t) tio_unix_path_max
	OF((void));

TIO_EXTERN(int) tio_unix_list_serial_ports
	OF((void *cookie, tio_iter_t **tio__iterp));

TIO_EXTERN(int) tio_unix_open_file
	OF((tio_stream_t **tio__streamp, int tio__fd, int tio__cl));
TIO_EXTERN(int) tio_unix_open_serial_file
	OF((tio_stream_t **tio__streamp, int tio__fd, int tio__cl));
TIO_EXTERN(int) tio_unix_open_serial_port
	OF((void *cookie, tio_stream_t **tio__streamp, char const *tio__path,
	tio_serial_attrs_t const *tio__attrs));

# endif
#endif