HomeSort by relevance Sort by last modified time
    Searched refs:ofd (Results 1 - 16 of 16) sorted by null

  /external/libnl/lib/
handlers.c 34 static void print_header_content(FILE *ofd, struct nlmsghdr *n)
39 fprintf(ofd, "type=%s length=%u flags=<%s> sequence-nr=%u pid=%u",
47 FILE *ofd = arg ? arg : stdout; local
49 fprintf(ofd, "-- Warning: unhandled valid message: ");
50 print_header_content(ofd, nlmsg_hdr(msg));
51 fprintf(ofd, "\n");
58 FILE *ofd = arg ? arg : stderr; local
60 fprintf(ofd, "-- Error: Invalid message: ");
61 print_header_content(ofd, nlmsg_hdr(msg));
62 fprintf(ofd, "\n")
69 FILE *ofd = arg ? arg : stderr; local
81 FILE *ofd = arg ? arg : stderr; local
94 FILE *ofd = arg ? arg : stderr; local
105 FILE *ofd = arg ? arg : stderr; local
116 FILE *ofd = arg ? arg : stderr; local
126 FILE *ofd = arg ? arg : stderr; local
136 FILE *ofd = arg ? arg : stderr; local
147 FILE *ofd = arg ? arg : stderr; local
    [all...]
msg.c 755 static void prefix_line(FILE *ofd, int prefix)
760 fprintf(ofd, " ");
763 static inline void dump_hex(FILE *ofd, char *start, int len, int prefix)
769 prefix_line(ofd, prefix);
770 fprintf(ofd, " ");
775 fprintf(ofd, "%02x ", v);
779 fprintf(ofd, "%s\n", ascii);
781 prefix_line(ofd, prefix);
782 fprintf(ofd, " ");
791 fprintf(ofd, " ");
    [all...]
  /external/u-boot/board/samsung/origen/tools/
mkorigenspl.c 38 int ifd, ofd; local
53 ofd = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, FILE_PERM);
54 if (ofd < 0) {
76 if (ofd)
77 close(ofd);
91 if (write(ofd, buffer, BUFSIZE) != BUFSIZE) {
97 if (ofd)
98 close(ofd);
105 if (ofd)
106 close(ofd);
    [all...]
  /external/u-boot/board/samsung/smdkv310/tools/
mksmdkv310spl.c 36 int ifd, ofd; local
51 ofd = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, FILE_PERM);
52 if (ofd < 0) {
71 if (ofd)
72 close(ofd);
82 if (write(ofd, buffer, BUFSIZE) != BUFSIZE) {
88 if (ofd)
89 close(ofd);
96 if (ofd)
97 close(ofd);
    [all...]
  /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...]
subst.c 327 int fd, ofd = -1; local
378 ofd = open(newfn, O_CREAT|O_TRUNC|O_RDWR, 0644);
379 if (ofd < 0) {
383 out = fdopen(ofd, "w+");
437 if (ofd >= 0)
438 (void) fchmod(ofd, 0444);
445 if (ofd >= 0)
446 (void) fchmod(ofd, 0444);
  /external/ltp/testcases/kernel/syscalls/dup2/
dup202.c 90 int i, ofd; local
104 if ((ofd = creat(testfile, TC[i].mode)) == -1)
108 TEST(dup2(ofd, *TC[i].nfd));
117 SAFE_FSTAT(cleanup, ofd, &oldbuf);
132 if (close(ofd) == -1)
dup201.c 83 int *ofd; member in struct:test_case_t
122 TEST(dup2(*TC[i].ofd, *TC[i].nfd));
  /external/toybox/toys/posix/
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/u-boot/tools/
mkexynosspl.c 39 static void write_to_file(int ofd, void *buffer, int size)
41 if (write(ofd, buffer, size) == size)
78 int i, ifd, ofd; local
111 ofd = open(argv[of_index], O_WRONLY | O_CREAT | O_TRUNC, FILE_PERM);
112 if (ofd < 0) {
172 write_to_file(ofd, &vsh, sizeof(vsh));
175 write_to_file(ofd, buffer, count);
179 write_to_file(ofd, &checksum, sizeof(checksum));
182 close(ofd);
  /external/ppp/pppd/
tty.c 926 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_GETFL)
    [all...]
  /external/openssh/
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)
    [all...]
  /external/blktrace/btreplay/
btreplay.c 98 * @ofd: Output file descriptor
111 int cpu, ifd, ofd, iterations; member in struct:thr_info
754 io_prep_pread(iop, iocbp->tip->ofd, buf, n, off);
757 io_prep_pwrite(iop, iocbp->tip->ofd, buf, n, off);
788 tip->ofd = -1;
955 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
1488 ret = sendfile(iop->ofd, iop->ifd, NULL, iop->ready);
    [all...]
  /external/mksh/src/
main.c     [all...]
  /external/iproute2/lib/
bpf.c 1211 int ret, cfd, ofd, ffd; local
1231 ofd = accept(cfd, NULL, 0);
1232 if (ofd < 0) {
1235 ret = ofd;
1254 size = sendfile(ofd, ffd, NULL, stbuff.st_size);
1262 size = read(ofd, out, len);
1273 close(ofd);
    [all...]

Completed in 305 milliseconds