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

1 2 3 4 5 6 78 91011>>

  /device/google/contexthub/util/stm32_flash/
i2c.h 25 int fd; member in struct:i2c_handle
uart.h 25 int fd; member in struct:uart_handle
  /device/google/cuttlefish_common/guest/monitoring/dumpstate_ext/
dumpstate_device.cpp 36 int fd = handle->data[0]; local
37 if (fd < 0) {
38 ALOGE("invalid FD: %d\n", handle->data[0]);
42 DumpFileToFd(fd, "GCE INITIAL METADATA", "/initial.metadata");
  /device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
tmpfile.c 65 int fd, sverrno; local
74 fd = mkstemp(buf);
75 if (fd != -1) {
79 (void)DeleteOnClose(fd);
84 if (fd == -1)
87 if ((fp = fdopen(fd, "w+")) == NULL) {
89 (void)close(fd);
  /external/autotest/client/deps/fakemodem/src/
fakenet.c 27 int fd, err; local
29 if ((fd = open ("/dev/net/tun", O_RDWR)) < 0) {
45 if ((err = ioctl (fd, TUNSETIFF, (void *) &ifr)) < 0) {
47 close (fd);
51 return fd;
58 int fd; local
62 fd = tun_alloc (namebuf);
63 if (fd == -1)
  /external/autotest/client/site_tests/security_Minijail_seccomp/src/
open.c 50 int fd = syscall(__NR_open, path, flags); local
51 syscall(__NR_close, fd);
  /external/autotest/client/site_tests/security_mprotect/src/
prot_exec.c 26 int fd; local
32 if ((fd = open(argv[1], O_RDWR|O_CREAT|O_EXCL, S_IRWXU)) < 0)
34 lseek(fd, 100, SEEK_CUR);
35 write(fd, "A", 1);
38 fd, 0)) == MAP_FAILED)
44 fd, 0)) != MAP_FAILED)
49 fd, 0)) == MAP_FAILED)
53 close(fd);
  /external/compiler-rt/test/sanitizer_common/TestCases/Linux/
timerfd.cc 11 int fd = timerfd_create(CLOCK_REALTIME, 0); local
12 assert(fd >= 0);
20 int res = timerfd_settime(fd, 0, &its, NULL);
24 res = timerfd_settime(fd, 0, &its, &its2);
32 res = timerfd_gettime(fd, &its3);
41 res = read(fd, &buf, sizeof(buf));
45 res = close(fd);
  /external/compiler-rt/test/tsan/
fd_dup_norace2.cc 14 int fd; variable
18 int n = read(fd, &buf, 1);
43 fd = open("/dev/urandom", O_RDONLY);
45 if (fd == -1 || fd2 == -1)
49 if (dup2(fd2, fd) == -1)
52 if (close(fd) == -1)
race_on_read.cc 8 int fd; variable
13 read(fd, &buf, 1);
18 read(fd, &buf, 1);
25 fd = open("/dev/random", O_RDONLY);
26 if (fd < 0) {
35 close(fd);
  /external/curl/docs/examples/
fileupload.c 37 FILE *fd; local
39 fd = fopen("debugit", "rb"); /* open file to upload */
40 if(!fd)
44 if(fstat(fileno(fd), &file_info) != 0)
57 curl_easy_setopt(curl, CURLOPT_READDATA, fd);
85 fclose(fd);
  /external/e2fsprogs/misc/
partinfo.c 30 int fd, i; local
48 fd = open(argv[i], O_RDONLY);
50 if (fd < 0) {
56 if (ioctl(fd, HDIO_GETGEO, &loc) < 0) {
59 close(fd);
64 if (ioctl(fd, BLKGETSIZE, &size) < 0) {
67 close(fd);
75 close(fd);
  /external/elfutils/tests/
debuglink.c 43 int fd = open (file, O_RDONLY); local
44 if (fd < 0)
47 Elf *elf = elf_begin (fd, ELF_C_READ, NULL);
60 close (fd);
dwarf-getstring.c 40 int fd = open (argv[cnt], O_RDONLY); local
41 if (fd == -1)
47 Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
51 close (fd);
74 close (fd);
strptr.c 48 int fd = open (fname, O_RDONLY); local
49 if (fd == -1)
55 Elf *elf = elf_begin (fd, ELF_C_READ, NULL);
92 close (fd);
test-flag-nobits.c 33 int fd = open (argv[1], O_RDONLY); local
34 Elf *stripped = elf_begin (fd, ELF_C_READ, NULL);
update1.c 36 int fd; local
41 fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666);
42 if (fd == -1)
50 elf = elf_begin (fd, ELF_C_WRITE, NULL);
update2.c 36 int fd; local
42 fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666);
43 if (fd == -1)
51 elf = elf_begin (fd, ELF_C_WRITE, NULL);
  /external/fio/os/windows/posix/include/sys/
poll.h 8 int fd; member in struct:pollfd
  /external/libbrillo/brillo/message_loops/
glib_message_loop_unittest.cc 41 int fd = HANDLE_EINTR(open("/dev/null", O_RDONLY)); local
44 FROM_HERE, fd, MessageLoop::kWatchRead, true,
54 int fd = HANDLE_EINTR(open("/dev/zero", O_RDONLY)); local
57 FROM_HERE, fd, MessageLoop::kWatchRead, true,
58 Bind([&called, fd] {
60 IGNORE_EINTR(close(fd));
  /external/libdrm/tests/tegra/
openclose.c 41 int err, fd; local
48 fd = open(device, O_RDWR);
49 if (fd < 0)
52 version = drmGetVersion(fd);
63 err = drm_tegra_new(&tegra, fd);
68 close(fd);
  /external/linux-kselftest/tools/testing/selftests/filesystems/
dnotify_test.c 19 int fd; local
26 fd = open(".", O_RDONLY);
27 fcntl(fd, F_SETSIG, SIGRTMIN + 1);
28 fcntl(fd, F_NOTIFY, DN_MODIFY|DN_CREATE|DN_MULTISHOT);
33 printf("Got event on fd=%d\n", event_fd);
  /external/linux-kselftest/tools/testing/selftests/media_tests/
media_device_open.c 43 int fd; local
69 fd = open(media_device, O_RDWR);
70 if (fd == -1) {
75 ret = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi);
media_device_test.c 48 int fd; local
78 fd = open(media_device, O_RDWR);
79 if (fd == -1) {
93 ret = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi);
  /external/ltp/lib/tests/
tst_safe_macros.c 7 int fd = -1; variable
11 SAFE_CLOSE(NULL, fd);
29 fd = SAFE_OPEN(cleanup, __FILE__ "~", O_RDWR);
30 SAFE_READ(cleanup, 0, fd, buf, 9);
32 SAFE_READ(cleanup, 1, fd, buf, 9);
35 SAFE_WRITE(NULL, 0, fd, buf, 9);
36 SAFE_WRITE(NULL, 1, fd, buf, 9);

Completed in 714 milliseconds

1 2 3 4 5 6 78 91011>>