Home
last modified time | relevance | path

Searched refs:seals (Results 1 – 20 of 20) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/memfd/
Dfuse_test.c76 static void mfd_assert_has_seals(int fd, __u64 seals) in mfd_assert_has_seals() argument
81 if (s != seals) { in mfd_assert_has_seals()
83 (unsigned long long)seals, (unsigned long long)s, fd); in mfd_assert_has_seals()
88 static void mfd_assert_add_seals(int fd, __u64 seals) in mfd_assert_add_seals() argument
94 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_assert_add_seals()
97 fd, (unsigned long long)s, (unsigned long long)seals); in mfd_assert_add_seals()
102 static int mfd_busy_add_seals(int fd, __u64 seals) in mfd_busy_add_seals() argument
113 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_busy_add_seals()
116 fd, (unsigned long long)s, (unsigned long long)seals); in mfd_busy_add_seals()
Dmemfd_test.c99 static void mfd_assert_has_seals(int fd, unsigned int seals) in mfd_assert_has_seals() argument
104 if (s != seals) { in mfd_assert_has_seals()
105 printf("%u != %u = GET_SEALS(%d)\n", seals, s, fd); in mfd_assert_has_seals()
110 static void mfd_assert_add_seals(int fd, unsigned int seals) in mfd_assert_add_seals() argument
116 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_assert_add_seals()
118 printf("ADD_SEALS(%d, %u -> %u) failed: %m\n", fd, s, seals); in mfd_assert_add_seals()
123 static void mfd_fail_add_seals(int fd, unsigned int seals) in mfd_fail_add_seals() argument
134 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_fail_add_seals()
137 fd, s, seals); in mfd_fail_add_seals()
/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create_common.h52 #define CHECK_MFD_HAS_SEALS(fd, seals) \ argument
53 check_mfd_has_seals(__FILE__, __LINE__, (fd), (seals));
55 #define CHECK_MFD_ADD_SEALS(fd, seals) \ argument
56 ({int r = SAFE_FCNTL((fd), F_ADD_SEALS, (seals)); \
58 (fd), (seals)); r; })
60 #define CHECK_MFD_FAIL_ADD_SEALS(fd, seals) \ argument
61 check_mfd_fail_add_seals(__FILE__, __LINE__, (fd), (seals))
127 void check_mfd_has_seals(const char *file, const int lineno, int fd, int seals);
133 int seals);
Dmemfd_create_common.c210 void check_mfd_has_seals(const char *file, const int lineno, int fd, int seals) in check_mfd_has_seals() argument
213 if (ret != seals) { in check_mfd_has_seals()
216 fd, ret, seals); in check_mfd_has_seals()
220 "fd %d has expected seals (%d)", fd, seals); in check_mfd_has_seals()
236 int fd, int seals) in check_mfd_fail_add_seals() argument
238 if (fcntl(fd, F_ADD_SEALS, seals) >= 0) { in check_mfd_fail_add_seals()
245 (seals)); in check_mfd_fail_add_seals()
/external/crosvm/sys_util/src/
Dshm.rs168 pub fn add_seals(&mut self, seals: MemfdSeals) -> Result<()> { in add_seals()
169 let ret = unsafe { fcntl(self.fd.as_raw_fd(), F_ADD_SEALS, seals) }; in add_seals()
387 let mut seals = shm.get_seals().expect("failed to get seals"); in new_sealed() localVariable
388 assert_eq!(seals.bitmask(), 0); in new_sealed()
389 seals.set_seal_seal(); in new_sealed()
390 shm.add_seals(seals).expect("failed to add seals"); in new_sealed()
391 seals = shm.get_seals().expect("failed to get seals"); in new_sealed()
392 assert!(seals.seal_seal()); in new_sealed()
394 shm.add_seals(seals).unwrap_err(); in new_sealed()
/external/crosvm/base/src/
Dshm.rs65 fn add_seals(&mut self, seals: MemfdSeals) -> Result<()>; in add_seals()
73 fn add_seals(&mut self, seals: MemfdSeals) -> Result<()> { in add_seals()
74 self.0.add_seals(seals) in add_seals()
/external/wayland/src/
Dwayland-shm.c266 int seals; in shm_create_pool() local
282 seals = fcntl(fd, F_GET_SEALS); in shm_create_pool()
283 if (seals == -1) in shm_create_pool()
284 seals = 0; in shm_create_pool()
285 pool->sigbus_is_impossible = (seals & F_SEAL_SHRINK) ? true : false; in shm_create_pool()
/external/perfetto/src/profiling/memory/
Dshared_ring_buffer.cc124 int seals = fcntl(*mem_fd, F_GET_SEALS); in Initialize() local
125 if (seals == -1) { in Initialize()
129 if ((seals & kFDSeals) != kFDSeals) { in Initialize()
131 seals); in Initialize()
/external/crosvm/vm_memory/src/
Dguest_memory.rs147 let mut seals = MemfdSeals::new(); in create_shm() localVariable
149 seals.set_shrink_seal(); in create_shm()
150 seals.set_grow_seal(); in create_shm()
151 seals.set_seal_seal(); in create_shm()
155 shm.add_seals(seals).map_err(Error::MemoryAddSealsFailed)?; in create_shm()
/external/crosvm/src/plugin/
Dprocess.rs357 let seals = shm.get_seals()?; in handle_memory() localVariable
358 if !seals.shrink_seal() { in handle_memory()
/external/libtextclassifier/native/annotator/pod_ner/test_data/
Dvocab.txt13946 seals
/external/kotlinx.coroutines/benchmarks/src/jmh/resources/
Dwords.shakespeare.txt.gz1a 2A 3Aaron 4AARON 5abaissiez 6abandon 7abandoned 8abase 9Abase 10 ...
Dospd.txt.gz
/external/jline/src/src/test/resources/jline/example/
Denglish.gz
/external/icu/icu4j/main/shared/data/
DTransliterator_Han_Latin_Definition.txt2698 䃇 < ink\-for\-imprinting\-of\-seals;
37792 䃇 > ink\-for\-imprinting\-of\-seals;
/external/brotli/tests/testdata/
Dplrabn12.txt9976 The haunt of seals, and orcs, and sea-mews' clang:
/external/one-true-awk/testdir/
Dbib30781 …d of him that sat on the throne a book written within and on the backside, sealed with seven seals.
30782 …ngel proclaiming with a loud voice, Who is worthy to open the book, and to loose the seals thereof?
30785 … of Juda, the Root of David, hath prevailed to open the book, and to loose the seven seals thereof.
30789 And they sung a new song, saying, Thou art worthy to take the book, and to open the seals thereof: …
30795 And I saw when the Lamb opened one of the seals, and I heard, as it were the noise of thunder, one …
Dfunstack.in9032 …r programming languages; environments; programming languages; protection; seals; secrecy; security…
/external/cldr/tools/java/org/unicode/cldr/util/data/transforms/
Dinternal_raw_IPA-old.txt174236 seals %28329 silz
Dinternal_raw_IPA.txt145979 seals %38077 silz