Xenomai API  2.6.5
syscall.h
Go to the documentation of this file.
1 
23 #ifndef __ANALOGY_LIB_INTERNAL__
24 #define __ANALOGY_LIB_INTERNAL__
25 
26 #include <rtdm/rtdm.h>
27 
28 #ifndef DOXYGEN_CPP
29 
30 static inline int __sys_open(const char *fname)
31 {
32  return rt_dev_open(fname, 0);
33 }
34 
35 static inline int __sys_close(int fd)
36 {
37  return rt_dev_close(fd);
38 }
39 
40 static inline int __sys_ioctl(int fd, int request, void *arg)
41 {
42  return rt_dev_ioctl(fd, request, arg);
43 }
44 
45 static inline ssize_t __sys_read(int fd, void *buf, size_t nbyte)
46 {
47  return rt_dev_read(fd, buf, nbyte);
48 }
49 
50 static inline ssize_t __sys_write(int fd, void *buf, size_t nbyte)
51 {
52  return rt_dev_write(fd, buf, nbyte);
53 }
54 
55 #endif /* !DOXYGEN_CPP */
56 
57 #endif /* __ANALOGY_LIB_INTERNAL__ */
Real-Time Driver Model for Xenomai, user API header.