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

12

/macosx-10.10/tcl-105/tcl_ext/sdx/sdx/lib/app-sdx/
H A Dmksplit.tcl57 set ofd [open $fn.head w]
58 fconfigure $ofd -translation binary
59 fcopy $fd $ofd -size $start
60 close $ofd
63 set ofd [open $fn.tail w]
64 fconfigure $ofd -translation binary
65 fcopy $fd $ofd -size $remainder
66 close $ofd
H A Dtgz2kit.tcl31 set ofd [open $outfile w]
32 fconfigure $ofd -translation binary
33 puts $ofd [format {#!/bin/sh
40 close $ofd
66 set ofd [open $name w]
67 fconfigure $ofd -translation binary
68 puts -nonewline $ofd $data
69 close $ofd
H A Dmkpack.tcl59 set ofd [open $ouf w]
60 fconfigure $ofd -translation binary
61 fcopy $fd $ofd -size $start
62 mk::file save db $ofd
63 close $ofd
/macosx-10.10/bash-94.1.2/bash-3.2/lib/sh/
H A Dzcatfd.c41 zcatfd (fd, ofd, fn)
42 int fd, ofd;
60 else if (zwrite (ofd, lbuf, nr) < 0)
/macosx-10.10/bash-94.1.2/bash-3.2/examples/loadables/
H A Dprint.c56 int c, r, nflag, raw, ofd, sflag; local
62 ofd = 1;
92 ofd = lfd;
112 ofp = (ofd == 1) ? stdout : fdopen (dup (ofd), "w");
144 if (ofd != 1)
/macosx-10.10/adv_cmds-158/gencat/
H A Dgencat.c73 int ofd = -1, ifd, i; local
108 if ((ofd = open(catfile, O_WRONLY|O_TRUNC|O_CREAT, 0666)) < 0)
110 } else if ((ofd = open(catfile, O_RDONLY)) < 0) {
111 if ((ofd = open(catfile, O_WRONLY|O_CREAT, 0666)) < 0)
114 MCReadCat(ofd);
115 close(ofd);
116 if ((ofd = open(catfile, O_WRONLY|O_TRUNC)) < 0)
129 MCWriteCat(ofd);
/macosx-10.10/man-16/man/gencat/
H A Dgencat.c97 int ofd, ifd, i; local
139 if ((ofd = open(catfile, O_WRONLY|O_TRUNC|O_CREAT, 0666)) < 0) {
143 } else if ((ofd = open(catfile, O_RDONLY)) < 0) {
144 if ((ofd = open(catfile, O_WRONLY|O_CREAT, 0666)) < 0) {
149 MCReadCat(ofd);
150 close(ofd);
151 if ((ofd = open(catfile, O_WRONLY|O_TRUNC)) < 0) {
168 MCWriteCat(ofd);
/macosx-10.10/sudo-73/src/
H A Dsudo_edit.c75 int rc, i, j, ac, ofd, tfd, nargc, rval, nfiles, tmplen; local
117 if ((ofd = open(files[i], O_RDONLY, 0644)) != -1 || errno == ENOENT) {
118 if (ofd == -1) {
123 rc = fstat(ofd, &sb);
130 if (rc || (ofd != -1 && !S_ISREG(sb.st_mode))) {
135 if (ofd != -1)
136 close(ofd);
159 if (ofd != -1) {
160 while ((nread = read(ofd, buf, sizeof(buf))) != 0) {
169 close(ofd);
[all...]
/macosx-10.10/text_cmds-88/split/
H A Dsplit.c69 int ifd = -1, ofd = -1; /* Input/output file descriptors. */ variable
210 if (write(ofd, bfr, dist) != dist)
216 if (write(ofd,
222 if (write(ofd, C, len) != len)
229 if (write(ofd, bfr, len) != len)
276 if (write(ofd, bfr, len) != len)
299 if (ofd == -1) {
308 ofd = fileno(stdout);
/macosx-10.10/Heimdal-398.1.2/lib/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...]
/macosx-10.10/libedit-40/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...]
/macosx-10.10/lukemftp-14/tnftp/libedit/
H A Drefresh.c445 char *ofd, *ols, *oe, *nfd, *nls, *ne; local
454 ofd = o;
466 while (ofd < o) {
489 if (*ofd == '\0' && *nfd == '\0') {
496 while ((o > ofd) && (n > nfd) && (*--o == *--n))
510 * case 1: insert: scan from nfd to nls looking for *ofd
512 if (*ofd) {
513 for (c = *ofd, n = nfd; n < nls; n++) {
515 for (o = ofd, p = n;
527 osb = ofd;
[all...]
/macosx-10.10/tcsh-65/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...]
/macosx-10.10/tcl-105/tk84/tk/macosx/
H A DtkMacOSXDialog.c85 OpenFileData *ofd, AEDesc *initialDescPtr,
259 OpenFileData ofd;
284 TkInitFileFilters(&ofd.fl);
285 ofd.curType = 0;
286 ofd.initialType = -1;
287 ofd.popupItem = OPEN_POPUP_ITEM;
288 ofd.usePopup = 1;
312 if (TkGetFileFilters(interp, &ofd.fl, types, 0) != TCL_OK) {
376 result = NavServicesGetFile(interp, &ofd, initialPtr, NULL, &selectDesc,
381 FileFilter *filterPtr = ofd
257 OpenFileData ofd; local
437 OpenFileData ofd; local
570 OpenFileData ofd; local
1043 OpenFileData *ofd = data->ofdPtr; local
[all...]
/macosx-10.10/ppp-786.1.1/Helpers/pppd/
H A Dtty.c1169 start_charshunt(ifd, ofd)
1170 int ifd, ofd;
1191 charshunt(ifd, ofd, record_file);
1223 * (We assume ofd >= ifd which is true the way this gets called. :-).
1226 charshunt(ifd, ofd, record_file)
1227 int ifd, ofd;
1289 if (ifd >= FD_SETSIZE || ofd >= FD_SETSIZE || pty_master >= FD_SETSIZE)
1291 ifd, ofd, pty_master);
1311 if (ofd != ifd) {
1312 flags = fcntl(ofd, F_GETF
[all...]
/macosx-10.10/Heimdal-398.1.2/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...]
/macosx-10.10/configd-699.1.5/configd.tproj/
H A Dconfigd.m180 int ofd;
186 ofd = open("/var/log/configd.log", O_WRONLY|O_APPEND, 0);
187 if (ofd != -1) {
191 fd = ofd;
/macosx-10.10/llvmCore-3425.0.34/lib/Support/Unix/
H A DPathV2.inc514 int ofd = ::open(name.begin(), oflags);
515 if (ofd == -1) {
520 ec = init(ofd, offset);
656 int ofd = ::open(name.begin(), oflags);
657 if ( ofd == -1 )
659 AutoFD fd(ofd);
/macosx-10.10/bash-94.1.2/bash-3.2/lib/readline/
H A Ddisplay.c1216 register char *ofd, *ols, *oe, *nfd, *nls, *ne; local
1315 ofd = old + temp;
1325 ofd = old + omax;
1331 for (ofd = old, nfd = new;
1332 (ofd - old < omax) && *ofd &&
1337 ofd = old + old_offset;
1345 for (ofd = old, nfd = new;
1346 (ofd - old < omax) && *ofd
[all...]
/macosx-10.10/file_cmds-242/pax/
H A Dbuf_subs.c671 rd_wrfile(ARCHD *arcn, int ofd, off_t *left) argument
687 if (ofd < 0)
689 else if (fstat(ofd, &sb) == 0) {
712 if ((res = file_write(ofd,bufpt,cnt,&rem,&isem,sz,fnm)) <= 0) {
736 file_flush(ofd, fnm, isem);
/macosx-10.10/remote_cmds-47/rcp.tproj/
H A Drcp.c597 int amt, exists, first, mask, mode, ofd, omode; local
739 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
744 if ((bp = allocbuf(&buffer, ofd, BUFSIZ)) == NULL) {
745 (void)close(ofd);
768 j = write(ofd, bp->buf, count);
779 (j = write(ofd, bp->buf, count)) != (off_t)count) {
783 if (ftruncate(ofd, size)) {
789 if (fchmod(ofd, omode))
794 if (fchmod(ofd, omode & ~mask))
798 (void)close(ofd);
[all...]
/macosx-10.10/OpenSSH-189/openssh/
H A Dscp.c988 int amt, exists, first, ofd; local
1178 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
1194 (void) fcntl(ofd, F_PREALLOCATE, &fst);
1198 if ((bp = allocbuf(&buffer, ofd, COPY_BUFLEN)) == NULL) {
1199 (void) close(ofd);
1230 if (atomicio(vwrite, ofd, bp->buf,
1244 atomicio(vwrite, ofd, bp->buf, count) != count) {
1249 ftruncate(ofd, size) != 0) {
1256 if (fchmod(ofd, omode)) {
1267 if (fchmod(ofd, omod
[all...]
/macosx-10.10/rsync-45/rsync/
H A Dutil.c268 int ofd; local
283 ofd = do_open(dest, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL, mode);
284 if (ofd == -1) {
291 if (full_write(ofd, buf, len) < 0) {
294 close(ofd);
302 close(ofd);
311 if (close(ofd) < 0) {
/macosx-10.10/ntp-92/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
/macosx-10.10/file_cmds-242/gzip/
H A Dgzip.c1411 int fd, ofd, zfd = -1; local
1645 ofd = open(outfile, O_RDWR, 0);
1646 if (ofd == -1) {
1651 if (fstat(ofd, &osb) != 0) {
1654 close(ofd);
1660 close(ofd);
1665 copymodes(ofd, &isb, outfile);
1668 close(ofd);

Completed in 208 milliseconds

12