Searched refs:ofd (Results 1 - 14 of 14) sorted by relevance

/external/libnl/lib/
H A Dhandlers.c39 static void print_header_content(FILE *ofd, struct nlmsghdr *n) argument
44 fprintf(ofd, "type=%s length=%u flags=<%s> sequence-nr=%u pid=%u",
52 FILE *ofd = arg ? arg : stdout; local
54 fprintf(ofd, "-- Warning: unhandled valid message: ");
55 print_header_content(ofd, nlmsg_hdr(msg));
56 fprintf(ofd, "\n");
63 FILE *ofd = arg ? arg : stderr; local
65 fprintf(ofd, "-- Error: Invalid message: ");
66 print_header_content(ofd, nlmsg_hdr(msg));
67 fprintf(ofd, "\
74 FILE *ofd = arg ? arg : stderr; local
86 FILE *ofd = arg ? arg : stderr; local
98 FILE *ofd = arg ? arg : stderr; local
109 FILE *ofd = arg ? arg : stderr; local
120 FILE *ofd = arg ? arg : stderr; local
130 FILE *ofd = arg ? arg : stderr; local
140 FILE *ofd = arg ? arg : stderr; local
151 FILE *ofd = arg ? arg : stderr; local
[all...]
H A Dmsg.c856 static void prefix_line(FILE *ofd, int prefix) argument
861 fprintf(ofd, " ");
864 static inline void dump_hex(FILE *ofd, char *start, int len, int prefix) argument
870 prefix_line(ofd, prefix);
871 fprintf(ofd, " ");
876 fprintf(ofd, "%02x ", v);
880 fprintf(ofd, "%s\n", ascii);
882 prefix_line(ofd, prefix);
883 fprintf(ofd, " ");
893 fprintf(ofd, " ");
898 print_hdr(FILE *ofd, struct nl_msg *msg) argument
925 dump_attrs(FILE *ofd, struct nlattr *attrs, int attrlen, int prefix) argument
965 nl_msg_dump(struct nl_msg *msg, FILE *ofd) argument
[all...]
/external/e2fsprogs/util/
H A Dcopy_sparse.c93 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...]
/external/bison/lib/
H A Dspawn-pipe.c125 int ofd[2]; local
142 if (pipe2_safer (ofd, O_BINARY | O_CLOEXEC) < 0)
147 * parent -> ofd[1] -> ofd[0] -> child if pipe_stdin
166 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0)
185 /* The child process doesn't inherit ifd[0], ifd[1], ofd[0], ofd[1],
227 close (ofd[0]);
238 close (ofd[1]);
246 fd[1] = ofd[
[all...]
/external/toybox/toys/posix/
H A Duudecode.c29 int ifd = 0, ofd, idx = 0, m = m; local
44 ofd = xcreate(TT.o ? TT.o : line+idx, O_WRONLY|O_CREAT|O_TRUNC,
100 xwrite(ofd, line, out-line);
105 close(ofd);
/external/opencv3/3rdparty/openexr/IlmImf/
H A DImfTiledOutputFile.cpp429 writeTileData (TiledOutputFile::Data *ofd, argument
441 Int64 currentPosition = ofd->currentPosition;
442 ofd->currentPosition = 0;
445 currentPosition = ofd->os->tellp();
447 ofd->tileOffsets (dx, dy, lx, ly) = currentPosition;
450 assert (ofd->os->tellp() == currentPosition);
457 Xdr::write <StreamIO> (*ofd->os, dx);
458 Xdr::write <StreamIO> (*ofd->os, dy);
459 Xdr::write <StreamIO> (*ofd->os, lx);
460 Xdr::write <StreamIO> (*ofd
478 bufferedTileWrite(TiledOutputFile::Data *ofd, int dx, int dy, int lx, int ly, const char pixelData[], int pixelDataSize) argument
578 convertToXdr(TiledOutputFile::Data *ofd, Array<char>& tileBuffer, int numScanLines, int numPixelsPerScanLine) argument
662 TileBufferTask(TaskGroup *group, TiledOutputFile::Data *ofd, int number, int dx, int dy, int lx, int ly) argument
[all...]
H A DImfOutputFile.cpp262 writePixelData (OutputFile::Data *ofd, argument
273 Int64 currentPosition = ofd->currentPosition;
274 ofd->currentPosition = 0;
277 currentPosition = ofd->os->tellp();
279 ofd->lineOffsets[(ofd->currentScanLine - ofd->minY) / ofd->linesInBuffer] =
284 assert (ofd->os->tellp() == currentPosition);
288 Xdr::write <StreamIO> (*ofd
300 writePixelData(OutputFile::Data *ofd, const LineBuffer *lineBuffer) argument
310 convertToXdr(OutputFile::Data *ofd, Array<char> &lineBuffer, int lineBufferMinY, int lineBufferMaxY, int ) argument
424 LineBufferTask(TaskGroup *group, OutputFile::Data *ofd, int number, int scanLineMin, int scanLineMax) argument
[all...]
/external/libedit/src/
H A Drefresh.c504 Char *ofd, *ols, *oe, *nfd, *nls, *ne; local
514 ofd = o;
526 while (ofd < o) {
549 if (*ofd == '\0' && *nfd == '\0') {
556 while ((o > ofd) && (n > nfd) && (*--o == *--n))
570 * case 1: insert: scan from nfd to nls looking for *ofd
572 if (*ofd) {
573 for (c = *ofd, n = nfd; n < nls; n++) {
575 for (o = ofd, p = n;
587 osb = ofd;
[all...]
/external/ppp/pppd/
H A Dtty.c926 start_charshunt(ifd, ofd)
927 int ifd, ofd;
931 cpid = safe_fork(ifd, ofd, (log_to_fd >= 0? log_to_fd: 2));
975 * (We assume ofd >= ifd which is true the way this gets called. :-).
978 charshunt(ifd, ofd, record_file)
979 int ifd, ofd;
1041 if (ifd >= FD_SETSIZE || ofd >= FD_SETSIZE || pty_master >= FD_SETSIZE)
1043 ifd, ofd, pty_master);
1063 if (ofd != ifd) {
1064 flags = fcntl(ofd, F_GETF
[all...]
/external/blktrace/btreplay/
H A Dbtreplay.c100 * @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);
1331 tip->ofd = open(path, O_RDWR | O_DIRECT | oflags);
1332 if (tip->ofd < 0) {
/external/blktrace/
H A Dblktrace.c242 * 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))
1530 iop->ofd = -1;
1548 iop->ofd = fileno(iop->ofp);
1584 else if (iop->ofd >= 0) {
1587 net_send_close(iop->ofd, dpp->buts_name, dpp->drops);
1588 net_close_connection(&iop->ofd);
1615 iop->ofd
[all...]
/external/mksh/src/
H A Dmain.c1391 ksh_dup2(int ofd, int nfd, bool errok) argument
1395 if (((rv = dup2(ofd, nfd)) < 0) && !errok && (errno != EBADF))
1426 restfd(int fd, int ofd) argument
1430 if (ofd < 0)
1433 else if (fd != ofd) {
1435 ksh_dup2(ofd, fd, true);
1436 close(ofd);
/external/iproute2/tc/
H A Dtc_bpf.c797 int ret, cfd, ofd, ffd; local
817 ofd = accept(cfd, NULL, 0);
818 if (ofd < 0) {
821 ret = ofd;
840 size = sendfile(ofd, ffd, NULL, stbuff.st_size);
848 size = read(ofd, out, len);
859 close(ofd);
/external/bison/
H A Dconfigure18479 int ofd[2];
18493 if (pipe (ofd) < 0 || (ofd[1] = fd_safer (ofd[1])) < 0)
18509 (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0
18510 || (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) != 0
18511 || (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) != 0
18535 close (ofd[0]);
18536 close (ofd[1]);

Completed in 393 milliseconds