/titanic_51/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | trace.c | 48 static int iftraceinit(struct interface *ifp, struct ifdebug *ifd); 50 static void dumptrace(FILE *fp, char *dir, struct ifdebug *ifd); 64 iftraceinit(struct interface *ifp, struct ifdebug *ifd) in iftraceinit() argument 68 ifd->ifd_records = (struct iftrace *) in iftraceinit() 70 if (ifd->ifd_records == NULL) in iftraceinit() 72 ifd->ifd_front = ifd->ifd_records; in iftraceinit() 73 ifd->ifd_count = 0; in iftraceinit() 74 for (t = ifd->ifd_records; t < ifd in iftraceinit() 111 trace(struct ifdebug * ifd,struct sockaddr_in6 * who,char * p,int len,int m) trace() argument 232 dumptrace(FILE * fp,char * dir,struct ifdebug * ifd) dumptrace() argument [all...] |
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/nca/ |
H A D | ncab2clf.c | 451 close_files(int ifd, int ofd) in close_files() argument 453 if (ifd != STDIN_FILENO) in close_files() 454 (void) close(ifd); in close_files() 686 b2clf(int ifd, int ofd) in b2clf() argument 709 nh = read_n_bytes(ifd, ibuf, sizeof (nca_log_buf_hdr_t)); in b2clf() 730 ni = read_n_bytes(ifd, &(ibuf[nh]), (ssize_t)s->n_log_size); in b2clf() 776 int ifd; /* input fd - binary log file */ in main() local 853 if ((ifd = open(infile, O_RDONLY)) < 0) { in main() 862 ifd = STDIN_FILENO; in main() 886 if ((b2clf(ifd, of in main() [all...] |
/titanic_51/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() 407 readBPB(ifd); in main() 413 confirmMountable(argv[optind], ifd); in main() 419 passOne(ifd); in main()
|
/titanic_51/usr/src/lib/libctf/common/ |
H A D | ctf_elfwrite.c | 379 ctf_elffdwrite(ctf_file_t *fp, int ifd, int ofd, int flags) in ctf_elffdwrite() argument 385 if ((ielf = elf_begin(ifd, ELF_C_READ, NULL)) == NULL) in ctf_elffdwrite() 403 int ifd, ofd, ret; in ctf_elfwrite() local 405 if ((ifd = open(input, O_RDONLY)) < 0) in ctf_elfwrite() 408 if (fstat(ifd, &st) < 0) in ctf_elfwrite() 414 ret = ctf_elffdwrite(fp, ifd, ofd, flags); in ctf_elfwrite() 416 if (close(ifd) != 0 && ret == 0) in ctf_elfwrite()
|
H A D | ctf_diff.c | 1084 ctf_diff_func_t *ifd, *ofd; in ctf_diff_func_fill() local 1088 ifd = &cds->cds_ifuncs[i]; in ctf_diff_func_fill() 1090 if (strcmp(ifd->cdf_name, ofd->cdf_name) != 0) in ctf_diff_func_fill() 1093 ret = ctf_func_info(cds->cds_ifp, ifd->cdf_symidx, in ctf_diff_func_fill() 1137 if ((ret = ctf_func_args(cds->cds_ifp, ifd->cdf_symidx, in ctf_diff_func_fill() 1155 ifd->cdf_matchidx = j; in ctf_diff_func_fill()
|
/titanic_51/usr/src/cmd/file/ |
H A D | file.c | 142 static int ifd = -1; variable 161 static void ar_coff_or_aout(int ifd); 452 ifd = -1; in type() 518 ifd = open64(file, O_RDONLY); in type() 519 if (ifd < 0) { in type() 530 (void) close(ifd); in type() 531 ifd = -1; in type() 534 if ((fbsz = read(ifd, fbuf, FBSZ)) == -1) { in type() 537 (void) close(ifd); in type() 538 ifd = -1; in type() [all …]
|
/titanic_51/usr/src/cmd/filesync/ |
H A D | action.c | 1065 { int ifd, ofd, count, ret; in copy() local 1081 ifd = -1; in copy() 1084 ifd = open(src, O_RDONLY); in copy() 1086 if (ifd < 0) { in copy() 1097 bsize = checksparse(ifd); in copy() 1122 ret = fstat(ifd, &statbuf); in copy() 1127 close(ifd); in copy() 1132 close(ifd); in copy() 1146 close(ifd); in copy() 1158 count = read(ifd, (cha in copy() [all...] |
/titanic_51/usr/src/cmd/audio/audioplay/ |
H A D | audioplay.c | 259 int ifd; in main() local 406 ifd = fileno(stdin); in main() 408 if ((ifd = path_open(Ifile, O_RDONLY, 0, Audio_path)) in main() 418 err = audio_read_filehdr(ifd, &File_hdr, &file_type, in main() 486 err = fstat(ifd, &st); in main() 503 MAP_SHARED, ifd, 0)) != MAP_FAILED)) { in main() 508 cnt = lseek(ifd, 0, SEEK_CUR); in main() 598 while ((cnt = read(ifd, inbuf+rem, insiz-rem)) >= 0) { in main() 802 (void) close(ifd); /* close input file */ in main()
|
/titanic_51/usr/src/cmd/ctfconvert/ |
H A D | ctfconvert.c | 249 int c, ifd, err; in main() local 320 ifd = open(infile, O_RDONLY); in main() 321 if (ifd < 0) { in main() 333 ofp = ctf_fdconvert(ifd, label, nthreads, flags, &err, buf, in main()
|
/titanic_51/usr/src/cmd/avs/ncall/ |
H A D | ncalladm.c | 502 getnodelist(int ifd, int *nodesizep, int *mirrorp) in getnodelist() argument 515 mirror = ioctl(ifd, NC_IOC_GETNODE, &thisnode); in getnodelist() 525 maxsize = ioctl(ifd, NC_IOC_GETNETNODES, 0); in getnodelist() 536 cnt = ioctl(ifd, NC_IOC_GETNETNODES, nodelist); in getnodelist()
|
/titanic_51/usr/src/lib/libpkg/common/ |
H A D | runcmd.c | 96 esystem(char *cmd, int ifd, int ofd) in esystem() argument 139 if (ifd > 0) { in esystem() 140 (void) dup2(ifd, STDIN_FILENO); in esystem()
|
H A D | pkglib.h | 444 extern int esystem(char *cmd, int ifd, int ofd);
|
/titanic_51/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); 2638 * (We assume ofd >= ifd which is true the way this gets called. :-). 2641 charshunt(ifd, ofd, record_file) in charshunt() argument 2642 int ifd, ofd; in charshunt() 2715 flags = fcntl(ifd, F_GETFL); 2717 || fcntl(ifd, F_SETFL, flags | O_NONBLOCK) == -1) 2718 warn("couldn't set %s to nonblock: %m", (ifd==0? "stdin": "tty")); 2719 if (ofd != ifd) { [all...] |
/titanic_51/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; 282 if (isatty(cur_term->_ifd = ifd))
|
/titanic_51/usr/src/boot/lib/libz/test/ |
H A D | minigzip.c | 401 int ifd = fileno(in); local 407 if (fstat(ifd, &sb) < 0) return Z_ERRNO; 412 buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
|
/titanic_51/usr/src/cmd/lp/lib/papi/ |
H A D | job.c | 306 int ifd, ofd; in copy_file() local 310 if ((ifd = open(from, O_RDONLY)) < 0) in copy_file() 314 close(ifd); in copy_file() 318 while ((rc = read(ifd, buf, sizeof (buf))) > 0) in copy_file() 321 close(ifd); in copy_file()
|
/titanic_51/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 315 if (isatty(cur_term->_ifd = ifd)) in __m_setupterm()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/wanboot/wanboot-cgi/ |
H A D | wanboot-cgi.c | 237 int ifd; in write_file() local 242 if ((ifd = open(filename, O_RDONLY)) < 0) { in write_file() 249 if ((wlen = read(ifd, buf, rlen)) < 0 || in write_file() 255 (void) close(ifd); in write_file()
|
/titanic_51/usr/src/cmd/diff/ |
H A D | diff.c | 1914 int ifd, ofd; /* input and output file descriptors */ in copytemp() local 1923 if ((ifd = (strcmp(fn, "-") ? open(fn, 0) : 0)) < 0) { in copytemp() 1939 while ((i = read(ifd, buf, BUFSIZ)) > 0) in copytemp() 1946 (void) close(ifd); (void) close(ofd); in copytemp()
|
/titanic_51/usr/src/cmd/cpio/ |
H A D | cpio.c | 2222 * ifd - Input file descriptor. 2231 read_chunk(int ifd, char *buffer, size_t datasize, data_in_t *data_in_info) in read_chunk() argument 2234 return (read(ifd, buffer, datasize)); in read_chunk() 2268 * ifd - input file descriptor. 2278 read_bytes(int ifd, char *buf, size_t bytes, size_t rdblocksz, in read_bytes() argument 2290 if ((got = read_chunk(ifd, buf + bytesread, in read_bytes() 2346 * ifd/ofd - i/o file descriptor 2356 rdwr_bytes(int ifd, int ofd, char *buf, off_t bytes, in rdwr_bytes() argument 2374 sz = read_bytes(ifd, buf, wrblocksz, rdblocksz, data_in_info); in rdwr_bytes() 2463 * file to output file descriptor. If ifd i 2486 data_copy(int ifd,int ofd,int rw_sysattr,off_t bytes,size_t blocksize,data_in_t * data_in_info) data_copy() 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) data_copy_with_holes() argument [all...] |
/titanic_51/usr/src/cmd/tar/ |
H A D | tar.c | 461 static void splitfile(char *longname, int ifd, char *name, 2581 * int ifd; input file descriptor 2587 splitfile(char *longname, int ifd, char *name, char *prefix, int filetype) in splitfile() argument 2670 while (blocks && read(ifd, buf, TBLOCK) > 0) { in splitfile() 2679 (void) close(ifd); in splitfile() 2683 (void) close(ifd); in splitfile()
|