Lines Matching defs:file
12 * Memory mapped file wrappers for use by the ICU Data Implementation
74 * Memory Mapped File support. Platform dependent implementation of *
82 return FALSE; /* no file access */
93 const char *path /* File path to be opened/mapped */
97 HANDLE file;
104 /* open the input file */
105 file=CreateFileA(path, GENERIC_READ, FILE_SHARE_READ, NULL,
108 if(file==INVALID_HANDLE_VALUE) {
128 /* create an unnamed Windows file-mapping object for the specified file */
129 map=CreateFileMapping(file, mappingAttributesPtr, PAGE_READONLY, 0, 0, NULL);
130 CloseHandle(file);
135 /* map a view of the file into our address space */
167 /* determine the length of the file */
173 /* open the file */
216 umap_fsize(FILE *f) {
221 goes to the end of the file before ftell*/
230 FILE *file;
235 /* open the input file */
236 file=fopen(path, "rb");
237 if(file==NULL) {
241 /* get the file length */
242 fileLength=umap_fsize(file);
243 if(ferror(file) || fileLength<=20) {
244 fclose(file);
248 /* allocate the memory to hold the file data */
251 fclose(file);
255 /* read the file */
256 if(fileLength!=fread(p, 1, fileLength, file)) {
258 fclose(file);
262 fclose(file);
287 * rest of ICU, and make it look like there is file loading happening.
305 * when opening the file.
373 /* must mmap file... for build */
380 /* determine the length of the file */
386 /* open the file */
408 This is probably due to the strange file system on OS/390. It's more like
409 a database with short entry names than a typical file system. */