Home
last modified time | relevance | path

Searched refs:shmfd (Results 1 - 3 of 3) sorted by relevance

/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
H A Dshm_test_014.cpp38 int shmfd; in testcase() local
46 shmfd = shm_open("test_2", O_RDONLY, 00664); in testcase()
47 ICUNIT_ASSERT_EQUAL(shmfd, -1, shmfd); in testcase()
50 shmfd = shm_open("test_2", O_RDONLY | O_CREAT, 00664); in testcase()
51 ICUNIT_ASSERT_NOT_EQUAL(shmfd, -1, shmfd); in testcase()
60 count = write(shmfd, writebuf, pageSize); in testcase()
63 close(shmfd); in testcase()
67 shmfd in testcase()
[all...]
H A Dshm_test_013.cpp36 int shmfd; in testcase() local
43 shmfd = shm_open("test_1", O_RDWR | O_CREAT | O_EXCL, 0644); in testcase()
44 ICUNIT_ASSERT_NOT_EQUAL(shmfd, -1, shmfd); in testcase()
53 count = write(shmfd, writebuf, pageSize); in testcase()
56 ret = lseek(shmfd, 0, SEEK_SET); in testcase()
58 count = read(shmfd, readbuf, pageSize); in testcase()
68 close(shmfd); in testcase()
/kernel/liteos_a/testsuites/unittest/basic/mem/vm/smoke/
H A Dmmap_test_002.cpp57 int shmfd; in Testcase() local
63 shmfd = shm_open("/test", O_RDWR | O_CREAT, 0644); in Testcase()
64 ICUNIT_ASSERT_NOT_EQUAL(shmfd, -1, shmfd); in Testcase()
78 count = write(shmfd, buf, pageSize); in Testcase()
90 ret = CheckedMmap(PROT_READ | PROT_WRITE, MAP_SHARED, shmfd); in Testcase()
94 ret = CheckedMmap(PROT_READ | PROT_WRITE, MAP_PRIVATE, shmfd); in Testcase()
102 ret = CheckedMmap(0xffff, MAP_SHARED, shmfd); in Testcase()
114 ret = CheckedMmap(PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_SHARED, shmfd); in Testcase()
118 ret = CheckedMmap(PROT_READ | PROT_WRITE, 0, shmfd); in Testcase()
[all...]

Completed in 2 milliseconds