Searched refs:mmap (Results 1 - 12 of 12) sorted by relevance
/ast/src/cmd/tests/sfio/ |
H A D | tmmap2read.c | 20 #define mmap ___mmap macro 26 #undef mmap macro 29 /* This test causes mmap() to fail so that read() must be used. 30 On a system such as BSDI, malloc uses mmap() so if mmap() 38 void* mmap(void* addr, size_t size, int x, int y, int z, off_t offset) function 40 void* mmap() 67 /* test to see if malloc() winds up calling mmap() */
|
/ast/src/cmd/3d/ |
H A D | copy.c | 75 if ((filesize > COPYBUF) && ((mapbuf = mmap((caddr_t)0, mapsize, PROT_READ, MAP_SHARED, rfd, 0)) != ((caddr_t)-1))) 90 if (mmap(mapbuf, mapsize, PROT_READ, MAP_SHARED|MAP_FIXED, rfd, offset) == (caddr_t)-1)
|
/ast/src/lib/libast/port/ |
H A D | astcopy.c | 27 * copy from rfd to wfd (with conditional mmap hacks) 72 if (mapsize >= BUFSIZ * 2 && (mapbuf = (char*)mmap(NiL, mapsize, PROT_READ, MAP_SHARED, rfd, pos)) != ((caddr_t)-1))
|
/ast/src/cmd/tests/aso/ |
H A D | tproc.c | 72 addr = mmap(0, 3*sizeof(unsigned int), PROT_READ|PROT_WRITE, MAP_SHARED, zerof, 0); 74 terror("mmap failed");
|
H A D | tlock.c | 156 addr = mmap(0,z,PROT_READ|PROT_WRITE,MAP_SHARED,zerof,0); 158 terror("mmap failed");
|
/ast/src/lib/libz/ |
H A D | minigzip.c | 107 /* Try first compressing with mmap. If mmap fails (minigzip used in a 128 /* Try compressing the input file at once using mmap. Return Z_OK if 138 caddr_t buf; /* mmap'ed buffer for the entire input file */ 142 /* Determine the size of the file, needed for mmap: */ 147 /* Now do the actual mmap: */ 148 buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
|
/ast/src/lib/libast/vmalloc/ |
H A D | vmmopen.c | 37 #include <sys/mman.h> /* mmap() headers */ 48 /* Create a region to allocate based on mmap() or shmget(). 50 ** mmap() also allows for allocating persistent data. 142 mmvm = (Mmvm_t*)mmap(base, size, (PROT_READ|PROT_WRITE), 181 if(mmdc->proj < 0 ) /* proj < 0 means doing mmap() */ 190 mmvm = (Mmvm_t*)mmap(NIL(Void_t*), size, (PROT_READ|PROT_WRITE), 391 int proj; /* project ID, < 0 doing mmap */ 403 /* create discipline structure for getting memory from mmap */
|
H A D | vmbest.c | 1201 #if _mem_mmap_anon || _mem_mmap_zero /* get space using mmap */ 1249 caddr = mmap(0, nsize, PROT_READ|PROT_WRITE, MAP_PRIVATE, mmdc->fd, mmdc->offset); 1253 caddr = mmap(0, nsize, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0); 1294 /* A discipline to get raw memory using VirtualAlloc/mmap/sbrk */
|
/ast/src/cmd/tests/cdt/ |
H A D | trehash.c | 208 State = (State_t*)mmap(0,z,PROT_READ|PROT_WRITE,MAP_SHARED,zerof,0); 210 terror("mmap failed");
|
H A D | tsafehash.c | 208 State = (State_t*)mmap(0,z,PROT_READ|PROT_WRITE,MAP_SHARED,zerof,0); 210 terror("mmap failed");
|
H A D | tsafetree.c | 210 State = (State_t*)mmap(0,z,PROT_READ|PROT_WRITE,MAP_SHARED,zerof,0); 212 terror("mmap failed");
|
/ast/src/lib/libast/sfio/ |
H A D | sfhdr.h | 44 #include "FEATURE/mmap" 114 #define sysmmapf mmap 254 #define sysmmapf mmap 863 /* set/unset sequential states for mmap */
|
Completed in 21 milliseconds