Home | History | Annotate | Download | only in dumpstate

Lines Matching refs:out_fd

44 static void base64_output3(int out_fd, const unsigned char *src, int len)
46 dprintf(out_fd, "%c", base64[src[0] >> 2]);
47 dprintf(out_fd, "%c", base64[((src[0] & 0x03) << 4) | (src[1] >> 4)]);
49 dprintf(out_fd, "==");
52 dprintf(out_fd, "%c", base64[((src[1] & 0x0F) << 2) | (src[2] >> 6)]);
54 dprintf(out_fd, "=");
57 dprintf(out_fd, "%c", base64[src[2] & 0x3F]);
60 static void fugu_dump_base64(int out_fd, const char *path)
63 dprintf(out_fd, "------ (%s) ------\n", path);
66 dprintf(out_fd, "*** %s: %s\n\n", path, strerror(errno));
82 base64_output3(out_fd, &buffer[ofs], 3);
87 dprintf(out_fd, "\n");
98 dprintf(out_fd, "\n------ end ------\n");
107 base64_output3(out_fd, buffer, left);
109 dprintf(out_fd, "\n------ end ------\n");