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

/freebsd-10.0-release/lib/libc/db/test/
H A Ddbtest.c79 int ofd = STDOUT_FILENO; /* Standard output fd. */ variable
114 if ((ofd = open(optarg,
170 if (ofd == STDOUT_FILENO && (t = strchr(p, '\n')) != NULL)
191 if (write(ofd, p + 1, len - 1) != len - 1 ||
192 write(ofd, "\n", 1) != 1)
331 (void)close(ofd);
366 (void)write(ofd, data.data, data.size);
367 if (ofd == STDOUT_FILENO)
368 (void)write(ofd, "\n", 1);
375 if (ofd !
[all...]
/freebsd-10.0-release/usr.bin/split/
H A Dsplit.c69 static int ifd = -1, ofd = -1; /* Input/output file descriptors. */ variable
239 if (write(ofd, bfr, dist) != dist)
248 if (write(ofd,
257 if (write(ofd, C, len) != len)
264 if (write(ofd, bfr, len) != len)
311 if (write(ofd, bfr, len) != len)
360 if (ofd == -1) {
367 ofd = fileno(stdout);
/freebsd-10.0-release/sys/dev/ofw/
H A Dofw_disk.c137 phandle_t ofd; local
147 ofd = OF_finddevice("ofwdisk");
148 if (ofd == -1)
152 OF_package_to_path(ofd, path, 128);
153 OF_getprop(ofd, "file", fname, sizeof(fname));
/freebsd-10.0-release/contrib/ipfilter/samples/
H A Dproxy.c142 int onoff, ofd, slen; local
161 ofd = socket(AF_INET, SOCK_DGRAM, 0);
166 (void) connect(ofd, (struct sockaddr *)&usin, sizeof(usin));
168 (void) getsockname(ofd, (struct sockaddr *)&usin, &slen);
169 close(ofd);
172 if ((ofd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
175 if (bind(ofd, (struct sockaddr *)&usin, sizeof(usin)))
178 if (getsockname(ofd, (struct sockaddr *)&usin, &slen))
223 if (connect(ofd, (struct sockaddr *)&usin, sizeof(usin)))
226 relay(in, out, ofd);
[all...]
H A Drelay.c31 int relay(ifd, ofd, rfd)
32 int ifd, ofd, rfd;
42 if (nfd < ofd)
43 nfd = ofd;
55 FD_SET(ofd, &wfds);
74 if (n && FD_ISSET(ofd, &wfds)) {
75 rw = write(ofd, iwt, iwh - iwt);
/freebsd-10.0-release/contrib/tcsh/
H A Ded.refresh.c562 Char *ofd, *ols, *oe, *nfd, *nls, *ne; local
571 ofd = o;
584 while (ofd < o) {
609 if (*ofd == '\0' && *nfd == '\0') {
619 while ((o > ofd) && (n > nfd) && (*--o == *--n))
641 * case 1: insert: scan from nfd to nls looking for *ofd
643 if (*ofd) {
644 for (c = *ofd, n = nfd; n < nls; n++) {
646 for (o = ofd, p = n; p < nls && o < ols && *o == *p; o++, p++)
655 osb = ofd;
[all...]
/freebsd-10.0-release/lib/libedit/
H A Drefresh.c484 char *ofd, *ols, *oe, *nfd, *nls, *ne; local
494 ofd = o;
506 while (ofd < o) {
529 if (*ofd == '\0' && *nfd == '\0') {
536 while ((o > ofd) && (n > nfd) && (*--o == *--n))
550 * case 1: insert: scan from nfd to nls looking for *ofd
552 if (*ofd) {
553 for (c = *ofd, n = nfd; n < nls; n++) {
555 for (o = ofd, p = n;
567 osb = ofd;
[all...]
/freebsd-10.0-release/contrib/openpam/lib/libpam/
H A Dopenpam_ttyconv.c83 prompt_tty(int ifd, int ofd, const char *message, char *response, int echo) argument
97 if (write(ofd, message, strlen(message)) < 0) {
165 write(ofd, " timed out", 10);
206 write(ofd, "\n", 1);
290 int ifd, ofd, ret; local
298 ofd = STDOUT_FILENO;
303 ofd = ifd;
305 ret = prompt_tty(ifd, ofd, message, response, echo);
/freebsd-10.0-release/usr.sbin/lpr/lpd/
H A Dprintjob.c104 static int ofd; /* output filter file descriptor */ variable
317 (void) close(ofd);
359 (void) write(ofd, pp->form_feed,
362 (void) write(ofd, pp->trailer,
365 (void) close(ofd);
649 (void) write(ofd, pp->form_feed, strlen(pp->form_feed));
656 if (write(ofd, buf, n) != n) {
677 fo = ofd;
801 write(ofd, "\031\1", 2);
1456 (void) write(ofd, p
[all...]
/freebsd-10.0-release/usr.bin/ar/
H A Dacpyacc.y62 static int arscp_copy(int ifd, int ofd);
272 int ifd, ofd;
284 if ((ofd = mkstemp(tmpac)) < 0)
296 if (arscp_copy(ifd, ofd)) {
301 close(ofd);
311 AC(archive_write_open_fd(a, ofd));
326 arscp_copy(int ifd, int ofd)
343 w = write(ofd, buf, bytes);
/freebsd-10.0-release/bin/rcp/
H A Drcp.c498 int amt, exists, first, mask, mode, ofd, omode; local
640 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
645 if ((bp = allocbuf(&buffer, ofd, BUFSIZ)) == NULL) {
646 (void)close(ofd);
669 j = write(ofd, bp->buf, count);
680 (j = write(ofd, bp->buf, count)) != (off_t)count) {
684 if (ftruncate(ofd, size)) {
690 if (fchmod(ofd, omode))
695 if (fchmod(ofd, omode & ~mask))
699 (void)close(ofd);
[all...]
/freebsd-10.0-release/crypto/heimdal/appl/rcp/
H A Drcp.c421 int amt, count, exists, first, mask, mode, ofd, omode; local
564 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
569 if ((bp = allocbuf(&buffer, ofd, BUFSIZ)) == NULL) {
570 close(ofd);
590 j = write(ofd, bp->buf, (size_t)count);
601 (j = write(ofd, bp->buf, (size_t)count)) != count) {
605 if (ftruncate(ofd, size)) {
611 if (fchmod(ofd, omode))
616 if (fchmod(ofd, omode & ~mask))
620 close(ofd);
[all...]
/freebsd-10.0-release/sys/mips/cavium/
H A Docteon_machdep.c276 const struct octeon_feature_description *ofd; local
387 for (ofd = octeon_feature_descriptions; ofd->ofd_string != NULL; ofd++)
388 if (octeon_has_feature(ofd->ofd_feature))
389 printf(" %s", ofd->ofd_string);
/freebsd-10.0-release/contrib/libreadline/
H A Ddisplay.c1207 register char *ofd, *ols, *oe, *nfd, *nls, *ne; local
1306 ofd = old + temp;
1316 ofd = old + omax;
1322 for (ofd = old, nfd = new;
1323 (ofd - old < omax) && *ofd &&
1328 ofd = old + old_offset;
1336 for (ofd = old, nfd = new;
1337 (ofd - old < omax) && *ofd
[all...]
/freebsd-10.0-release/crypto/openssh/
H A Dscp.c912 int amt, exists, first, ofd; local
1085 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
1090 if ((bp = allocbuf(&buffer, ofd, COPY_BUFLEN)) == NULL) {
1091 (void) close(ofd);
1122 if (atomicio(vwrite, ofd, bp->buf,
1136 atomicio(vwrite, ofd, bp->buf, count) != count) {
1141 ftruncate(ofd, size) != 0) {
1148 if (fchmod(ofd, omode)) {
1159 if (fchmod(ofd, omode & ~mask)) {
1168 if (close(ofd)
[all...]
/freebsd-10.0-release/bin/pax/
H A Dbuf_subs.c665 rd_wrfile(ARCHD *arcn, int ofd, off_t *left) argument
681 if (fstat(ofd, &sb) == 0) {
704 if ((res = file_write(ofd,bufpt,cnt,&rem,&isem,sz,fnm)) <= 0) {
728 file_flush(ofd, fnm, isem);
/freebsd-10.0-release/sbin/mdmfs/
H A Dmdmfs.c585 * spawned. If 'ofd' is non-NULL, it is set to the standard output of
586 * the program spawned (i.e., you can read from ofd and get the output
590 run(int *ofd, const char *cmdline, ...) argument
642 if (ofd != NULL) {
645 *ofd = pfd[0];
654 if (ofd != NULL)
/freebsd-10.0-release/contrib/ntp/util/
H A Dtickadj.c847 int ofd,
853 if (lseek(ofd, off, L_SET) == -1)
859 if (write(ofd, (char *)&var, sizeof(int)) != sizeof(int))
846 writevar( int ofd, off_t off, int var ) argument
/freebsd-10.0-release/usr.bin/gencat/
H A Dgencat.c135 int ofd, ifd; local
176 if ((ofd = open(catfile, O_WRONLY | O_TRUNC | O_CREAT, 0666)) < 0)
178 MCWriteCat(ofd);
/freebsd-10.0-release/sbin/swapon/
H A Dswapon.c638 run_cmd(int *ofd, const char *cmdline, ...) argument
674 if (ofd != NULL) {
679 *ofd = pfd[0];
686 if (ofd != NULL)
/freebsd-10.0-release/usr.bin/xlint/xlint/
H A Dxlint.c840 int ifd, ofd, i; local
844 if ((ofd = open(dest, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
863 if (write(ofd, buf, (size_t)rlen) == -1) {
871 (void)close(ofd);
/freebsd-10.0-release/usr.sbin/mptable/
H A Dmptable.c830 int ofd; local
833 ofd = open( "/tmp/mpdump", O_CREAT | O_RDWR, 0666 );
836 write( ofd, dumpbuf, 1024 );
837 close( ofd );
/freebsd-10.0-release/usr.bin/gzip/
H A Dgzip.c1353 int fd, ofd, zfd = -1; local
1587 ofd = open(outfile, O_RDWR, 0);
1588 if (ofd == -1) {
1593 if (fstat(ofd, &osb) != 0) {
1596 close(ofd);
1602 close(ofd);
1607 copymodes(ofd, &isb, outfile);
1610 close(ofd);

Completed in 244 milliseconds