Lines Matching refs:zfp
28 int temp_open(struct fs_file_t *zfp, const char *file_name, fs_mode_t flags) in temp_open() argument
30 if (zfp == NULL || file_name == NULL) { in temp_open()
34 if (zfp->filep) { in temp_open()
35 if (strcmp(zfp->filep, file_name) == 0) { in temp_open()
45 zfp->filep = (char *)file_name; in temp_open()
49 static int temp_close(struct fs_file_t *zfp) in temp_close() argument
51 if (zfp == NULL) { in temp_close()
55 if (zfp->filep) { in temp_close()
56 zfp->filep = NULL; in temp_close()
89 static ssize_t temp_read(struct fs_file_t *zfp, void *ptr, size_t size) in temp_read() argument
93 if (zfp == NULL || ptr == NULL) { in temp_read()
108 static ssize_t temp_write(struct fs_file_t *zfp, const void *ptr, size_t size) in temp_write() argument
112 if (zfp == NULL || ptr == NULL) { in temp_write()
133 static int temp_seek(struct fs_file_t *zfp, off_t offset, int whence) in temp_seek() argument
136 if (!zfp) { in temp_seek()
161 static off_t temp_tell(struct fs_file_t *zfp) in temp_tell() argument
163 if (!zfp) { in temp_tell()
174 static int temp_truncate(struct fs_file_t *zfp, off_t length) in temp_truncate() argument
176 if (!zfp) { in temp_truncate()
187 static int temp_sync(struct fs_file_t *zfp) in temp_sync() argument
189 if (!zfp) { in temp_sync()