Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 25 of 145) sorted by relevance

123456

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D5-1.c38 int prot; member
43 {.flags = MAP_SHARED,.prot = PROT_NONE},
44 {.flags = MAP_SHARED,.prot = PROT_READ},
45 {.flags = MAP_SHARED,.prot = PROT_WRITE},
46 {.flags = MAP_SHARED,.prot = PROT_EXEC},
47 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE},
48 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_EXEC},
49 {.flags = MAP_SHARED,.prot = PROT_EXEC | PROT_WRITE},
50 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE | PROT_EXEC},
52 {.flags = MAP_PRIVATE,.prot = PROT_NONE},
[all …]
/third_party/ffmpeg/libavformat/
Davio.c40 if (h->prot) in urlcontext_to_name()
41 return h->prot->name; in urlcontext_to_name()
49 if (!prev && h->priv_data && h->prot->priv_data_class) in urlcontext_child_next()
106 uc->prot = up; in url_alloc_for_protocol()
184 if (uc->protocol_whitelist && av_match_list(uc->prot->name, uc->protocol_whitelist, ',') <= 0) { in ffurl_connect()
185 …av_log(uc, AV_LOG_ERROR, "Protocol '%s' not on whitelist '%s'!\n", uc->prot->name, uc->protocol_wh… in ffurl_connect()
189 if (uc->protocol_blacklist && av_match_list(uc->prot->name, uc->protocol_blacklist, ',') > 0) { in ffurl_connect()
190 …av_log(uc, AV_LOG_ERROR, "Protocol '%s' on blacklist '%s'!\n", uc->prot->name, uc->protocol_blackl… in ffurl_connect()
194 if (!uc->protocol_whitelist && uc->prot->default_whitelist) { in ffurl_connect()
195 av_log(uc, AV_LOG_DEBUG, "Setting default whitelist '%s'\n", uc->prot->default_whitelist); in ffurl_connect()
[all …]
/third_party/typescript/tests/baselines/reference/
DprivateProtectedMembersAreNotAccessibleDestructuring.js4 protected prot; field in K
7 let { priv: a, prot: b } = this; // ok
8 let { priv, prot } = new K(); // ok
14 let { prot: b } = this; // ok
19 let { prot } = k; // error
21 let { priv: a, prot: b, privateMethod: pm } = k; // error
22 function f({ priv, prot, privateMethod }: K) { property
48 var _a = this, a = _a.priv, b = _a.prot; // ok
49 var _b = new K(), priv = _b.priv, prot = _b.prot; // ok
60 var b = this.prot; // ok
[all …]
DprivateProtectedMembersAreNotAccessibleDestructuring.symbols8 protected prot;
9 >prot : Symbol(K.prot, Decl(privateProtectedMembersAreNotAccessibleDestructuring.ts, 1, 17))
17 let { priv: a, prot: b } = this; // ok
20 >prot : Symbol(K.prot, Decl(privateProtectedMembersAreNotAccessibleDestructuring.ts, 1, 17))
24 let { priv, prot } = new K(); // ok
26 >prot : Symbol(prot, Decl(privateProtectedMembersAreNotAccessibleDestructuring.ts, 6, 19))
42 let { prot: b } = this; // ok
43 >prot : Symbol(K.prot, Decl(privateProtectedMembersAreNotAccessibleDestructuring.ts, 1, 17))
56 let { prot } = k; // error
57 >prot : Symbol(prot, Decl(privateProtectedMembersAreNotAccessibleDestructuring.ts, 17, 5))
[all …]
DprivateProtectedMembersAreNotAccessibleDestructuring.types8 protected prot;
9 >prot : any
17 let { priv: a, prot: b } = this; // ok
20 >prot : any
24 let { priv, prot } = new K(); // ok
26 >prot : any
43 let { prot: b } = this; // ok
44 >prot : any
58 let { prot } = k; // error
59 >prot : any
[all …]
DjsdocAccessibilityTags.types19 prot = 5;
20 >prot : number
97 this.priv + this.prot + this.pub
98 >this.priv + this.prot + this.pub : number
99 >this.priv + this.prot : number
103 >this.prot : number
105 >prot : number
132 new A().priv + new A().prot + new A().pub
133 >new A().priv + new A().prot + new A().pub : number
134 >new A().priv + new A().prot : number
[all …]
DprivateProtectedMembersAreNotAccessibleDestructuring.errors.txt3 …tedMembersAreNotAccessibleDestructuring.ts(18,5): error TS2445: Property 'prot' is protected and o…
7 …tedMembersAreNotAccessibleDestructuring.ts(20,5): error TS2445: Property 'prot' is protected and o…
10 …edMembersAreNotAccessibleDestructuring.ts(21,12): error TS2445: Property 'prot' is protected and o…
16 protected prot;
19 let { priv: a, prot: b } = this; // ok
20 let { priv, prot } = new K(); // ok
28 let { prot: b } = this; // ok
35 let { prot } = k; // error
37 !!! error TS2445: Property 'prot' is protected and only accessible within class 'K' and its subclas…
41 let { priv: a, prot: b, privateMethod: pm } = k; // error
[all …]
DjsdocAccessibilityTags.symbols18 prot = 5;
19 >prot : Symbol(A.prot, Decl(jsdocAccessibilityTag.js, 6, 13))
88 this.priv + this.prot + this.pub
92 >this.prot : Symbol(A.prot, Decl(jsdocAccessibilityTag.js, 6, 13))
94 >prot : Symbol(A.prot, Decl(jsdocAccessibilityTag.js, 6, 13))
119 new A().priv + new A().prot + new A().pub
123 >new A().prot : Symbol(A.prot, Decl(jsdocAccessibilityTag.js, 6, 13))
125 >prot : Symbol(A.prot, Decl(jsdocAccessibilityTag.js, 6, 13))
130 new B().priv + new B().prot + new B().pub
134 >new B().prot : Symbol(A.prot, Decl(jsdocAccessibilityTag.js, 6, 13))
[all …]
DjsdocAccessibilityTags.errors.txt6 tests/cases/conformance/jsdoc/jsdocAccessibilityTag.js(58,24): error TS2445: Property 'prot' is pro…
8 tests/cases/conformance/jsdoc/jsdocAccessibilityTag.js(59,24): error TS2445: Property 'prot' is pro…
28 prot = 5;
69 this.priv + this.prot + this.pub
81 new A().priv + new A().prot + new A().pub
85 !!! error TS2445: Property 'prot' is protected and only accessible within class 'A' and its subclas…
86 new B().priv + new B().prot + new B().pub
90 !!! error TS2445: Property 'prot' is protected and only accessible within class 'A' and its subclas…
/third_party/iowow/src/platform/win32/mman/
Dmman.c22 static DWORD __map_mmap_prot_page(const int prot, const int flags) { in __map_mmap_prot_page() argument
24 if (prot == PROT_NONE) { in __map_mmap_prot_page()
27 if ((prot & PROT_EXEC)) { in __map_mmap_prot_page()
28 protect = ((prot & PROT_WRITE)) ? PAGE_EXECUTE_READWRITE : PAGE_EXECUTE_READ; in __map_mmap_prot_page()
30 protect = ((prot & PROT_WRITE) && !(flags & MAP_PRIVATE)) ? PAGE_READWRITE : PAGE_READONLY; in __map_mmap_prot_page()
35 static DWORD __map_mmap_prot_file(const int prot, const int flags) { in __map_mmap_prot_file() argument
37 if (prot == PROT_NONE) { in __map_mmap_prot_file()
40 if ((prot & PROT_WRITE)) { in __map_mmap_prot_file()
46 } else if ((prot & PROT_READ)) { in __map_mmap_prot_file()
49 if ((prot & PROT_EXEC)) { in __map_mmap_prot_file()
[all …]
/third_party/typescript/tests/cases/conformance/classes/members/accessibility/
DprivateProtectedMembersAreNotAccessibleDestructuring.ts3 protected prot; property in K
6 let { priv: a, prot: b } = this; // ok
7 let { priv, prot } = new K(); // ok
13 let { prot: b } = this; // ok
18 let { prot } = k; // error variable
20 let { priv: a, prot: b, privateMethod: pm } = k; // error variable
21 function f({ priv, prot, privateMethod }: K) {
/third_party/abseil-cpp/absl/base/internal/
Ddirect_mmap.h74 inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd, in DirectMmap() argument
97 return __mmap2(start, length, prot, flags, fd, offset / pagesize); in DirectMmap()
100 syscall(SYS_mmap2, start, length, prot, flags, fd, in DirectMmap()
107 static_cast<unsigned long>(prot), // NOLINT in DirectMmap()
122 MMAP_SYSCALL_ARG(prot), MMAP_SYSCALL_ARG(flags), in DirectMmap()
128 syscall(SYS_mmap, start, length, prot, flags, fd, offset)); in DirectMmap()
149 inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd, in DirectMmap() argument
151 return mmap(start, length, prot, flags, fd, offset); in DirectMmap()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
Ddirect_mmap.h74 inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd, in DirectMmap() argument
100 return __mmap2(start, length, prot, flags, fd, offset / pagesize); in DirectMmap()
103 syscall(SYS_mmap2, start, length, prot, flags, fd, in DirectMmap()
110 static_cast<unsigned long>(prot), // NOLINT in DirectMmap()
125 MMAP_SYSCALL_ARG(prot), MMAP_SYSCALL_ARG(flags), in DirectMmap()
131 syscall(SYS_mmap, start, length, prot, flags, fd, offset)); in DirectMmap()
152 inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd, in DirectMmap() argument
154 return mmap(start, length, prot, flags, fd, offset); in DirectMmap()
/third_party/pcre2/pcre2/src/sljit/
DsljitWXExecAllocator.c124 int prot = PROT_READ | PROT_WRITE | SLJIT_PROT_WX; in sljit_malloc_exec() local
131 prot |= PROT_MAX(PROT_READ | PROT_WRITE | PROT_EXEC); in sljit_malloc_exec()
135 ptr = (sljit_uw*)mmap(NULL, size, prot, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_malloc_exec()
169 int prot = PROT_READ | (enable_exec ? PROT_EXEC : PROT_WRITE); in sljit_update_wx_flags() local
176 mprotect((void*)start, end - start, prot); in sljit_update_wx_flags()
214 DWORD prot = enable_exec ? PAGE_EXECUTE : PAGE_READWRITE; in sljit_update_wx_flags() local
221 VirtualProtect((void*)start, end - start, prot, &oldprot); in sljit_update_wx_flags()
/third_party/typescript/tests/cases/conformance/jsdoc/
DjsdocAccessibilityTags.ts19 prot = 5; property in A
56 this.priv + this.prot + this.pub
64 new A().priv + new A().prot + new A().pub
65 new B().priv + new B().prot + new B().pub
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dlibdrm_macros.h33 # define drm_mmap(addr, length, prot, flags, fd, offset) \ argument
34 mmap64(addr, length, prot, flags, fd, offset)
42 # define drm_mmap(addr, length, prot, flags, fd, offset) \ argument
43 mmap(addr, length, prot, flags, fd, offset)
/third_party/mesa3d/src/gallium/auxiliary/os/
Dos_mman.h55 # define os_mmap(addr, length, prot, flags, fd, offset) \ argument
56 mmap64(addr, length, prot, flags, fd, offset)
63 # define os_mmap(addr, length, prot, flags, fd, offset) \
64 mmap(addr, length, prot, flags, fd, offset)
/third_party/gstreamer/gstplugins_base/gst-libs/gst/allocators/
Dgstfdmemory.c83 gint prot; in gst_fd_mem_map() local
89 prot = flags & GST_MAP_READ ? PROT_READ : 0; in gst_fd_mem_map()
90 prot |= flags & GST_MAP_WRITE ? PROT_WRITE : 0; in gst_fd_mem_map()
97 if ((mem->mmapping_flags & prot) == prot) { in gst_fd_mem_map()
102 && mprotect (mem->data, gmem->maxsize, prot) == 0) { in gst_fd_mem_map()
104 mem->mmapping_flags = prot; in gst_fd_mem_map()
118 mem->data = mmap (0, gmem->maxsize, prot, flags, mem->fd, 0); in gst_fd_mem_map()
141 mem->mmapping_flags = prot; in gst_fd_mem_map()
/third_party/libdrm/
Dlibdrm_macros.h51 static inline void *drm_mmap(void *addr, size_t length, int prot, int flags, in drm_mmap() argument
60 return mmap64(addr, length, prot, flags, fd, offset); in drm_mmap()
70 # define drm_mmap(addr, length, prot, flags, fd, offset) \ argument
71 mmap(addr, length, prot, flags, fd, offset)
/third_party/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create_common.h41 #define CHECK_MMAP(addr, length, prot, flags, fd, offset) \ argument
42 check_mmap(__FILE__, __LINE__, (addr), (length), (prot), \
45 #define CHECK_MMAP_FAIL(addr, length, prot, flags, fd, offset) \ argument
46 check_mmap_fail(__FILE__, __LINE__, (addr), (length), (prot), \
121 int prot, int flags, int fd, off_t offset);
123 size_t length, int prot, int flags, int fd, off_t offset);
130 size_t length, int prot);
Dmemfd_create_common.c173 int prot, int flags, int fd, off_t offset) in check_mmap() argument
177 p = safe_mmap(file, lineno, addr, length, prot, flags, fd, offset); in check_mmap()
181 length, prot, flags, fd, (long)offset); in check_mmap()
187 size_t length, int prot, int flags, int fd, off_t offset) in check_mmap_fail() argument
189 if (mmap(addr, length, prot, flags, fd, offset) != MAP_FAILED) { in check_mmap_fail()
193 addr, length, prot, flags, fd, (long)offset); in check_mmap_fail()
200 addr, length, prot, flags, fd, (long)offset); in check_mmap_fail()
224 size_t length, int prot) in check_mprotect() argument
226 if (mprotect(addr, length, prot) < 0) { in check_mprotect()
228 "mprotect(%p, %zu, %d) failed", addr, length, prot); in check_mprotect()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/
D4-1.c53 int prot; in main() local
74 prot = PROT_READ | PROT_WRITE; in main()
76 pa = mmap(addr, size, prot, flag, fd, off); in main()
97 pa = mmap(addr, size, prot, flag, fd, off); in main()
/third_party/libwebsockets/test-apps/
Dtest-client.c601 const char *prot, *p; in main() local
695 if (lws_parse_uri(argv[optind], &prot, &i.address, &i.port, &p)) in main()
706 if (!strcmp(prot, "http") || !strcmp(prot, "ws")) in main()
708 if (!strcmp(prot, "https") || !strcmp(prot, "wss")) in main()
797 if (!strcmp(prot, "http") || !strcmp(prot, "https")) { in main()
798 lwsl_notice("using %s mode (non-ws)\n", prot); in main()
807 if (!strcmp(prot, "raw")) { in main()
813 lwsl_notice("using %s mode (ws)\n", prot); in main()
/third_party/musl/src/mman/
Dmmap.c14 void *__mmap(void *start, size_t len, int prot, int flags, int fd, off_t off) in __mmap() argument
33 ret = __syscall(SYS_mmap2, start, len, prot, flags, fd, off/UNIT); in __mmap()
35 ret = __syscall(SYS_mmap, start, len, prot, flags, fd, off); in __mmap()
/third_party/libffi/src/
Dclosures.c62 int prot; in ffi_closure_alloc() local
76 prot = PROT_READ | PROT_WRITE | PROT_MPROTECT(PROT_EXEC); in ffi_closure_alloc()
77 dataseg = mmap(NULL, rounded_size, prot, MAP_ANON | MAP_PRIVATE, -1, 0); in ffi_closure_alloc()
763 dlmmap_locked (void *start, size_t length, int prot, int flags, off_t offset) in dlmmap_locked() argument
784 ptr = mmap (NULL, length, (prot & ~PROT_WRITE) | PROT_EXEC, in dlmmap_locked()
806 start = mmap (start, length, prot, flags, execfd, offset); in dlmmap_locked()
830 dlmmap (void *start, size_t length, int prot, in dlmmap() argument
836 && prot == (PROT_READ | PROT_WRITE) in dlmmap()
842 ptr = mmap (start, length, prot & ~PROT_EXEC, flags, fd, offset); in dlmmap()
848 ptr = mmap (start, length, prot | PROT_EXEC, flags, fd, offset); in dlmmap()
[all …]

123456