/external/libnl/lib/ |
D | handlers.c | 34 static void print_header_content(FILE *ofd, struct nlmsghdr *n) in print_header_content() argument 39 fprintf(ofd, "type=%s length=%u flags=<%s> sequence-nr=%u pid=%u", in print_header_content() 47 FILE *ofd = arg ? arg : stdout; in nl_valid_handler_verbose() local 49 fprintf(ofd, "-- Warning: unhandled valid message: "); in nl_valid_handler_verbose() 50 print_header_content(ofd, nlmsg_hdr(msg)); in nl_valid_handler_verbose() 51 fprintf(ofd, "\n"); in nl_valid_handler_verbose() 58 FILE *ofd = arg ? arg : stderr; in nl_invalid_handler_verbose() local 60 fprintf(ofd, "-- Error: Invalid message: "); in nl_invalid_handler_verbose() 61 print_header_content(ofd, nlmsg_hdr(msg)); in nl_invalid_handler_verbose() 62 fprintf(ofd, "\n"); in nl_invalid_handler_verbose() [all …]
|
D | msg.c | 755 static void prefix_line(FILE *ofd, int prefix) in prefix_line() argument 760 fprintf(ofd, " "); in prefix_line() 763 static inline void dump_hex(FILE *ofd, char *start, int len, int prefix) in dump_hex() argument 769 prefix_line(ofd, prefix); in dump_hex() 770 fprintf(ofd, " "); in dump_hex() 775 fprintf(ofd, "%02x ", v); in dump_hex() 779 fprintf(ofd, "%s\n", ascii); in dump_hex() 781 prefix_line(ofd, prefix); in dump_hex() 782 fprintf(ofd, " "); in dump_hex() 791 fprintf(ofd, " "); in dump_hex() [all …]
|
/external/u-boot/board/samsung/smdkv310/tools/ |
D | mksmdkv310spl.c | 36 int ifd, ofd; in main() local 51 ofd = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, FILE_PERM); in main() 52 if (ofd < 0) { in main() 71 if (ofd) in main() 72 close(ofd); in main() 82 if (write(ofd, buffer, BUFSIZE) != BUFSIZE) { in main() 88 if (ofd) in main() 89 close(ofd); in main() 96 if (ofd) in main() 97 close(ofd); in main()
|
/external/u-boot/board/samsung/origen/tools/ |
D | mkorigenspl.c | 38 int ifd, ofd; in main() local 53 ofd = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, FILE_PERM); in main() 54 if (ofd < 0) { in main() 76 if (ofd) in main() 77 close(ofd); in main() 91 if (write(ofd, buffer, BUFSIZE) != BUFSIZE) { in main() 97 if (ofd) in main() 98 close(ofd); in main() 105 if (ofd) in main() 106 close(ofd); in main()
|
/external/u-boot/tools/ |
D | mkexynosspl.c | 39 static void write_to_file(int ofd, void *buffer, int size) in write_to_file() argument 41 if (write(ofd, buffer, size) == size) in write_to_file() 78 int i, ifd, ofd; in main() local 111 ofd = open(argv[of_index], O_WRONLY | O_CREAT | O_TRUNC, FILE_PERM); in main() 112 if (ofd < 0) { in main() 172 write_to_file(ofd, &vsh, sizeof(vsh)); in main() 175 write_to_file(ofd, buffer, count); in main() 179 write_to_file(ofd, &checksum, sizeof(checksum)); in main() 182 close(ofd); in main()
|
/external/e2fsprogs/util/ |
D | copy_sparse.c | 93 long lb, i, fd, ofd, bs, block, numblocks; in copy_sparse_file() local 135 ofd = open(dest, O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0777); in copy_sparse_file() 136 if (ofd < 0) { in copy_sparse_file() 160 if (lseek64(ofd, should_be, SEEK_SET) == (off_t) -1) { in copy_sparse_file() 177 lseek(ofd, bs, SEEK_CUR); in copy_sparse_file() 182 got2 = write(ofd, buf, got); in copy_sparse_file() 190 if (fstat64(ofd, &fileinfo) < 0) { in copy_sparse_file() 195 lseek64(ofd, offset-1, SEEK_CUR); in copy_sparse_file() 197 write(ofd, buf, 1); in copy_sparse_file() 200 close(ofd); in copy_sparse_file()
|
D | subst.c | 327 int fd, ofd = -1; in main() local 378 ofd = open(newfn, O_CREAT|O_TRUNC|O_RDWR, 0644); in main() 379 if (ofd < 0) { in main() 383 out = fdopen(ofd, "w+"); in main() 437 if (ofd >= 0) in main() 438 (void) fchmod(ofd, 0444); in main() 445 if (ofd >= 0) in main() 446 (void) fchmod(ofd, 0444); in main()
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
D | dup202.c | 90 int i, ofd; in main() local 104 if ((ofd = creat(testfile, TC[i].mode)) == -1) in main() 108 TEST(dup2(ofd, *TC[i].nfd)); in main() 117 SAFE_FSTAT(cleanup, ofd, &oldbuf); in main() 132 if (close(ofd) == -1) in main()
|
D | dup201.c | 83 int *ofd; member 122 TEST(dup2(*TC[i].ofd, *TC[i].nfd)); in main()
|
/external/toybox/toys/posix/ |
D | uudecode.c | 29 int ifd = 0, ofd, idx = 0, m = m; local 44 if (TT.o && !strcmp(TT.o, "-")) ofd = 1; 45 else ofd = xcreate(TT.o ? TT.o : line+idx, O_WRONLY|O_CREAT|O_TRUNC, 101 xwrite(ofd, line, out-line); 106 close(ofd);
|
/external/ppp/pppd/ |
D | tty.c | 926 start_charshunt(ifd, ofd) in start_charshunt() argument 927 int ifd, ofd; in start_charshunt() 931 cpid = safe_fork(ifd, ofd, (log_to_fd >= 0? log_to_fd: 2)); 978 charshunt(ifd, ofd, record_file) in charshunt() argument 979 int ifd, ofd; in charshunt() 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_GETFL); 1066 || fcntl(ofd, F_SETFL, flags | O_NONBLOCK) == -1) [all …]
|
/external/openssh/ |
D | scp.c | 929 int amt, exists, first, ofd; local 1105 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) { 1110 if ((bp = allocbuf(&buffer, ofd, COPY_BUFLEN)) == NULL) { 1111 (void) close(ofd); 1142 if (atomicio(vwrite, ofd, bp->buf, 1154 atomicio(vwrite, ofd, bp->buf, count) != count) { 1159 ftruncate(ofd, size) != 0) { 1166 if (fchmod(ofd, omode)) { 1177 if (fchmod(ofd, omode & ~mask)) { 1186 if (close(ofd) == -1) {
|
/external/blktrace/ |
D | blktrace.c | 264 int ifd, ofd; member 1488 ret = sendfile(iop->ofd, iop->ifd, NULL, iop->ready); in net_sendfile() 1505 if (net_send_header(iop->ofd, tp->cpu, dpp->buts_name, iop->ready)) in net_sendfile_data() 1572 iop->ofd = -1; in iop_open() 1603 iop->ofd = fileno(iop->ofp); in iop_open() 1639 else if (iop->ofd >= 0) { in close_ios() 1642 net_send_close(iop->ofd, dpp->buts_name, dpp->drops); in close_ios() 1643 net_close_connection(&iop->ofd); in close_ios() 1670 iop->ofd = -1; in open_ios() 1689 iop->ofd = net_setup_client(); in open_ios() [all …]
|
/external/blktrace/btreplay/ |
D | btreplay.c | 111 int cpu, ifd, ofd, iterations; member 754 io_prep_pread(iop, iocbp->tip->ofd, buf, n, off); in iocb_setup() 757 io_prep_pwrite(iop, iocbp->tip->ofd, buf, n, off); in iocb_setup() 788 tip->ofd = -1; in tip_init() 955 close(tip->ofd); in rem_input_file() 1358 tip->ofd = open(path, O_RDWR | O_DIRECT | oflags); in replay_sub() 1359 if (tip->ofd < 0) { in replay_sub()
|
/external/mksh/src/ |
D | main.c | 1460 ksh_dup2(int ofd, int nfd, bool errok) in ksh_dup2() argument 1464 if (((rv = dup2(ofd, nfd)) < 0) && !errok && (errno != EBADF)) in ksh_dup2() 1495 restfd(int fd, int ofd) in restfd() argument 1499 if (ofd < 0) in restfd() 1502 else if (fd != ofd) { in restfd() 1504 ksh_dup2(ofd, fd, true); in restfd() 1505 close(ofd); in restfd()
|
/external/u-boot/arch/arm/dts/ |
D | stih410-clock.dtsi | 105 clock-output-names = "clk-s-a0-pll-ofd-0"; 106 clock-critical = <0>; /* clk-s-a0-pll-ofd-0 */
|
D | stih407-clock.dtsi | 103 clock-output-names = "clk-s-a0-pll-ofd-0";
|
/external/iproute2/lib/ |
D | bpf.c | 1211 int ret, cfd, ofd, ffd; in bpf_obj_hash() local 1231 ofd = accept(cfd, NULL, 0); in bpf_obj_hash() 1232 if (ofd < 0) { in bpf_obj_hash() 1235 ret = ofd; in bpf_obj_hash() 1254 size = sendfile(ofd, ffd, NULL, stbuff.st_size); in bpf_obj_hash() 1262 size = read(ofd, out, len); in bpf_obj_hash() 1273 close(ofd); in bpf_obj_hash()
|
/external/libnl/ |
D | make.log | 107 dump_hex(ofd, nla_data(nla) + alen, 254 dump_hex(ofd, nla_data(nla) + alen,
|