/freebsd-11-stable/usr.bin/look/ |
H A D | look.c | 156 if ((front = mmap(NULL, (size_t)sb.st_size, PROT_READ, MAP_SHARED, fd, (off_t)0)) == MAP_FAILED)
|
/freebsd-11-stable/sys/dev/drm2/radeon/ |
H A D | radeon_prime.c | 140 .mmap = radeon_gem_prime_mmap,
|
/freebsd-11-stable/usr.bin/xlint/lint1/ |
H A D | mem1.c | 178 /* use mmap instead of malloc to avoid malloc's size overhead */ 182 mb->blk = mmap(NULL, mblklen, prot, flags, -1, (off_t)0);
|
/freebsd-11-stable/usr.sbin/rpc.statd/ |
H A D | file.c | 44 #include <sys/mman.h> /* For mmap() */ 51 FileLayout *status_info; /* Pointer to the mmap()ed status file */ 57 Purpose: Packaged call of msync() to flush changes to mmap()ed file 72 Returns: Pointer to that entry in the mmap() region, or NULL. 165 Opens the file, then mmap()s it for ease of access. 188 /* File now open. mmap() it, with a generous size to allow for */ 191 mmap(NULL, 0x10000000, PROT_READ | PROT_WRITE, MAP_SHARED, status_fd, 0); 194 err(1, "unable to mmap() status file");
|
/freebsd-11-stable/contrib/netbsd-tests/net/bpf/ |
H A D | t_bpf.c | 132 iov[0].iov_base = mmap(NULL, sz, PROT_READ, MAP_ANON, -1, 0);
|
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_spec.c | 179 tmp = mmap(NULL, PTHREAD_KEYS_MAX *
|
/freebsd-11-stable/sbin/ldconfig/ |
H A D | elfhints.c | 212 mapbase = mmap(NULL, s.st_size, PROT_READ|PROT_WRITE, 215 err(1, "Cannot mmap \"%s\"", hintsfile);
|
/freebsd-11-stable/usr.sbin/cpucontrol/ |
H A D | amd10h.c | 168 * mmap the whole image. 170 fw_image = (uint8_t *)mmap(NULL, st.st_size, PROT_READ, 173 WARN(0, "mmap(%s)", path);
|
H A D | intel.c | 170 * mmap the whole image. 172 fw_image = (uint32_t *)mmap(NULL, st.st_size, PROT_READ, 175 WARN(0, "mmap(%s)", path);
|
/freebsd-11-stable/usr.bin/ktrdump/ |
H A D | ktrdump.c | 186 buf = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, in, 0); 188 errx(1, "mmap");
|
/freebsd-11-stable/contrib/netbsd-tests/usr.bin/grep/ |
H A D | t_grep.sh | 691 atf_test_case mmap 694 atf_set "descr" "Check basic matching with --mmap flag" 700 atf_expect_fail "gnu grep from ports has no --mmap option" 705 atf_check -s exit:0 -o inline:"B\n" grep --mmap -oe "B" test1 706 atf_check -s exit:1 grep --mmap -e "Z" test1 851 atf_add_test_case mmap
|
/freebsd-11-stable/usr.bin/grep/ |
H A D | file.c | 297 buffer = mmap(NULL, fsiz, PROT_READ, flags,
|
/freebsd-11-stable/usr.bin/locate/locate/ |
H A D | locate.c | 108 int f_mmap; /* use mmap */ 144 f_mmap = 1; /* mmap is default */ 165 case 'm': /* mmap */ 169 warnx("mmap(2) not implemented"); 304 if ((p = mmap((caddr_t)0, (size_t)len, 307 err(1, "mmap ``%s''", db);
|
/freebsd-11-stable/sys/sys/ |
H A D | types.h | 393 void * mmap(void *, size_t, int, int, int, off_t);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/ |
H A D | sanitizer_wrappers.cpp | 155 void *mmap(void *addr, size_t length, int prot, int flags, int fd, function
|
/freebsd-11-stable/contrib/file/src/ |
H A D | seccomp.c | 201 ALLOW_RULE(mmap);
|
/freebsd-11-stable/sys/arm/mv/ |
H A D | mv_common.c | 676 uint32_t mmap; 679 mmap = bus_space_read_4(fdtbus_bs_tag, MV_DDR_CADR_BASE + (i * 0x10), 0); 682 return (mmap & 0xFF000000); 687 uint32_t mmap, size; 690 mmap = bus_space_read_4(fdtbus_bs_tag, MV_DDR_CADR_BASE + (i * 0x10), 0); 693 size = (1 << ((mmap >> 16) & 0x0F)); 696 return (((size - 1) << 16) | (mmap & 0x01));
|
/freebsd-11-stable/sys/dev/fb/ |
H A D | fbreg.h | 182 vi_mmap_t *mmap; member in struct:video_switch 239 (*vidsw[(adp)->va_index]->mmap)((adp), (offset), (paddr), \
|
/freebsd-11-stable/usr.sbin/config/ |
H A D | main.c | 619 p = mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, (off_t)0); 621 err(EX_OSERR, "mmap %s", from_name); 622 q = mmap(NULL, tsize, PROT_READ, MAP_SHARED, to_fd, (off_t)0); 624 err(EX_OSERR, "mmap %s", to_name);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/ |
H A D | Memory.inc | 123 void *Addr = ::mmap(reinterpret_cast<void *>(Start), PageSize*NumPages, Protect,
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | InstrProfilingFile.c | 215 /* mmap() \p ProfileFile for profile merging purposes, assuming that an 217 * length of the file. Return the mmap'd buffer in the inout variable 219 * responsible for unmapping the mmap'd buffer in \p ProfileBuffer. */ 222 *ProfileBuffer = mmap(NULL, ProfileFileSize, PROT_READ, MAP_SHARED | MAP_FILE, 225 PROF_ERR("Unable to merge profile data, mmap failed: %s\n", 256 /* mmap() the profile and check that it is compatible with the data in 513 /* Grow the profile so that mmap() can succeed. Leak the file handle, as 533 /* Grow the profile so that mmap() can succeed. Leak the file handle, as 563 uint64_t *CounterMmap = (uint64_t *)mmap( 568 "Continuous counter sync mode is enabled, but mmap() faile [all...] |
/freebsd-11-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-shmem.c | 473 * Add mmap the shared memory 495 vaddr = mmap(dscptr->vaddr, dscptr->size, PROT_READ|PROT_WRITE, 498 /* Make sure the mmap maps to the same virtual address specified in
|
/freebsd-11-stable/crypto/heimdal/lib/asn1/ |
H A D | check-common.c | 104 p = (unsigned char *)mmap(0, (*map)->size, PROT_READ | PROT_WRITE, 107 err (1, "mmap");
|
/freebsd-11-stable/libexec/rtld-elf/ |
H A D | malloc.c | 62 * Pre-allocate mmap'ed pages 480 if ((pagepool_start = mmap(0, n * pagesz,
|
/freebsd-11-stable/sys/dev/patm/ |
H A D | if_patmvar.h | 232 const struct idt_mmap *mmap; /* SRAM memory map */ member in struct:patm_softc
|