/external/e2fsprogs/util/ |
copy_sparse.c | 93 long lb, i, fd, ofd, bs, block, numblocks; local 135 ofd = open(dest, O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0777); 136 if (ofd < 0) { 160 if (lseek64(ofd, should_be, SEEK_SET) == (off_t) -1) { 177 lseek(ofd, bs, SEEK_CUR); 182 got2 = write(ofd, buf, got); 190 if (fstat64(ofd, &fileinfo) < 0) { 195 lseek64(ofd, offset-1, SEEK_CUR); 197 write(ofd, buf, 1); 200 close(ofd); [all...] |
/development/tools/yuv420sp2rgb/ |
yuv420sp2rgb.c | 200 int ifd, ofd, rc; local 235 ofd = open(outfile, O_RDWR | O_CREAT, 0664); 236 FAILIF(ofd < 0, "open(%s) failed: %s (%d)\n", 245 FAILIF(ftruncate(ofd, outsize) < 0, 250 out = mmap(0, outsize, PROT_WRITE, MAP_SHARED, ofd, 0); 255 FAILIF(write(ofd, header, header_size) != header_size,
|
/external/dropbear/ |
scp.c | 832 int amt, exists, first, mask, mode, ofd, omode; local 991 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) { 996 if ((bp = allocbuf(&buffer, ofd, 4096)) == NULL) { 997 (void) close(ofd); 1033 if (atomicio(vwrite, ofd, bp->buf, 1048 atomicio(vwrite, ofd, bp->buf, count) != count) { 1052 if (wrerr == NO && ftruncate(ofd, size) != 0) { 1059 if (fchmod(ofd, omode)) { 1070 if (fchmod(ofd, omode & ~mask)) { 1079 if (close(ofd) == -1) [all...] |
/external/netcat/ |
netcat.c | 120 int ofd = 0; /* hexdump output fd */ variable [all...] |
/external/blktrace/btreplay/ |
btreplay.c | 100 * @ofd: Output file descriptor 113 int cpu, ifd, ofd, iterations; member in struct:thr_info 736 io_prep_pread(iop, iocbp->tip->ofd, buf, n, off); 739 io_prep_pwrite(iop, iocbp->tip->ofd, buf, n, off); 770 tip->ofd = -1; 937 close(tip->ofd); [all...] |
/external/blktrace/ |
blktrace.c | 242 * ofn, ofd, ofp, obuf & mmap_info are used for output file (optionally). 264 int ifd, ofd; member in struct:io_info 1443 ret = sendfile(iop->ofd, iop->ifd, NULL, iop->ready); 1460 if (net_send_header(iop->ofd, tp->cpu, dpp->buts_name, iop->ready)) [all...] |