/external/chromium/base/ |
file_descriptor_posix.h | 23 FileDescriptor(int ifd, bool iauto_close) 24 : fd(ifd),
|
/external/ppp/pppd/ |
tty.c | 922 start_charshunt(ifd, ofd) 923 int ifd, ofd; 927 cpid = safe_fork(ifd, ofd, (log_to_fd >= 0? log_to_fd: 2)); 972 * (We assume ofd >= ifd which is true the way this gets called. :-). 975 charshunt(ifd, ofd, record_file) 976 int ifd, ofd; 1038 if (ifd >= FD_SETSIZE || ofd >= FD_SETSIZE || pty_master >= FD_SETSIZE) 1040 ifd, ofd, pty_master); 1056 flags = fcntl(ifd, F_GETFL); 1058 || fcntl(ifd, F_SETFL, flags | O_NONBLOCK) == -1 [all...] |
sys-solaris.c | 575 int ifd, x; local 627 ifd = open(PPP_DEV_NAME, O_RDWR, 0); 628 if (ifd < 0) 632 strioctl(ifd, PPPIO_DEBUG, &x, sizeof(int), 0); 638 close(ifd); 648 if (ioctl(ifd, I_PUSH, IP_MOD_NAME) < 0) { 649 close(ifd); 660 if (sifppa(ifd, ifunit) < 0) { 661 close (ifd); 675 close(ifd); [all...] |
/frameworks/base/cmds/dumpstate/ |
utils.c | 365 int ifd = inotify_init(); local 366 if (ifd < 0) { 371 int wfd = inotify_add_watch(ifd, traces_path, IN_CLOSE_WRITE); 403 struct pollfd pfd = { ifd, POLLIN, 0 }; 411 read(ifd, &ie, sizeof(ie)); 415 close(ifd);
|
/development/tools/yuv420sp2rgb/ |
yuv420sp2rgb.c | 200 int ifd, ofd, rc; local 230 ifd = open(infile, O_RDONLY); 231 FAILIF(ifd < 0, "open(%s) failed: %s (%d)\n", 240 in = mmap(0, width * height * 3 / 2, PROT_READ, MAP_PRIVATE, ifd, 0);
|
/external/blktrace/btreplay/ |
btreplay.c | 99 * @ifd: Input file descriptor 113 int cpu, ifd, ofd, iterations; member in struct:thr_info 870 tip->ifd = open(file_name, O_RDONLY); 871 if (tip->ifd < 0) { 875 if (fstat(tip->ifd, &buf) < 0) { 885 if (read(tip->ifd, &hdr, sizeof(hdr)) != sizeof(hdr)) { 904 close(tip->ifd); 938 close(tip->ifd); 1122 result = read(tip->ifd, &bunch->hdr, sizeof(bunch->hdr)); 1134 result = read(tip->ifd, &bunch->pkts, count) [all...] |