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

12

/illumos-gate/usr/src/cmd/mandoc/
H A Dtag.h21 int ofd; member in struct:tag_files
H A Dtag.c54 int ofd; local
56 ofd = -1;
80 if ((tag_files.ofd = dup(STDOUT_FILENO)) == -1)
89 if ((ofd = mkstemp(tag_files.ofn)) == -1)
93 if (dup2(ofd, STDOUT_FILENO) == -1)
95 close(ofd);
107 if (ofd != -1)
108 close(ofd);
109 if (tag_files.ofd != -1)
110 close(tag_files.ofd);
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nca/
H A Dncab2clf.c451 close_files(int ifd, int ofd) argument
456 if (ofd != STDOUT_FILENO)
457 (void) close(ofd);
686 b2clf(int ifd, int ofd) argument
752 no = write_n_bytes(ofd, obuf, olen);
777 int ofd; local
869 if ((ofd = open(outfile, O_WRONLY|O_CREAT, 0644)) < 0) {
880 (void) directio(ofd, DIRECTIO_ON);
883 ofd = STDOUT_FILENO;
886 if ((b2clf(ifd, ofd) !
[all...]
/illumos-gate/usr/src/cmd/audio/audiorecord/
H A Daudiorecord.c181 int ofd; local
367 ofd = fileno(stdout);
370 ofd = open(Ofile,
372 if (ofd < 0) {
384 if ((fstat(ofd, &st) < 0) || (!S_ISREG(st.st_mode))) {
395 err = audio_read_filehdr(ofd, &File_hdr, &file_type,
451 ((err = (int)lseek(ofd, 0L, SEEK_CUR)) >= 0)) {
461 if ((int)lseek(ofd, st.st_size, SEEK_SET) < 0) {
590 } else if (!isatty(ofd)) {
591 if (audio_write_filehdr(ofd,
[all...]
/illumos-gate/usr/src/cmd/sh/
H A Dprint.c326 int ofd; local
328 if ((ofd = buffd) == -1) {
345 return (ofd);
/illumos-gate/usr/src/lib/libpkg/common/
H A Druncmd.c96 esystem(char *cmd, int ifd, int ofd) argument
143 if (ofd >= 0 && ofd != STDOUT_FILENO) {
144 (void) dup2(ofd, STDOUT_FILENO);
H A Dpkglib.h444 extern int esystem(char *cmd, int ifd, int ofd);
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dsupport.c169 ld_sup_open(Ofl_desc *ofl, const char **opath, const char **ofile, int *ofd, argument
179 int nfd = *ofd;
217 if ((npath != *opath) || (nfd != *ofd) || (nelf != *oelf)) {
219 *opath, npath, *ofd, nfd, *oelf, nelf));
224 *ofd = nfd;
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c2587 start_charshunt(ifd, ofd)
2588 int ifd, ofd;
2607 charshunt(ifd, ofd, record_file);
2638 * (We assume ofd >= ifd which is true the way this gets called. :-).
2641 charshunt(ifd, ofd, record_file)
2642 int ifd, ofd;
2719 if (ofd != ifd) {
2720 flags = fcntl(ofd, F_GETFL);
2722 || fcntl(ofd, F_SETFL, flags | O_NONBLOCK) == -1)
2738 nfds = (ofd > pty_maste
[all...]
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dfsck.c344 int ifd, ofd; local
406 openFS(argv[optind], &ifd, &ofd);
433 writeBackChanges(ofd);
/illumos-gate/usr/src/cmd/filesync/
H A Daction.c1065 { int ifd, ofd, count, ret; local
1140 ofd = -1;
1143 ofd = creat(dst, mode);
1145 if (ofd < 0) {
1171 (void) lseek(ofd, (off_t) count, SEEK_CUR);
1183 ret = write(ofd, (char *) inbuf, count);
1201 (void) lseek(ofd, (off_t)-1, SEEK_CUR);
1202 (void) write(ofd, "", 1);
1209 ftruncate(ofd, (off_t) 0);
1212 close(ofd);
[all...]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dsetup.c261 __m_setupterm(termname, ifd, ofd, err_return)
263 int ifd, ofd;
284 if (isatty(cur_term->_ifd = ofd))
297 (void) restartterm(termname, ofd, &err_code);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Drcp.c1420 int ofd, setimes, targisdir, wrerr; local
1578 /* get acl and set it to ofd */
1600 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
1610 zopen(ofd, zflag && !exists);
1613 (void) fchmod(ofd, mode);
1621 /* get acl and set it to ofd */
1622 if (recvacl(ofd, exists, pflag) == ACL_FAIL) {
1623 (void) close(ofd);
1630 if ((bp = allocbuf(&buffer, ofd, RCP_BUFSIZE)) == 0) {
1631 (void) close(ofd);
[all...]
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dmachcpuvar.h110 label_t *ofd[HIGH_LEVELS]; /* saved pil ofd */ member in struct:machcpu
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/
H A Difdef.c911 int ofd; /* for saving and restoring stderr */ local
933 ofd = dup(2);
948 dup(ofd);
949 close(ofd);
/illumos-gate/usr/src/cmd/mailx/
H A Dcollect.c54 static void cpout(char *str, FILE *ofd);
1329 cpout(char *str, FILE *ofd) argument
1337 putc('\n', ofd);
1341 putc('\t', ofd);
1345 putc('\\', ofd);
1348 putc(*cp, ofd);
1352 putc('\n', ofd);
1353 fflush(ofd);
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dsetup.c296 __m_setupterm(char *termname, int ifd, int ofd, int *err_return) argument
317 if (isatty(cur_term->_ofd = ofd))
338 (void) restartterm(termname, ofd, &err_code);
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dmachcpuvar.h125 label_t *ofd[HIGH_LEVELS]; /* saved pil ofd */ member in struct:machcpu
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/
H A Dlpd-job.c566 int *ofd)
609 if (ofd != NULL)
610 *ofd = fd;
565 lpd_submit_job(service_t *svc, char *metadata, papi_attribute_t ***attributes, int *ofd) argument
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dfiles.c730 const char *nname, int ofd, int nfd, Elf *oelf, Elf *nelf)
744 if (nfd != ofd) {
749 dbg_print(lml, MSG_INTL(MSG_FIL_FDCHANGE), ofd, nfd, str);
729 Dbg_file_modified(Lm_list *lml, const char *obj, const char *oname, const char *nname, int ofd, int nfd, Elf *oelf, Elf *nelf) argument
/illumos-gate/usr/src/cmd/truss/
H A Dmain.c256 int ofd = -1; local
414 if (ofd >= 0)
415 (void) close(ofd);
416 if ((ofd = xcreat(optarg)) < 0) {
547 setoutput(ofd); /* establish truss output */
2019 setoutput(int ofd) argument
2021 if (ofd < 0) {
2024 } else if (ofd != 1) {
2026 (void) fcntl(ofd, F_DUPFD, 1);
2027 (void) close(ofd);
[all...]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dsvc_generic.c229 svc_tli_create_common(const int ofd, const struct netconfig *nconf, argument
238 int fd = ofd;
/illumos-gate/usr/src/cmd/lp/lib/papi/
H A Djob.c306 int ifd, ofd; local
313 if ((ofd = open(to, O_WRONLY)) < 0) {
319 write(ofd, buf, rc);
322 close(ofd);
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c2313 * ofd - output file descriptor.
2320 write_bytes(int ofd, char *buf, size_t maxwrite, data_in_t *data_in_info) argument
2325 if ((cnt = write(ofd, buf, maxwrite)) < (ssize_t)maxwrite) {
2346 * ifd/ofd - i/o file descriptor
2356 rdwr_bytes(int ifd, int ofd, char *buf, off_t bytes, argument
2379 rv = write_bytes(ofd, buf,
2404 * ofd - output file descriptor
2412 write_zeros(int ofd, char *buf, off_t bytes, size_t wrblocksz, argument
2421 rv = write_bytes(ofd, buf, wrblocksz, data_in_info);
2443 calc_maxwrite(int ofd, in argument
2486 data_copy(int ifd, int ofd, int rw_sysattr, off_t bytes, size_t blocksize, data_in_t *data_in_info) argument
2508 data_copy_with_holes(int ifd, int ofd, int rw_sysattr, off_t bytes, size_t blocksize, data_in_t *data_in_info, holes_info_t *holes) argument
[all...]
/illumos-gate/usr/src/cmd/diff/
H A Ddiff.c1914 int ifd, ofd; /* input and output file descriptors */ local
1933 if ((ofd = mkstemp(template)) < 0) {
1940 if (write(ofd, buf, i) != i) {
1946 (void) close(ifd); (void) close(ofd);

Completed in 121 milliseconds

12