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

1 2 3 4 5 6 7 8 91011>>

  /libcore/include/
ScopedFd.h 22 // A smart pointer that closes the given fd on going out of scope.
23 // Use this when the fd is incidental to the purpose of your function,
27 explicit ScopedFd(int fd) : fd(fd) {
31 close(fd);
35 return fd;
39 int fd; member in class:ScopedFd
  /external/bison/lib/
fd-safer.c 37 /* Return FD, unless FD would be a copy of standard input, output, or
38 error; in that case, return a duplicate of FD, closing FD. On
39 failure to duplicate, close FD, set errno, and return -1. Preserve
40 errno if FD is negative, so that the caller can always inspect
47 fd_safer (int fd)
49 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
51 int f = dup_safer (fd);
    [all...]
dup-safer.c 37 dup_safer (int fd)
40 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1);
44 return fd_safer (dup (fd));
  /external/chromium/base/
file_descriptor_posix.h 21 : fd(-1),
25 : fd(ifd),
29 return (fd == other.fd && auto_close == other.auto_close);
34 return other.fd < fd;
37 int fd; member in struct:base::FileDescriptor
  /external/qemu/android/protocol/
attach-ui-proxy.h 24 * fd - Socket descriptor for the proxy.
28 extern int attachUiProxy_create(int fd);
core-commands-impl.h 25 * fd - Socket descriptor for the service.
29 extern int coreCmdImpl_create(int fd);
user-events-impl.h 24 * fd - Socket descriptor for the service.
28 extern int userEventsImpl_create(int fd);
  /frameworks/av/include/media/
MemoryLeakTrackUtil.h 21 * Dump the memory address of the calling process to the given fd.
23 extern void dumpMemoryAddresses(int fd);
  /system/core/adb/
console.c 8 int fd, port; local
18 fd = socket_loopback_client( port, SOCK_STREAM );
19 if (fd < 0) {
23 return fd;
29 int fd, nn; local
31 fd = connect_to_console();
32 if (fd < 0)
38 adb_write( fd, argv[nn], strlen(argv[nn]) );
39 adb_write( fd, (nn == argc-1) ? "\n" : " ", 1 );
41 adb_write( fd, QUIT, sizeof(QUIT)-1 )
    [all...]
transport.h 24 int readx(int fd, void *ptr, size_t len);
25 int writex(int fd, const void *ptr, size_t len);
  /external/e2fsprogs/tests/progs/
random_exercise.c 50 int fd; local
53 fd = ((int) random()) % MAXFDS;
54 if (fd > 2)
55 return fd;
59 unsigned int get_inode_num(int fd)
63 if (fstat(fd, &st) < 0) {
74 int fd; local
83 fd = open(template, O_RDONLY, 0600);
84 printf("Created temp directory %s, fd = %d\n",
85 template, fd);
144 int i, fd; local
    [all...]
  /bionic/libc/unistd/
daemon.c 41 int fd = open("/dev/null", O_RDWR); local
43 if ( fd < 0 )
46 if ( dup2( fd, 0 ) < 0 ||
47 dup2( fd, 1 ) < 0 ||
48 dup2( fd, 2 ) < 0 )
50 close(fd);
53 close(fd);
fstatfs.c 32 int fstatfs(int fd, struct statfs* stat)
34 return __fstatfs64(fd, sizeof(struct statfs), stat);
isatty.c 34 isatty (int fd)
38 return tcgetattr (fd, &term) == 0;
tcsetpgrp.c 30 int tcsetpgrp(int fd, pid_t _pid)
32 return ioctl(fd, TIOCSPGRP, &_pid);
unlockpt.c 31 int unlockpt( int fd )
35 return ioctl( fd, TIOCSPTLCK, &unlock );
  /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/chromium/base/test/
test_file_util_linux.cc 16 int fd = open(file.value().c_str(), O_RDONLY); local
17 if (fd < 0)
19 if (fdatasync(fd) != 0)
21 if (posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED) != 0)
23 close(fd);
  /external/valgrind/main/none/tests/
closeall.c 9 int fd; local
13 for ( fd = 3; fd < lim.rlim_cur; fd++ )
14 close( fd );
  /hardware/libhardware_legacy/qemu_tracing/
qemu_tracing.c 42 int fd = open(SYS_QEMU_TRACE_STATE, O_WRONLY); local
43 if (fd < 0)
44 return fd;
45 write(fd, "1\n", 2);
46 close(fd);
52 int fd = open(SYS_QEMU_TRACE_STATE, O_WRONLY); local
53 if (fd < 0)
54 return fd;
55 write(fd, "0\n", 2);
56 close(fd);
66 int fd = open(SYS_QEMU_TRACE_SYMBOL, O_WRONLY); local
79 int fd = open(SYS_QEMU_TRACE_SYMBOL, O_WRONLY); local
    [all...]
  /hardware/msm7k/dspcrashd/
dspcrashd.c 52 void dump_dmesg(int fd)
64 while((ret = write(fd, p, n))) {
77 void dump_info(int fd)
83 write(fd, dashes, strlen(dashes));
87 write(fd, buf, strlen(buf));
90 write(fd, dashes, strlen(dashes));
91 dump_dmesg(fd);
92 write(fd, dashes, strlen(dashes));
97 int fd, r; local
103 fd = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0644)
131 int fd; local
    [all...]
  /bootable/recovery/minadbd/
transport.h 24 int readx(int fd, void *ptr, size_t len);
25 int writex(int fd, const void *ptr, size_t len);
  /external/e2fsprogs/lib/ext2fs/
getsectsize.c 26 #include <linux/fd.h>
41 int fd; local
44 fd = open64(file, O_RDONLY);
46 fd = open(file, O_RDONLY);
48 if (fd < 0)
52 if (ioctl(fd, BLKSSZGET, sectsize) >= 0) {
53 close(fd);
58 close(fd);
  /external/valgrind/main/memcheck/tests/
erringfds.stdout.exp 0 fd = -1
  /system/core/libcutils/
load_file.c 26 int fd; local
29 fd = open(fn, O_RDONLY);
30 if(fd < 0) return 0;
32 sz = lseek(fd, 0, SEEK_END);
35 if(lseek(fd, 0, SEEK_SET) != 0) goto oops;
40 if(read(fd, data, sz) != sz) goto oops;
41 close(fd);
48 close(fd);

Completed in 2485 milliseconds

1 2 3 4 5 6 7 8 91011>>