Lines Matching refs:file_ptr
56 static void *file_ptr; /* current file pointer location */ variable
85 file_ptr = file_map + offset; in ulseek()
88 file_ptr += offset; in ulseek()
91 file_ptr = file_map + (sb.st_size - offset); in ulseek()
94 if (file_ptr < file_map) { in ulseek()
98 return file_ptr - file_map; in ulseek()
109 if (file_ptr + count >= file_end) { in uwrite()
110 off_t aoffset = (file_ptr + count) - file_end; in uwrite()
125 if (file_ptr < file_end) { in uwrite()
126 cnt = file_end - file_ptr; in uwrite()
134 memcpy(file_ptr, buf, cnt); in uwrite()
139 file_ptr += count; in uwrite()
174 file_ptr = NULL; in mmap_file()