/freebsd-9.3-release/tools/regression/mmap/ |
H A D | Makefile | 3 PROG= mmap
|
/freebsd-9.3-release/sys/cddl/compat/opensolaris/sys/ |
H A D | mman.h | 35 #define mmap64(_a,_b,_c,_d,_e,_f) mmap(_a,_b,_c,_d,_e,_f)
|
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/ |
H A D | tst.args.d | 35 syscall::mmap*:entry
|
/freebsd-9.3-release/contrib/gcc/config/ |
H A D | host-solaris.c | 46 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, 49 /* Solaris isn't good about honoring the mmap START parameter 70 addr = mmap (base, size,
|
H A D | host-hpux.c | 60 addr = mmap ((void *)TRY_EMPTY_VM_SPACE, size, PROT_READ | PROT_WRITE, 75 It's not possibly to reliably mmap a file using MAP_PRIVATE to 77 if mmap with MAP_PRIVATE works. If it does, we are off to the 78 races. If it doesn't, we try an anonymous private mmap since the 99 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, offset); 107 /* Try to make an anonymous private mmap at the desired location. */ 108 addr = mmap (base, size, PROT_READ | PROT_WRITE,
|
H A D | host-linux.c | 52 address chosen by mmap in step one. 104 addr = mmap ((void *)TRY_EMPTY_VM_SPACE, size, PROT_READ | PROT_WRITE, 139 /* If it isn't, then accept the address that mmap selected as fine. */ 144 buffer = mmap (0, buffer_size, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0); 145 addr = mmap (0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); 158 It's not possibly to reliably mmap a file using MAP_PRIVATE to 160 if mmap with MAP_PRIVATE works. If it does, we are off to the 161 races. If it doesn't, we try an anonymous private mmap since the 182 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, offset); 190 /* Try to make an anonymous private mmap a [all...] |
H A D | host-darwin.c | 67 mmap_result = mmap (addr, sz, 71 /* The file might not be mmap-able. */
|
/freebsd-9.3-release/contrib/nvi/clib/ |
H A D | mmap.c | 9 * This function fakes mmap() by reading `len' bytes from the file descriptor 17 * PUBLIC: char *mmap __P((char *, size_t, int, int, int, off_t)); 21 mmap(addr, len, prot, flags, fd, off) function
|
/freebsd-9.3-release/crypto/openssh/openbsd-compat/ |
H A D | xmmap.c | 54 address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, 57 address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_SHARED, 76 address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_SHARED,
|
/freebsd-9.3-release/sys/dev/patm/ |
H A D | if_patm.c | 91 for (i = 0; i < sc->mmap->sram * 1024; i += 4) 97 /* IDT_CFG_NOIDLE | */ sc->mmap->rxtab; 113 patm_nor_write(sc, IDT_NOR_TSTB, sc->mmap->tst1base << 2); 136 IDT_RXFD(sc->mmap->rxfifo_addr, sc->mmap->rxfifo_code)); 147 IDT_ABRSTD(sc->mmap->abrstd_addr, sc->mmap->abrstd_code)); 148 for (i = 0; i < sc->mmap->abrstd_size; i++) 149 patm_sram_write(sc, sc->mmap->abrstd_addr + i, 0); 156 patm_sram_write(sc, sc->mmap [all...] |
/freebsd-9.3-release/contrib/groff/src/libs/libbib/ |
H A D | map.c | 43 char *p = (char *)mmap((void *)0, (size_t)nbytes, PROT_READ, 47 /* mmap() shouldn't return 0 since MAP_FIXED wasn't specified. */
|
/freebsd-9.3-release/lib/libc/sys/ |
H A D | mmap.c | 31 static char sccsid[] = "@(#)mmap.c 8.1 (Berkeley) 6/17/93"; 47 mmap(addr, len, prot, flags, fd, offset) function
|
/freebsd-9.3-release/sys/geom/raid/ |
H A D | md_intel.c | 264 struct intel_raid_map *mmap; local 268 mmap = &mvol->map[0]; 270 mmap = (struct intel_raid_map *) 271 &mmap->disk_idx[mmap->total_disks]; 273 return ((struct intel_raid_map *)mmap); 280 struct intel_raid_map *mmap; local 286 mmap = intel_get_map(mvol, mvol->migr_state ? 1 : 0); 288 &mmap->disk_idx[mmap 294 intel_get_map_offset(struct intel_raid_map *mmap) argument 303 intel_set_map_offset(struct intel_raid_map *mmap, off_t offset) argument 311 intel_get_map_disk_sectors(struct intel_raid_map *mmap) argument 320 intel_set_map_disk_sectors(struct intel_raid_map *mmap, off_t disk_sectors) argument 328 intel_set_map_stripe_count(struct intel_raid_map *mmap, off_t stripe_count) argument 373 struct intel_raid_map *mmap; local 480 struct intel_raid_map *mmap, *mmap1; local 1147 struct intel_raid_map *mmap; local [all...] |
/freebsd-9.3-release/cddl/contrib/dtracetoolkit/Bin/ |
H A D | mmapfiles.d | 3 * mmapfiles.d - mmap'd files by process. 13 * PATHNAME pathname of mmap'd file 42 syscall::mmap:entry
|
/freebsd-9.3-release/cddl/contrib/dtracetoolkit/Proc/ |
H A D | mmapfiles.d | 3 * mmapfiles.d - mmap'd files by process. 13 * PATHNAME pathname of mmap'd file 42 syscall::mmap:entry
|
/freebsd-9.3-release/tools/test/upsdl/ |
H A D | upsdl.c | 76 addr = mmap(NULL,FILESIZE, PROT_READ | PROT_WRITE , MAP_SHARED, fd, 0); 97 /* mmap a 2 page buffer - first page is from fd1, second page from fd2 */ 103 addr = mmap(NULL,pagesize*2, PROT_READ | PROT_WRITE , MAP_SHARED, fd1, 0); 111 addr = mmap(buffer + pagesize,pagesize, PROT_READ | PROT_WRITE , MAP_FIXED |
|
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_subr.c | 36 return (mmap(NULL, size, PROT_READ | PROT_WRITE,
|
/freebsd-9.3-release/contrib/gcc/config/i386/ |
H A D | host-cygwin.c | 50 open file descriptor if the host would like to probe with mmap. */ 68 base = mmap (NULL, sz, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
|
/freebsd-9.3-release/contrib/ofed/libmlx4/src/ |
H A D | buf.c | 67 buf->buf = mmap(NULL, buf->length, PROT_READ | PROT_WRITE,
|
/freebsd-9.3-release/tools/regression/nfsmmap/test1/ |
H A D | test1.c | 36 addr = mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
|
/freebsd-9.3-release/tools/regression/nfsmmap/test2/ |
H A D | test2.c | 34 addr = mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
|
/freebsd-9.3-release/usr.bin/xlint/lint2/ |
H A D | mem2.c | 83 /* use mmap() instead of malloc() to avoid malloc overhead. */ 86 mbuf = mmap(NULL, mblklen, prot, flags, -1, (off_t)0);
|
/freebsd-9.3-release/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 76 * As above, but for the special mmap() case: unmap after successful mmap(). 81 SYSCALL_FAIL(mmap, "failed"); \ 87 " (rights 0x%jx)", "mmap", rights); \ 152 p = mmap(NULL, getpagesize(), PROT_READ, MAP_SHARED, fd_cap, 0); 155 p = mmap(NULL, getpagesize(), PROT_WRITE, MAP_SHARED, fd_cap, 0); 158 p = mmap(NULL, getpagesize(), PROT_EXEC, MAP_SHARED, fd_cap, 0); 161 p = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, MAP_SHARED, 165 p = mmap(NULL, getpagesize(), PROT_READ | PROT_EXEC, MAP_SHARED, 169 p = mmap(NUL [all...] |
/freebsd-9.3-release/contrib/ntp/sntp/libopts/ |
H A D | text_mmap.c | 68 * depending up on whether mmap(3) is available. 116 #else /* HAVE mmap */ 129 map_addr = mmap(NULL, mapinfo->txt_full_size, PROT_READ|PROT_WRITE, 138 map_addr = mmap(NULL, mapinfo->txt_full_size, PROT_READ|PROT_WRITE, 149 mmap(map_addr, mapinfo->txt_size, mapinfo->txt_prot, 163 * @param flags mmap flags 179 * Map mmap flags and protections into open flags and do the open. 258 * arg: int, prot, mmap protections (see mmap(2)) 259 * arg: int, flags, mmap flag [all...] |
/freebsd-9.3-release/tools/regression/posixshm/ |
H A D | posixshm.c | 116 page = mmap(0, getpagesize(), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 119 fail_errno("mmap"); 147 page = mmap(0, getpagesize(), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 150 fail_errno("mmap(2)"); 196 page = mmap(0, getpagesize(), PROT_READ, MAP_SHARED, fd, 0); 198 fail_errno("mmap(2)"); 232 page = mmap(0, getpagesize(), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 235 fail_err("mmap(PROT_WRITE) succeeded"); 242 fail_errno("mmap"); 476 page = mmap( [all...] |