Lines Matching defs:file
12 * Memory mapped file wrappers for use by the ICU Data Implementation
77 * Memory Mapped File support. Platform dependent implementation of *
85 return FALSE; /* no file access */
96 const char *path /* File path to be opened/mapped */
100 HANDLE file;
107 /* open the input file */
108 file=CreateFileA(path, GENERIC_READ, FILE_SHARE_READ, NULL,
111 if(file==INVALID_HANDLE_VALUE) {
131 /* create an unnamed Windows file-mapping object for the specified file */
132 map=CreateFileMapping(file, mappingAttributesPtr, PAGE_READONLY, 0, 0, NULL);
133 CloseHandle(file);
138 /* map a view of the file into our address space */
170 /* determine the length of the file */
176 /* open the file */
219 umap_fsize(FILE *f) {
224 goes to the end of the file before ftell*/
233 FILE *file;
238 /* open the input file */
239 file=fopen(path, "rb");
240 if(file==NULL) {
244 /* get the file length */
245 fileLength=umap_fsize(file);
246 if(ferror(file) || fileLength<=20) {
247 fclose(file);
251 /* allocate the memory to hold the file data */
254 fclose(file);
258 /* read the file */
259 if(fileLength!=fread(p, 1, fileLength, file)) {
261 fclose(file);
265 fclose(file);
290 * rest of ICU, and make it look like there is file loading happening.
308 * when opening the file.
376 /* must mmap file... for build */
383 /* determine the length of the file */
389 /* open the file */
411 This is probably due to the strange file system on OS/390. It's more like
412 a database with short entry names than a typical file system. */