Home
last modified time | relevance | path

Searched refs:PROT_WRITE (Results 1 – 7 of 7) sorted by relevance

/DragonOS/user/apps/test_filemap/
H A Dmain.c30 void *map = mmap(NULL, 11, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
/DragonOS/user/apps/test-for-robustfutex/src/
H A Dmain.rs20 c_int, mmap, perror, EXIT_FAILURE, MAP_ANONYMOUS, MAP_FAILED, MAP_SHARED, PROT_READ, PROT_WRITE,
245 PROT_READ | PROT_WRITE, in test01()
317 PROT_READ | PROT_WRITE, in test02()
330 PROT_READ | PROT_WRITE, in test02()
/DragonOS/kernel/src/mm/
H A Ducontext.rs215 let prot_flags = ProtFlags::PROT_READ | ProtFlags::PROT_WRITE | ProtFlags::PROT_EXEC; in extend_stack()
667 .set_write(prot_flags.contains(ProtFlags::PROT_WRITE)); in mprotect()
765 let prot_flags = ProtFlags::PROT_READ | ProtFlags::PROT_WRITE | ProtFlags::PROT_EXEC; in set_brk()
1520 let is_downgrade = (self.flags.has_write() || !prot_flags.contains(ProtFlags::PROT_WRITE)) in can_have_flags()
1734 let mut prot_flags = ProtFlags::PROT_READ | ProtFlags::PROT_WRITE; in new()
1754 prot_flags.remove(ProtFlags::PROT_WRITE); in new()
1790 let prot_flags = ProtFlags::PROT_READ | ProtFlags::PROT_WRITE | ProtFlags::PROT_EXEC; in initial_extend()
1825 let prot_flags = ProtFlags::PROT_READ | ProtFlags::PROT_WRITE | ProtFlags::PROT_EXEC; in extend()
H A Dsyscall.rs27 const PROT_WRITE = 0x2; constant
174 if prot_flags.contains(ProtFlags::PROT_WRITE) { in from()
241 prot_flags |= ProtFlags::PROT_WRITE; in from()
H A Dpage.rs817 .set_write(prot_flags.contains(ProtFlags::PROT_WRITE)) in from_prot_flags()
/DragonOS/kernel/src/libs/
H A Delf.rs170 prot |= ProtFlags::PROT_WRITE; in make_prot()
240 let tmp_prot = if !prot.contains(ProtFlags::PROT_WRITE) { in load_elf_segment()
241 *prot | ProtFlags::PROT_WRITE in load_elf_segment()
/DragonOS/kernel/crates/rbpf/src/
H A Djit.rs999 libc::PROT_EXEC | libc::PROT_READ | libc::PROT_WRITE, in new()