23 #ifndef __ANALOGY_LIB_INTERNAL__
24 #define __ANALOGY_LIB_INTERNAL__
30 static inline int __sys_open(
const char *fname)
32 return rt_dev_open(fname, 0);
35 static inline int __sys_close(
int fd)
37 return rt_dev_close(fd);
40 static inline int __sys_ioctl(
int fd,
int request,
void *arg)
42 return rt_dev_ioctl(fd, request, arg);
45 static inline ssize_t __sys_read(
int fd,
void *buf,
size_t nbyte)
47 return rt_dev_read(fd, buf, nbyte);
50 static inline ssize_t __sys_write(
int fd,
void *buf,
size_t nbyte)
52 return rt_dev_write(fd, buf, nbyte);
Real-Time Driver Model for Xenomai, user API header.