/device/samsung/crespo4g/recovery/ |
recovery_updater.c | 62 int ofd = -1; local 87 ofd = open("/dev/modem_ctl", O_RDWR); 89 if (ofd < 0) { 98 err = ioctl(ofd, IOCTL_MODEM_FW_UPDATE, &fw); 106 err = ioctl(ofd, IOCTL_MODEM_CHK_STAT, &st); 118 ioctl(ofd, IOCTL_MODEM_PWROFF, NULL); 127 if (ofd >= 0) 128 close(ofd);
|
/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...] |
/device/moto/wingray/taudio/ |
tplay.c | 20 int ifd, ofd, ofd_c; local 49 ofd = open("/dev/audio0_out", O_RDWR); 50 FAILIF(ofd < 0, "could not open output: %s\n", strerror(errno)); 76 nw = write(ofd, buffer, nr);
|
twav.c | 80 int ifd, ofd; local 127 ofd = open(output, O_WRONLY | O_CREAT, 0777); 128 FAILIF(ofd < 0, "could not open %s: %s\n", output, strerror(errno)); 133 lseek(ofd, sizeof(struct wav_header), SEEK_SET); 142 nw = write(ofd, buffer, nr); 149 lseek(ofd, 0, SEEK_SET); 156 FAILIF(write(ofd, &hdr, sizeof(hdr)) != sizeof(hdr),
|
resample.c | 114 int opt, ifd, ofd; local 189 ofd = open(output, O_WRONLY | O_CREAT | O_TRUNC, 0666); 190 FAILIF(ofd < 0, "Could not open %s: %s\n", output, strerror(errno)); 207 FAILIF(lseek(ofd, sizeof(struct wav_header), SEEK_SET) < 0, 233 nw = write(ofd, buf, nr_out); 241 lseek(ofd, 0, SEEK_SET); 247 FAILIF(write(ofd, &dst_hdr, sizeof(dst_hdr)) != sizeof(dst_hdr), 252 close(ofd);
|
trec.c | 80 int ifd, ifd_c, ofd, opt, cfd; local 161 ofd = open(name, O_WRONLY | O_TRUNC | O_CREAT, 0666); 162 FAILIF(ofd < 0, "could not open %s: %s\n", name, strerror(errno)); 165 FAILIF(lseek(ofd, sizeof(struct wav_header), SEEK_SET) < 0, 180 nw = write(ofd, buffer, nr); 188 lseek(ofd, 0, SEEK_SET); 194 FAILIF(write(ofd, &hdr, sizeof(hdr)) != sizeof(hdr),
|
/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/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); 1060 if (ofd != ifd) { 1061 flags = fcntl(ofd, F_GETFL) [all...] |
/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/openssh/ |
scp.c | 908 int amt, exists, first, ofd; local 1068 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) { 1073 if ((bp = allocbuf(&buffer, ofd, COPY_BUFLEN)) == NULL) { 1074 (void) close(ofd); 1105 if (atomicio(vwrite, ofd, bp->buf, 1119 atomicio(vwrite, ofd, bp->buf, count) != count) { 1124 ftruncate(ofd, size) != 0) { 1131 if (fchmod(ofd, omode)) { 1142 if (fchmod(ofd, omode & ~mask)) { 1151 if (close(ofd) == -1) [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...] |
/external/mksh/src/ |
main.c | 1235 ksh_dup2(int ofd, int nfd, bool errok) 1239 if (((rv = dup2(ofd, nfd)) < 0) && !errok && (errno != EBADF)) 1270 restfd(int fd, int ofd) 1274 if (ofd < 0) 1277 else if (fd != ofd) { 1279 ksh_dup2(ofd, fd, true); 1280 close(ofd); [all...] |