Ivan Baravy
be21f83af2
Fix most compilation issues of umka_shell on Windows(R)(TM), not all of them.
33 lines
619 B
C
33 lines
619 B
C
/*
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
UMKa - User-Mode KolibriOS developer tools
|
|
io - input/output platform specific code
|
|
|
|
Copyright (C) 2023 Ivan Baravy <dunkaist@gmail.com>
|
|
*/
|
|
|
|
#ifndef UMKAIO_H_INCLUDED
|
|
#define UMKAIO_H_INCLUDED
|
|
|
|
#include <unistd.h>
|
|
|
|
struct umka_io {
|
|
const int *running;
|
|
void *async; // platform specific
|
|
};
|
|
|
|
struct umka_io *
|
|
io_init(int *running);
|
|
|
|
void
|
|
io_close(struct umka_io *io);
|
|
|
|
ssize_t
|
|
io_read(int fd, void *buf, size_t count, struct umka_io *io);
|
|
|
|
ssize_t
|
|
io_write(int fd, const void *buf, size_t count, struct umka_io *io);
|
|
|
|
#endif // UMKAIO_H_INCLUDED
|