00001
00023 #ifndef __ANALOGY_LIB_INTERNAL__
00024 #define __ANALOGY_LIB_INTERNAL__
00025
00026 #include <rtdm/rtdm.h>
00027
00028 #ifndef DOXYGEN_CPP
00029
00030 static inline int __sys_open(const char *fname)
00031 {
00032 return rt_dev_open(fname, 0);
00033 }
00034
00035 static inline int __sys_close(int fd)
00036 {
00037 return rt_dev_close(fd);
00038 }
00039
00040 static inline int __sys_ioctl(int fd, int request, void *arg)
00041 {
00042 return rt_dev_ioctl(fd, request, arg);
00043 }
00044
00045 static inline ssize_t __sys_read(int fd, void *buf, size_t nbyte)
00046 {
00047 return rt_dev_read(fd, buf, nbyte);
00048 }
00049
00050 static inline ssize_t __sys_write(int fd, void *buf, size_t nbyte)
00051 {
00052 return rt_dev_write(fd, buf, nbyte);
00053 }
00054
00055 #endif
00056
00057 #endif