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

1 2 3 45 6 7 8 91011>>

  /external/compiler-rt/test/asan/TestCases/Posix/
readv.cc 26 int fd = open("/etc/hosts", O_RDONLY); local
27 assert(fd > 0);
28 readv(fd, iov, 2);
30 close(fd);
  /external/compiler-rt/test/msan/
ioctl_custom.cc 17 int fd = socket(AF_INET, SOCK_STREAM, 0); local
25 int res = ioctl(fd, SIOCGIFCONF, (void *)&ifc);
  /external/compiler-rt/test/tsan/
fd_dup_race.cc 9 int fd; variable
13 if (close(fd) == -1)
20 fd = open("/dev/random", O_RDONLY);
22 if (fd == -1 || fd2 == -1)
26 if (dup2(fd2, fd) == -1)
race_on_write.cc 7 int fd; variable
17 write(fd, &buf, 1);
23 fd = open("/dev/null", O_WRONLY);
24 if (fd < 0) return 1;
31 close(fd);
  /external/curl/lib/
file.h 33 int fd; /* open file descriptor to read from! */ member in struct:FILEPROTO
  /external/e2fsprogs/e2fsck/
flushb.c 41 int fd; local
47 fd = open(argv[1], O_RDONLY, 0);
48 if (fd < 0) {
57 if (ioctl(fd, BLKFLSBUF, 0) < 0) {
  /external/elfutils/tests/
newscn.c 33 int fd; local
38 fprintf (stderr, "library fd of date\n");
43 fd = mkstemp (name);
44 if (fd < 0)
51 elf = elf_begin (fd, ELF_C_WRITE, NULL);
63 close (fd);
  /external/linux-kselftest/tools/testing/selftests/efivarfs/
create-read.c 16 int fd, rc; local
26 fd = open(path, O_RDWR | O_CREAT, 0600);
27 if (fd < 0) {
32 rc = read(fd, buf, sizeof(buf));
  /external/linux-kselftest/tools/testing/selftests/intel_pstate/
msr.c 15 int cpu, fd; local
29 fd = open(msr_file_name, O_RDONLY);
31 if (fd == -1) {
36 pread(fd, &msr, sizeof(msr), 0x199);
  /external/ltp/lib/newlib_tests/
tst_device.c 26 int fd; local
36 fd = SAFE_OPEN(dev, O_RDONLY);
37 SAFE_IOCTL(fd, BLKGETSIZE64, &ltp_dev_size);
38 SAFE_CLOSE(fd);
  /external/ltp/testcases/kernel/io/ltp-aiodio/
dirty.c 38 int fd; local
48 fd = open(filename, O_CREAT | O_WRONLY, 0666);
52 write(fd, buf, sizeof(buf));
53 fsync(fd);
54 close(fd);
  /external/ltp/testcases/kernel/syscalls/openat/
openat02_child.c 29 int fd; local
33 fprintf(stderr, "%s <fd>\n", argv[0]);
37 fd = atoi(argv[1]);
38 ret = write(fd, STR, sizeof(STR) - 1);
  /external/ltp/testcases/kernel/syscalls/splice/
splice02.c 38 int fd; local
40 fd = SAFE_OPEN("splice02-temp", O_WRONLY | O_CREAT | O_TRUNC, 0644);
42 TEST(splice(STDIN_FILENO, NULL, fd, NULL, SPLICE_SIZE, 0));
50 SAFE_CLOSE(fd);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/
2-2.c 42 int fd; local
50 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR);
51 if (fd == -1) {
58 if (aio_cancel(fd, NULL) == -1) {
63 close(fd);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
32-1.c 31 int fd; local
35 fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR);
36 if (fd == -1) {
42 pa = mmap(NULL, 0, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
46 close(fd);
55 close(fd);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
15-1.c 31 int fd, result; local
42 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR);
43 if (fd == -1) {
48 result = fstat(fd, &stat_buf);
16-1.c 29 int fd, result; local
40 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR);
41 if (fd == -1) {
46 result = fstat(fd, &stat_buf);
17-1.c 29 int fd, result; local
40 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR);
41 if (fd == -1) {
46 result = fstat(fd, &stat_buf);
21-1.c 27 int fd, result; local
38 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR);
39 if (fd == -1) {
44 result = fstat(fd, &stat_buf);
37-1.c 42 int fd, i = 0, result = PTS_PASS; local
49 fd = shm_open(shm_name[i], O_RDWR | O_CREAT, 0);
51 if (fd == -1 && errno == EINVAL) {
53 } else if (fd != -1) {
39-1.c 26 int fd, i; local
42 fd = shm_open(shm_name, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
44 if (fd == -1 && errno == ENAMETOOLONG) {
47 } else if (fd != -1) {
  /external/nos/host/android/manual_tests/
stupid.c 30 int fd, r; local
32 fd = open("/dev/citadel0", O_RDWR);
33 if (fd < 0) {
39 r = ioctl(fd, CITADEL_IOC_RESET);
40 close(fd);
  /external/parameter-framework/upstream/test/tmpfile/posix/
TmpFile.cpp 46 int fd = mkstemp(path); local
47 if (fd == -1) {
50 if (close(fd) != 0) {
  /external/selinux/libselinux/src/
disable.c 14 int fd, ret; local
24 fd = open(path, O_WRONLY | O_CLOEXEC);
25 if (fd < 0)
30 ret = write(fd, buf, strlen(buf));
31 close(fd);
setenforce.c 14 int fd, ret; local
24 fd = open(path, O_RDWR | O_CLOEXEC);
25 if (fd < 0)
29 ret = write(fd, buf, strlen(buf));
30 close(fd);

Completed in 890 milliseconds

1 2 3 45 6 7 8 91011>>