Lines Matching refs:FILE
12 * Memory mapped file wrappers for use by the ICU Data Implementation
78 * Memory Mapped File support. Platform dependent implementation of *
86 return FALSE; /* no file access */
97 const char *path /* File path to be opened/mapped */
101 HANDLE file;
108 /* open the input file */
109 file=CreateFileA(path, GENERIC_READ, FILE_SHARE_READ, NULL,
112 if(file==INVALID_HANDLE_VALUE) {
132 /* create an unnamed Windows file-mapping object for the specified file */
133 map=CreateFileMapping(file, mappingAttributesPtr, PAGE_READONLY, 0, 0, NULL);
134 CloseHandle(file);
139 /* map a view of the file into our address space */
171 /* determine the length of the file */
177 /* open the file */
220 umap_fsize(FILE *f) {
225 goes to the end of the file before ftell*/
234 FILE *file;
239 /* open the input file */
240 file=fopen(path, "rb");
241 if(file==NULL) {
245 /* get the file length */
246 fileLength=umap_fsize(file);
247 if(ferror(file) || fileLength<=20) {
248 fclose(file);
252 /* allocate the memory to hold the file data */
255 fclose(file);
259 /* read the file */
260 if(fileLength!=fread(p, 1, fileLength, file)) {
262 fclose(file);
266 fclose(file);
291 * rest of ICU, and make it look like there is file loading happening.
309 * when opening the file.
377 /* must mmap file... for build */
384 /* determine the length of the file */
390 /* open the file */
412 This is probably due to the strange file system on OS/390. It's more like
413 a database with short entry names than a typical file system. */