HomeSort by relevance Sort by last modified time
    Searched defs:fd (Results 1 - 25 of 2744) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /art/libartbase/base/
memfd_test.cc 23 int fd = art::memfd_create("memfd_create_test", 0); local
24 if (fd < 0) {
29 ASSERT_TRUE(close(fd) == 0 || errno != EBADF);
  /bionic/libc/upstream-openbsd/lib/libc/gen/
daemon.c 39 int fd; local
56 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
57 (void)dup2(fd, STDIN_FILENO);
58 (void)dup2(fd, STDOUT_FILENO);
59 (void)dup2(fd, STDERR_FILENO);
60 if (fd > 2)
61 (void)close(fd);
  /device/google/cuttlefish_common/guest/commands/usbforward/
main.cpp 29 cvd::SharedFD fd = cvd::SharedFD::Open(argv[1], O_RDWR | O_NOCTTY); local
30 if (!fd->IsOpen()) {
31 ALOGE("Could not open %s: %s", argv[1], fd->StrError());
35 usb_forward::USBServer server(fd);
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
tf_inherit_check.py 10 fd = int(sys.argv[2]) variable
13 os.write(fd, "blat")
15 # Success -- could not write to fd.
19 sys.stderr.write("fd %d is open in child" % fd)
  /device/linaro/bootloader/edk2/StdLib/PosixLib/Gen/
closedir.c 66 int fd; local
74 fd = dirp->dd_fd;
87 return(close(fd));
  /external/ltp/testcases/commands/eject/
eject_check_tray.c 44 int fd; local
49 if ((fd = open(argv[1], O_RDONLY | O_NONBLOCK)) == -1)
52 exit(ioctl(fd, CDROM_DRIVE_STATUS));
  /external/ltp/testcases/kernel/controllers/cpuctl_fj/
cpuctl_fj_simple_echo.c 48 int fd = 1; local
57 if ((fd = open(argv[2], O_RDWR | O_SYNC)) == -1)
60 if (write(fd, argv[1], strlen(argv[1])) == -1)
63 if (fd != 1)
64 if (close(fd) == -1)
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/
5-1.c 25 int fd; local
27 /* -1 is an invalid fd */
29 fd = -1;
30 if (fsync(fd) == -1 && errno == EBADF) {
31 printf("Got EBADF when fd=-1\n");
  /external/openssh/openbsd-compat/
daemon.c 54 int fd; local
71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
72 (void)dup2(fd, STDIN_FILENO);
73 (void)dup2(fd, STDOUT_FILENO);
74 (void)dup2(fd, STDERR_FILENO);
75 if (fd > 2)
76 (void)close (fd);
  /external/python/cpython2/Lib/test/
tf_inherit_check.py 10 fd = int(sys.argv[2]) variable
13 os.write(fd, "blat")
15 # Success -- could not write to fd.
19 sys.stderr.write("fd %d is open in child" % fd)
  /external/python/cpython3/Lib/test/
tf_inherit_check.py 12 fd = int(sys.argv[2]) variable
15 os.write(fd, b"blat")
17 # Success -- could not write to fd.
21 sys.stderr.write("fd %d is open in child" % fd)
  /external/toybox/toys/other/
freeramdisk.c 22 int fd; local
24 fd = xopen(toys.optargs[0], O_RDWR);
25 xioctl(fd, BLKFLSBUF, toys.optargs[0]);
26 if (CFG_TOYBOX_FREE) xclose(fd);
reset.c 21 int fd = tty_fd(); local
25 xwrite(fd<0 ? 1 : fd, "\033c\033[?7h", 2);
  /bionic/libc/bionic/
fchmodat.cpp 50 int fd = openat(dirfd, pathname, O_PATH | O_NOFOLLOW | O_CLOEXEC); local
51 if (fd == -1) {
60 int result = fchmod(fd, mode);
62 close(fd);
  /bionic/tests/
eventfd_test.cpp 26 int fd = eventfd(initial_value, O_NONBLOCK); local
27 ASSERT_NE(fd, -1);
30 ASSERT_EQ(0, eventfd_read(fd, &value));
34 ASSERT_EQ(-1, eventfd_read(fd, &value));
38 ASSERT_EQ(0, eventfd_write(fd, 1));
39 ASSERT_EQ(0, eventfd_write(fd, 1));
40 ASSERT_EQ(0, eventfd_write(fd, 1));
42 ASSERT_EQ(0, eventfd_read(fd, &value));
45 close(fd);
  /cts/hostsidetests/securitybulletin/securityPatch/Bug-38195738/
poc.c 28 int fd = open("/dev/kgsl-3d0", 0); local
36 ioctl(fd, 0xc018092ful, 0x20000ff0ul);
37 close(fd);
  /cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0426/
poc.c 36 int fd = lstat("/bugreports", &buf); local
37 if (fd < 0) {
  /device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
mkstemp.c 69 int fd; local
73 return (GETTEMP(path, &fd, 0) ? fd : -1);
  /external/android-clat/
mtu.c 34 int fd; local
37 fd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0);
38 if (fd < 0) {
43 if (ioctl(fd, SIOCGIFMTU, &if_mtu) < 0) {
44 close(fd);
47 close(fd);
  /external/compiler-rt/test/asan/TestCases/Posix/
coverage-maybe-open-file.cc 20 int fd = __sanitizer_maybe_open_cov_file("test"); local
21 if (fd > 0) {
24 write(fd, s, strlen(s));
25 close(fd);
ioctl.cc 14 int fd = socket(AF_INET, SOCK_DGRAM, 0); local
17 int res = ioctl(fd, FIONBIO, &nonblock + 1);
22 close(fd);
  /external/compiler-rt/test/msan/Linux/
ioctl_sound.cc 16 int fd = open("/dev/snd/controlC0", O_RDONLY); local
17 if (fd < 0) {
24 assert(ioctl(fd, SNDRV_CTL_IOCTL_CARD_INFO, info) >= 0);
26 close(fd);
tcgetattr.cc 11 int fd = getpt(); local
12 assert(fd >= 0);
15 int res = tcgetattr(fd, &t);
  /external/compiler-rt/test/msan/
ioctl.cc 11 int fd = socket(AF_INET, SOCK_DGRAM, 0); local
14 int res = ioctl(fd, FIOGETOWN, &z);
16 close(fd);
  /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));

Completed in 1143 milliseconds

1 2 3 4 5 6 7 8 91011>>