Home
last modified time | relevance | path

Searched refs:rofd (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress07.c48 #define CLEANERROR(M) (void)close(rofd); \
90 int rofd, rwfd, i; local
153 if ((rofd = open64(tmpname, O_RDONLY | O_CREAT, 0777)) == -1) {
155 if ((rofd = open(tmpname, O_RDONLY | O_CREAT, 0777)) == -1) {
206 MAP_SHARED | MAP_FILE, rofd,
210 MAP_SHARED | MAP_FILE, rofd,
248 if (lseek64(rofd, sparseoff, SEEK_SET) == -1) {
250 if (lseek(rofd, sparseoff, SEEK_SET) == -1) {
260 if (checkchars(rofd, 'a', pagesize)) {
264 if (checkchars(rofd, '\0', (e_pageskip - 1) * pagesize)) {
[all …]
Dmmapstress04.c37 int i, j, rofd, rwfd; in mmapstress04() local
44 rofd = SAFE_OPEN(TEST_FILE, O_RDONLY | O_CREAT, 0777); in mmapstress04()
67 rofd, mapoff); in mmapstress04()
70 SAFE_CLOSE(rofd); in mmapstress04()