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,
long 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 user_msghdr __user *umsg,
int flags));
54 COBALT_SYSCALL_DECL(recvmmsg,
55 (
int fd,
struct mmsghdr __user *u_msgvec,
unsigned int vlen,
56 unsigned int flags,
struct timespec *u_timeout));
58 COBALT_SYSCALL_DECL(sendmsg,
59 (
int fd,
struct user_msghdr __user *umsg,
int flags));
61 COBALT_SYSCALL_DECL(sendmmsg,
62 (
int fd,
struct mmsghdr __user *u_msgvec,
63 unsigned int vlen,
unsigned int flags));
65 COBALT_SYSCALL_DECL(mmap,
66 (
int fd,
struct _rtdm_mmap_request __user *u_rma,
67 void __user * __user *u_addrp));
69 COBALT_SYSCALL_DECL(select,
71 fd_set __user *u_rfds,
72 fd_set __user *u_wfds,
73 fd_set __user *u_xfds,
74 struct timeval __user *u_tv));