2023-01-16 05:54:34 +01:00
|
|
|
/*
|
|
|
|
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 IO_H_INCLUDED
|
|
|
|
#define IO_H_INCLUDED
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2023-01-17 01:49:11 +01:00
|
|
|
#define IO_DONT_CHANGE_TASK 0
|
|
|
|
#define IO_CHANGE_TASK 1
|
|
|
|
|
|
|
|
void *
|
|
|
|
io_init(int change_task);
|
|
|
|
|
|
|
|
void
|
|
|
|
io_close(void *arg);
|
|
|
|
|
2023-01-16 05:54:34 +01:00
|
|
|
ssize_t
|
2023-01-17 01:49:11 +01:00
|
|
|
io_read(int fd, void *buf, size_t count, void *arg);
|
2023-01-16 05:54:34 +01:00
|
|
|
|
|
|
|
ssize_t
|
2023-01-17 01:49:11 +01:00
|
|
|
io_write(int fd, const void *buf, size_t count, void *arg);
|
2023-01-16 05:54:34 +01:00
|
|
|
|
|
|
|
#endif // IO_H_INCLUDED
|