/titanic_44/usr/src/cmd/arcwatch/ |
H A D | arcwatch.c | 178 int ofd; member 208 if (ta->ofd != -1) { in process_trace() 211 ret = write(ta->ofd, ta->buf, ta->ptr); in process_trace() 265 int ofd = -1; in run_dtrace() local 269 ta.ofd = -1; in run_dtrace() 274 ofd = open(out_fn, O_CREAT | O_TRUNC | O_WRONLY, 0644); in run_dtrace() 275 if (ofd == -1) { in run_dtrace() 283 err = write(ofd, &arh, sizeof(arh)); in run_dtrace() 289 ta.ofd = ofd; in run_dtrace() 352 err = write(ta.ofd, ta.buf, ta.ptr); in run_dtrace() [all …]
|
/titanic_44/usr/src/cmd/audio/audiorecord/ |
H A D | audiorecord.c | 181 int ofd; in main() local 367 ofd = fileno(stdout); in main() 370 ofd = open(Ofile, in main() 372 if (ofd < 0) { in main() 384 if ((fstat(ofd, &st) < 0) || (!S_ISREG(st.st_mode))) { in main() 395 err = audio_read_filehdr(ofd, &File_hdr, &file_type, in main() 451 ((err = (int)lseek(ofd, 0L, SEEK_CUR)) >= 0)) { in main() 461 if ((int)lseek(ofd, st.st_size, SEEK_SET) < 0) { in main() 590 } else if (!isatty(ofd)) { in main() 591 if (audio_write_filehdr(ofd, &Dev_hdr, File_type, Info, in main() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/nca/ |
H A D | ncab2clf.c | 451 close_files(int ifd, int ofd) in close_files() argument 456 if (ofd != STDOUT_FILENO) in close_files() 457 (void) close(ofd); in close_files() 686 b2clf(int ifd, int ofd) in b2clf() argument 752 no = write_n_bytes(ofd, obuf, olen); in b2clf() 777 int ofd; in main() local 869 if ((ofd = open(outfile, O_WRONLY|O_CREAT, 0644)) < 0) { in main() 880 (void) directio(ofd, DIRECTIO_ON); in main() 883 ofd = STDOUT_FILENO; in main() 886 if ((b2clf(ifd, ofd) != 0)) { in main() [all …]
|
/titanic_44/usr/src/cmd/sgs/libld/common/ |
H A D | support.c | 169 ld_sup_open(Ofl_desc *ofl, const char **opath, const char **ofile, int *ofd, in ld_sup_open() argument 179 int nfd = *ofd; in ld_sup_open() 217 if ((npath != *opath) || (nfd != *ofd) || (nelf != *oelf)) { in ld_sup_open() 219 *opath, npath, *ofd, nfd, *oelf, nelf)); in ld_sup_open() 224 *ofd = nfd; in ld_sup_open()
|
/titanic_44/usr/src/lib/libpkg/common/ |
H A D | runcmd.c | 96 esystem(char *cmd, int ifd, int ofd) in esystem() argument 143 if (ofd >= 0 && ofd != STDOUT_FILENO) { in esystem() 144 (void) dup2(ofd, STDOUT_FILENO); in esystem()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | main.c | 2587 start_charshunt(ifd, ofd) in start_charshunt() argument 2588 int ifd, ofd; in start_charshunt() 2607 charshunt(ifd, ofd, record_file); 2641 charshunt(ifd, ofd, record_file) in charshunt() argument 2642 int ifd, ofd; in charshunt() 2719 if (ofd != ifd) { 2720 flags = fcntl(ofd, F_GETFL); 2722 || fcntl(ofd, F_SETFL, flags | O_NONBLOCK) == -1) 2738 nfds = (ofd > pty_master? ofd: pty_master) + 1; 2749 while (nibuf != 0 || nobuf != 0 || ofd >= 0 || pty_master >= 0) { [all …]
|
/titanic_44/usr/src/cmd/fs.d/cachefs/cfsd/ |
H A D | cfsd_main.c | 112 int ofd = -1; in main() local 180 ofd = db_getfd(); in main() 261 (void) fdwalk(void_close, &ofd); in main() 334 (void) fdwalk(void_close, &ofd); in main()
|
/titanic_44/usr/src/cmd/filesync/ |
H A D | action.c | 1065 { int ifd, ofd, count, ret; in copy() local 1140 ofd = -1; in copy() 1143 ofd = creat(dst, mode); in copy() 1145 if (ofd < 0) { in copy() 1171 (void) lseek(ofd, (off_t) count, SEEK_CUR); in copy() 1183 ret = write(ofd, (char *) inbuf, count); in copy() 1201 (void) lseek(ofd, (off_t)-1, SEEK_CUR); in copy() 1202 (void) write(ofd, "", 1); in copy() 1209 ftruncate(ofd, (off_t) 0); in copy() 1212 close(ofd); in copy()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rcp.c | 1420 int ofd, setimes, targisdir, wrerr; in sink() local 1600 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) { in sink() 1610 zopen(ofd, zflag && !exists); in sink() 1613 (void) fchmod(ofd, mode); in sink() 1622 if (recvacl(ofd, exists, pflag) == ACL_FAIL) { in sink() 1623 (void) close(ofd); in sink() 1630 if ((bp = allocbuf(&buffer, ofd, RCP_BUFSIZE)) == 0) { in sink() 1631 (void) close(ofd); in sink() 1658 size = lseek(ofd, 0, SEEK_CUR); in sink() 1659 if ((ftruncate(ofd, size) == -1) && in sink() [all …]
|
/titanic_44/usr/src/cmd/sh/ |
H A D | print.c | 326 int ofd; in setb() local 328 if ((ofd = buffd) == -1) { in setb() 345 return (ofd); in setb()
|
/titanic_44/usr/src/cmd/fs.d/pcfs/fsck/ |
H A D | fsck.c | 344 int ifd, ofd; in main() local 406 openFS(argv[optind], &ifd, &ofd); in main() 433 writeBackChanges(ofd); in main()
|
/titanic_44/usr/src/cmd/ssh/scp/ |
H A D | scp.c | 768 int amt, count, exists, first, mask, mode, ofd, omode; local 928 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) { 933 if ((bp = allocbuf(&buffer, ofd, 4096)) == NULL) { 934 (void) close(ofd); 966 j = atomicio(write, ofd, bp->buf, 976 if (ftruncate(ofd, size)) { 983 if (fchmod(ofd, omode)) { 994 if (fchmod(ofd, omode & ~mask)) { 1003 if (close(ofd) == -1) {
|
/titanic_44/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | setup.c | 261 __m_setupterm(termname, ifd, ofd, err_return) in __m_setupterm() argument 263 int ifd, ofd; 284 if (isatty(cur_term->_ifd = ofd)) 297 (void) restartterm(termname, ofd, &err_code);
|
/titanic_44/usr/src/cmd/lp/filter/postscript/postio/ |
H A D | ifdef.c | 911 int ofd; /* for saving and restoring stderr */ in dkhost_connect() local 933 ofd = dup(2); in dkhost_connect() 948 dup(ofd); in dkhost_connect() 949 close(ofd); in dkhost_connect()
|
/titanic_44/usr/src/cmd/mailx/ |
H A D | collect.c | 54 static void cpout(char *str, FILE *ofd); 1329 cpout(char *str, FILE *ofd) in cpout() argument 1337 putc('\n', ofd); in cpout() 1341 putc('\t', ofd); in cpout() 1345 putc('\\', ofd); in cpout() 1348 putc(*cp, ofd); in cpout() 1352 putc('\n', ofd); in cpout() 1353 fflush(ofd); in cpout()
|
/titanic_44/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | setup.c | 296 __m_setupterm(char *termname, int ifd, int ofd, int *err_return) in __m_setupterm() argument 317 if (isatty(cur_term->_ofd = ofd)) in __m_setupterm() 338 (void) restartterm(termname, ofd, &err_code); in __m_setupterm()
|
/titanic_44/usr/src/cmd/truss/ |
H A D | main.c | 255 int ofd = -1; in main() local 413 if (ofd >= 0) in main() 414 (void) close(ofd); in main() 415 if ((ofd = xcreat(optarg)) < 0) { in main() 546 setoutput(ofd); /* establish truss output */ in main() 2018 setoutput(int ofd) in setoutput() argument 2020 if (ofd < 0) { in setoutput() 2023 } else if (ofd != 1) { in setoutput() 2025 (void) fcntl(ofd, F_DUPFD, 1); in setoutput() 2026 (void) close(ofd); in setoutput() [all …]
|
/titanic_44/usr/src/lib/print/libpapi-lpd/common/ |
H A D | lpd-job.c | 566 int *ofd) in lpd_submit_job() argument 609 if (ofd != NULL) in lpd_submit_job() 610 *ofd = fd; in lpd_submit_job()
|
/titanic_44/usr/src/uts/sun4u/sys/ |
H A D | machcpuvar.h | 110 label_t *ofd[HIGH_LEVELS]; /* saved pil ofd */ member
|
/titanic_44/usr/src/lib/libnsl/rpc/ |
H A D | svc_generic.c | 229 svc_tli_create_common(const int ofd, const struct netconfig *nconf, in svc_tli_create_common() argument 238 int fd = ofd; in svc_tli_create_common()
|
/titanic_44/usr/src/cmd/sgs/liblddbg/common/ |
H A D | files.c | 730 const char *nname, int ofd, int nfd, Elf *oelf, Elf *nelf) in Dbg_file_modified() argument 744 if (nfd != ofd) { in Dbg_file_modified() 749 dbg_print(lml, MSG_INTL(MSG_FIL_FDCHANGE), ofd, nfd, str); in Dbg_file_modified()
|
/titanic_44/usr/src/uts/sun4v/sys/ |
H A D | machcpuvar.h | 125 label_t *ofd[HIGH_LEVELS]; /* saved pil ofd */ member
|
/titanic_44/usr/src/cmd/lp/lib/papi/ |
H A D | job.c | 306 int ifd, ofd; in copy_file() local 313 if ((ofd = open(to, O_WRONLY)) < 0) { in copy_file() 319 write(ofd, buf, rc); in copy_file() 322 close(ofd); in copy_file()
|
/titanic_44/usr/src/cmd/cpio/ |
H A D | cpio.c | 2320 write_bytes(int ofd, char *buf, size_t maxwrite, data_in_t *data_in_info) in write_bytes() argument 2325 if ((cnt = write(ofd, buf, maxwrite)) < (ssize_t)maxwrite) { in write_bytes() 2356 rdwr_bytes(int ifd, int ofd, char *buf, off_t bytes, in rdwr_bytes() argument 2379 rv = write_bytes(ofd, buf, in rdwr_bytes() 2412 write_zeros(int ofd, char *buf, off_t bytes, size_t wrblocksz, in write_zeros() argument 2421 rv = write_bytes(ofd, buf, wrblocksz, data_in_info); in write_zeros() 2443 calc_maxwrite(int ofd, int rw_sysattr, off_t bytes, size_t blocksize) in calc_maxwrite() argument 2452 if (fstat(ofd, &tsbuf) == 0) { in calc_maxwrite() 2486 data_copy(int ifd, int ofd, int rw_sysattr, off_t bytes, in data_copy() argument 2497 maxwrite = calc_maxwrite(ofd, rw_sysattr, bytes, blocksize); in data_copy() [all …]
|
/titanic_44/usr/src/cmd/sgs/mcs/common/ |
H A D | file.c | 1403 copy_file(int ofd, char *fname, Tmp_File *temp_file) in copy_file() argument 1445 if (ftruncate(ofd, 0) == -1) { in copy_file() 1450 if (lseek(ofd, 0, SEEK_SET) == -1) { in copy_file() 1455 if ((write(ofd, buf, stbuf.st_size)) != stbuf.st_size) { in copy_file()
|