19 #ifndef _COBALT_POSIX_IO_H
20 #define _COBALT_POSIX_IO_H
22 #include <rtdm/rtdm.h>
23 #include <xenomai/posix/syscall.h>
24 #include <cobalt/kernel/select.h>
26 int __cobalt_first_fd_valid_p(fd_set *fds[XNSELECT_MAX_TYPES],
int nfds);
28 int __cobalt_select_bind_all(
struct xnselector *selector,
29 fd_set *fds[XNSELECT_MAX_TYPES],
int nfds);
31 COBALT_SYSCALL_DECL(open,
32 (
const char __user *u_path,
int oflag));
34 COBALT_SYSCALL_DECL(socket,
36 int socket_type,
int protocol));
38 COBALT_SYSCALL_DECL(close, (
int fd));
40 COBALT_SYSCALL_DECL(fcntl, (
int fd,
int cmd,
int arg));
42 COBALT_SYSCALL_DECL(ioctl,
43 (
int fd,
unsigned int request,
void __user *arg));
45 COBALT_SYSCALL_DECL(read,
46 (
int fd,
void __user *buf,
size_t size));
48 COBALT_SYSCALL_DECL(write,
49 (
int fd,
const void __user *buf,
size_t size));
51 COBALT_SYSCALL_DECL(recvmsg,
52 (
int fd,
struct msghdr __user *umsg,
int flags));
54 COBALT_SYSCALL_DECL(sendmsg,
55 (
int fd,
struct msghdr __user *umsg,
int flags));
57 COBALT_SYSCALL_DECL(mmap,
58 (
int fd,
struct _rtdm_mmap_request __user *u_rma,
59 void __user * __user *u_addrp));
61 COBALT_SYSCALL_DECL(select,
63 fd_set __user *u_rfds,
64 fd_set __user *u_wfds,
65 fd_set __user *u_xfds,
66 struct timeval __user *u_tv));