blob: 60b6824a18318efe766714f74ed75eda87a1ec37 [file] [log] [blame]
xf.liaa4d92f2023-09-13 00:18:58 -07001
2#ifndef __ZXICBASIC_API_H
3#define __ZXICBASIC_API_H
4
5extern ssize_t safe_read(int fd, void *buf, size_t count);
6extern ssize_t full_read(int fd, void *buf, size_t len);
7extern ssize_t read_close(int fd, void *buf, size_t size);
8extern ssize_t open_read_close(const char *filename, void *buf, size_t size);
9extern ssize_t safe_write(int fd, const void *buf, size_t count);
10extern ssize_t full_write(int fd, const void *buf, size_t len);
11extern ssize_t open_write_close(const char *filename, void *buf, size_t size);
12
13#endif