Searched refs:PROT_READ (Results 1 - 25 of 254) sorted by relevance

1234567891011

/illumos-gate/usr/src/cmd/sgs/0@0/common/
H A D0@0.c50 (void) mmap(0, 1, PROT_READ, MAP_PRIVATE|MAP_FIXED, fd, 0);
/illumos-gate/usr/src/lib/libbc/csu/common/
H A Dalloc_pbuf.c41 buf = (char*) mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dinz_inval.c42 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE,
51 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, PROT_READ, 0);
55 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, bad, PROT_READ | PRIVATE, 0);
72 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE,
90 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
99 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
H A Dgetentropy.c57 addr = mmap(NULL, 4096, PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0);
H A Darc4random_fork.c50 PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
H A Darc4random_forkall.c50 PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
H A Dinz_child.c42 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE,
H A Dinz_mlock.c40 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE,
H A Dinz_region.c40 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE,
H A Dinz_split.c42 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE,
H A Dinz_vpp.c43 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE,
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_subr.c37 return (mmap(NULL, size, PROT_READ | PROT_WRITE,
50 (void) mprotect(buf, size, PROT_READ);
/illumos-gate/usr/src/test/zfs-tests/cmd/mmapwrite/
H A Dmmapwrite.c51 mmap(0, 8192, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) {
56 if (mmap(addr, 8192, PROT_READ,
/illumos-gate/usr/src/test/os-tests/tests/secflags/
H A Daddrs.c17 if ((mapping = mmap((caddr_t)0, 10, (PROT_READ | PROT_WRITE),
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dmman.h35 * combinations. PROT_WRITE is often implemented as (PROT_READ |
36 * PROT_WRITE) and (PROT_EXECUTE as PROT_READ | PROT_EXECUTE).
41 #define PROT_READ 0x1 /* pages can be read */ macro
/illumos-gate/usr/src/uts/i86pc/os/
H A Dppage.c80 HAT_STORECACHING_OK | PROT_READ | PROT_WRITE | HAT_NOSYNC,
95 HAT_STORECACHING_OK | PROT_READ | PROT_WRITE | HAT_NOSYNC,
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Doutput.c60 (p = mmap((char *)0, sz, PROT_READ+PROT_WRITE,
/illumos-gate/usr/src/test/libc-tests/tests/
H A Daligned_alloc.c60 PROT_READ, MAP_ANON | MAP_FIXED | MAP_PRIVATE, -1, 0),
/illumos-gate/usr/src/uts/common/sys/
H A Dmman.h60 * combinations. PROT_WRITE is often implemented as (PROT_READ |
61 * PROT_WRITE) and (PROT_EXECUTE as PROT_READ | PROT_EXECUTE).
66 #define PROT_READ 0x1 /* pages can be read */ macro
72 #define PROT_ZFOD (PROT_READ | PROT_WRITE | PROT_EXEC | PROT_USER)
73 #define PROT_ALL (PROT_READ | PROT_WRITE | PROT_EXEC | PROT_USER)
103 #define PROC_TEXT (PROT_EXEC | PROT_READ)
104 #define PROC_DATA (PROT_READ | PROT_WRITE | PROT_EXEC)
107 #define VALID_ATTR (PROT_READ|PROT_WRITE|PROT_EXEC|SHARED|PRIVATE)
/illumos-gate/usr/src/uts/common/os/
H A Durw.c149 (PROT_READ | PROT_WRITE) : PROT_READ, (caddr_t)-1);
162 writing ? (PROT_READ | PROT_WRITE) : PROT_READ, HAT_LOAD_LOCK);
190 uint_t prot_rw = writing ? PROT_WRITE : PROT_READ;
/illumos-gate/usr/src/lib/libtnfctl/
H A Dprb_shmem.c64 PROT_READ | PROT_WRITE, MAP_SHARED,
/illumos-gate/usr/src/lib/libc/i386/crt/
H A D_rtld.c139 ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC,
197 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC,
211 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC,
268 i |= PROT_READ;
/illumos-gate/usr/src/lib/libc/sparc/crt/
H A D_rtld.c138 ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC,
197 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC,
211 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC,
268 i |= PROT_READ;
/illumos-gate/usr/src/lib/libmtmalloc/tests/
H A Dexhaust.c65 stacks[ncpus] = mmap(0, 1<<23, PROT_READ|PROT_WRITE,
/illumos-gate/usr/src/cmd/tail/
H A Dmisc.c102 if ((mip->start = mmap(NULL, mip->maplen, PROT_READ, MAP_SHARED,

Completed in 126 milliseconds

1234567891011