Snapdragon® Telematics Application Framework (TelAF) Interface Specification
linux/le_fd.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------------------------------
11 //--------------------------------------------------------------------------------------------------
12 
13 #ifndef LINUX_LE_FD_H_INCLUDE_GUARD
14 #define LINUX_LE_FD_H_INCLUDE_GUARD
15 
16 #define le_fd_Close(fd) close(fd)
17 #define le_fd_Dup(oldfd) dup(oldfd)
18 #define le_fd_Fcntl fcntl
19 #define le_fd_Ioctl(fd, request, argp) ioctl((fd), (request), (argp))
20 #define le_fd_MkFifo(pathname, mode) mkfifo((pathname), (mode))
21 #define le_fd_MkPipe(pathname, mode) (-1)
22 #define le_fd_Open(pathname, flags) open((pathname), (flags))
23 #define le_fd_Read(fd, buf, count) read((fd), (buf), (count))
24 #define le_fd_Write(fd, buf, count) write((fd), (buf), (count))
25 
26 #endif /* end LINUX_LE_FD_H_INCLUDE_GUARD */