Lines Matching refs:fd
33 #define FD2FILEP(fd) ((void *)(lv_uintptr_t)(fd + 1)) argument
119 int fd = open(buf, flags, 0666); in fs_open() local
120 if(fd < 0) { in fs_open()
125 return FD2FILEP(fd); in fs_open()
139 int fd = FILEP2FD(file_p); in fs_close() local
140 int ret = close(fd); in fs_close()
142 LV_LOG_WARN("Could not close file: %d, errno: %d", fd, errno); in fs_close()
163 int fd = FILEP2FD(file_p); in fs_read() local
164 ssize_t ret = read(fd, buf, btr); in fs_read()
166 LV_LOG_WARN("Could not read file: %d, errno: %d", fd, errno); in fs_read()
187 int fd = FILEP2FD(file_p); in fs_write() local
188 ssize_t ret = write(fd, buf, btw); in fs_write()
190 LV_LOG_WARN("Could not write file: %d, errno: %d", fd, errno); in fs_write()
224 int fd = FILEP2FD(file_p); in fs_seek() local
225 off_t offset = lseek(fd, pos, w); in fs_seek()
227 LV_LOG_WARN("Could not seek file: %d, errno: %d", fd, errno); in fs_seek()
246 int fd = FILEP2FD(file_p); in fs_tell() local
247 off_t offset = lseek(fd, 0, SEEK_CUR); in fs_tell()
249 LV_LOG_WARN("Could not get position of file: %d, errno: %d", fd, errno); in fs_tell()