Lines Matching refs:file

4  * you may not use this file except in compliance with the License.
21 #include <sys/file.h>
312 * @tc.name mmap function file private map and read and write permission test
322 char file[] = MMAP_TESTFILE;
324 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO);
352 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
358 * @tc.name mmap function file share map and read and write permission test
368 char file[] = MMAP_TESTFILE;
370 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO);
398 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
404 * @tc.name mmap function file share map and only read permission test
414 char file[] = MMAP_TESTFILE;
415 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO);
439 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
445 * @tc.name mmap function file share map and only write permission test
454 char file[] = MMAP_TESTFILE;
456 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO);
482 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
488 * @tc.name mmap function file private map and execute permission test
500 char file[] = MMAP_TESTFILE;
502 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO);
529 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
535 * @tc.name mmap function file share map and execute permission test
547 char file[] = MMAP_TESTFILE;
549 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO);
576 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
582 * @tc.name mmap function file share map and NO execute permission test
594 char file[] = MMAP_TESTFILE;
596 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO);
620 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
697 * @tc.name mmap function write back to the file test
708 char file[] = MMAP_TESTFILE;
710 int fd = open(file, O_CREAT | O_RDWR, 0777);
738 fd = open(file, O_RDONLY, 0777);
754 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
767 char file[] = MMAP_TESTFILE;
769 /* file open read only access mode */
770 fd = open(file, O_CREAT | O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO);
782 /* file open append access mode */
783 fd = open(file, O_APPEND, S_IRWXU | S_IRWXG | S_IRWXO);
795 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;
807 char file[] = MMAP_TESTFILE;
810 int fd = open(file, O_CREAT | O_RDWR, 0777);
824 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0";
836 char file[] = MMAP_TESTFILE;
838 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO);
900 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno;