HomeSort by relevance Sort by last modified time
    Searched defs:fd (Results 26 - 50 of 3995) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/compiler-rt/test/sanitizer_common/TestCases/Posix/
sanitizer_set_report_fd_test.cc 29 int fd = open(argv[1], O_CREAT | O_WRONLY | O_TRUNC, S_IRWXU); local
30 assert(fd > 0);
31 __sanitizer_set_report_fd(reinterpret_cast<void*>(fd));
  /external/elfutils/tests/
early-offscn.c 38 int fd = open (argv[1], O_RDONLY); local
39 if (fd < 0)
42 Elf *elf = elf_begin (fd, ELF_C_READ, NULL);
rdwrmmap.c 31 int fd = open (argv[1], O_RDWR); local
32 if (fd < 0)
38 Elf *elf = elf_begin (fd, ELF_C_RDWR_MMAP, NULL);
46 close (fd);
  /external/ltp/lib/
tst_fill_file.c 33 int fd; local
37 fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR);
38 if (fd < 0)
44 close(fd);
54 if (write(fd, buf, bs) != (ssize_t)bs) {
56 close(fd);
65 if (close(fd) < 0) {
  /external/ltp/testcases/kernel/syscalls/epoll_create1/
epoll_create1_01.c 39 int fd, coe; local
41 fd = tst_syscall(__NR_epoll_create1, 0);
42 if (fd == -1)
45 coe = SAFE_FCNTL(fd, F_GETFD);
49 SAFE_CLOSE(fd);
51 fd = tst_syscall(__NR_epoll_create1, EPOLL_CLOEXEC);
52 if (fd == -1)
55 coe = SAFE_FCNTL(fd, F_GETFD);
59 SAFE_CLOSE(fd);
  /external/ltp/testcases/kernel/syscalls/futex/
futex_common.h 29 int fd; local
31 fd = shm_open("/LTP_futex_wait", O_RDWR | O_CREAT | O_EXCL, 0);
33 if (fd < 0) {
41 MAP_ANONYMOUS | MAP_SHARED, fd, 0);
43 SAFE_CLOSE(NULL, fd);
  /external/ltp/testcases/kernel/syscalls/open/
open12_child.c 26 int fd; local
29 fprintf(stderr, "Only two arguments: %s <fd>\n", argv[0]);
33 fd = atoi(argv[1]);
34 ret = write(fd, argv[1], strlen(argv[1]));
  /external/ltp/testcases/kernel/syscalls/pipe/
pipe03.c 27 static int fd[2]; variable
33 TEST(pipe(fd));
39 TEST(write(fd[0], "A", 1));
48 TEST(read(fd[1], buf, 1));
57 SAFE_CLOSE(fd[0]);
58 SAFE_CLOSE(fd[1]);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/
5-1.c 26 int fd; local
28 /* -1 is an invalid fd */
30 fd = -1;
31 if (fsync(fd) == -1 && errno == EBADF) {
32 printf("Got EBADF when fd=-1\n");
7-1.c 33 int fd[2]; local
35 if (pipe(fd) == -1) {
41 if (fsync(fd[1]) == -1 && errno == EINVAL) {
44 close(fd[0]);
45 close(fd[1]);
50 close(fd[0]);
51 close(fd[1]);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
19-1.c 31 int fd = -1; local
33 pa = mmap(NULL, 1024, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
43 printf("Test FAILED: Did not get EBADF when fd is invalid\n");
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
11-1.c 26 int fd, flags; local
28 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR);
29 if (fd == -1) {
34 flags = fcntl(fd, F_GETFD);
22-1.c 26 int fd; local
29 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR);
30 if (fd == -1) {
35 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
37 if (fd == -1 && errno == EEXIST) {
41 } else if (fd != -1) {
38-1.c 25 int fd = 0, count = 0; local
27 while (fd != -1) {
28 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
41-1.c 25 int fd, result; local
35 fd = shm_open(SHM_NAME, O_RDONLY, S_IRUSR);
37 if (fd == -1 && errno == ENOENT) {
40 } else if (fd != -1) {
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/
1-1.c 26 int fd; local
28 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
29 if (fd == -1) {
34 if (close(fd) != 0) {
45 fd = shm_open(SHM_NAME, O_RDONLY, 0);
47 if (fd == -1 && errno == ENOENT) {
50 } else if (fd == -1) {
2-1.c 26 int fd; local
28 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
29 if (fd == -1) {
39 fd = shm_open(SHM_NAME, O_RDONLY, 0);
41 if (fd == -1 && errno == ENOENT) {
44 } else if (fd == -1) {
5-1.c 26 int fd; local
28 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
29 if (fd == -1) {
39 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
40 if (fd == -1 && errno == EEXIST) {
43 } else if (fd == -1) {
6-1.c 23 int fd; local
25 fd = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
26 if (fd == -1) {
  /external/strace/tests/
faccessat.c 13 const long int fd = (long int) 0xdeadbeefffffffffULL; local
15 long rc = syscall(__NR_faccessat, fd, sample, F_OK);
17 (int) fd, sample, rc, errno2name());
fchdir.c 12 const long int fd = (long int) 0xdeadbeefffffffffULL; local
14 long rc = syscall(__NR_fchdir, fd);
16 (int) fd, rc, errno2name());
fchmod.c 46 int fd = open(fname, O_CREAT|O_RDONLY, 0400); local
47 if (fd < 0)
53 long rc = syscall(__NR_fchmod, fd, 0600);
54 printf("fchmod(%d, 0600) = %s\n", fd, sprintrc(rc));
56 close(fd);
58 rc = syscall(__NR_fchmod, fd, 051);
59 printf("fchmod(%d, 051) = %s\n", fd, sprintrc(rc));
61 rc = syscall(__NR_fchmod, fd, 004);
62 printf("fchmod(%d, 004) = %s\n", fd, sprintrc(rc));
fdatasync.c 12 const long int fd = (long int) 0xdeadbeefffffffffULL; local
14 long rc = syscall(__NR_fdatasync, fd);
15 printf("fdatasync(%d) = %ld %s (%m)\n", (int) fd, rc, errno2name());
flock.c 13 const unsigned long fd = (long int) 0xdeadbeefffffffffULL; local
15 long rc = syscall(__NR_flock, fd, LOCK_SH);
17 (int) fd, rc, errno2name());
fsync.c 12 const long int fd = (long int) 0xdeadbeefffffffffULL; local
14 long rc = syscall(__NR_fsync, fd);
15 printf("fsync(%d) = %ld %s (%m)\n", (int) fd, rc, errno2name());

Completed in 559 milliseconds

12 3 4 5 6 7 8 91011>>