Lines Matching refs:file

4  * you may not use this file except in compliance with the License.
21 #include <sys/file.h>
212 * @tc.name mprotect function add read permission to the file map area test
225 char file[] = MPROTECT_TESTFILE;
227 int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO);
256 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
262 * @tc.name mprotect function add write permission to the file map area test
275 char file[] = MPROTECT_TESTFILE;
277 int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO);
301 fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO);
313 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
319 * @tc.name mprotect function add execute permission to the file map area test
328 char file[] = MPROTECT_TESTFILE;
333 int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO);
356 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
362 * @tc.name mprotect function delete write permission to the file map area test
374 char file[] = MPROTECT_TESTFILE;
376 int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO);
401 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
407 * @tc.name mprotect function delete execute permission to the file map area test
416 char file[] = MPROTECT_TESTFILE;
421 int fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO);
445 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
458 char file[] = MPROTECT_TESTFILE;
460 int fd = open(file, O_CREAT|O_RDONLY, S_IRUSR|S_IRGRP|S_IROTH);
474 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;