Home
last modified time | relevance | path

Searched refs:ifd (Results 1 – 19 of 19) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtrace.c70 ifd->ifd_front = ifd->ifd_records; in iftraceinit()
71 ifd->ifd_count = 0; in iftraceinit()
72 for (t = ifd->ifd_records; t < ifd->ifd_records + NRECORDS; t++) { in iftraceinit()
76 ifd->ifd_if = ifp; in iftraceinit()
115 t = ifd->ifd_front++; in trace()
116 if (ifd->ifd_front >= ifd->ifd_records + NRECORDS) in trace()
117 ifd->ifd_front = ifd->ifd_records; in trace()
119 ifd->ifd_count++; in trace()
235 if (ifd->ifd_front == ifd->ifd_records && in dumptrace()
242 t = ifd->ifd_front - ifd->ifd_count; in dumptrace()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Ddbm_map.c51 static int ifd; variable
65 if ((ifd = open(fname, O_RDONLY)) == -1) in dbm_map()
67 if (fstat(ifd, &st) == -1) in dbm_map()
79 ifd, 0)) == MAP_FAILED) in dbm_map()
122 close(ifd); in dbm_map()
132 if (close(ifd) == -1) in dbm_unmap()
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_fd.c120 int ifd, err = EIO; in proc_get_fdinfo() local
127 if ((ifd = open(fname, O_RDONLY)) == -1) { in proc_get_fdinfo()
146 if (fstat(ifd, &st) == -1) { in proc_get_fdinfo()
158 if (lseek(ifd, 0, SEEK_SET) != 0 || in proc_get_fdinfo()
159 (l = read(ifd, info, st.st_size)) == -1) { in proc_get_fdinfo()
178 (void) close(ifd); in proc_get_fdinfo()
187 (void) close(ifd); in proc_get_fdinfo()
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dfsck.c342 int ifd, ofd; in main() local
404 openFS(argv[optind], &ifd, &ofd); in main()
405 readBPB(ifd); in main()
411 confirmMountable(argv[optind], ifd); in main()
417 passOne(ifd); in main()
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_elfwrite.c379 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 Dctf_diff.c1084 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()
/illumos-gate/usr/src/cmd/file/
H A Dfile.c142 static int ifd = -1; variable
452 ifd = -1; in type()
519 if (ifd < 0) { in type()
530 (void) close(ifd); in type()
531 ifd = -1; in type()
537 (void) close(ifd); in type()
538 ifd = -1; in type()
660 if (zipfile(fbuf, ifd)) in def_position_tests()
1900 if (ifd != -1) { in fd_cleanup()
1901 (void) close(ifd); in fd_cleanup()
[all …]
/illumos-gate/usr/src/cmd/filesync/
H A Daction.c1066 { int ifd, ofd, count, ret; in copy() local
1082 ifd = -1; in copy()
1085 ifd = open(src, O_RDONLY); in copy()
1087 if (ifd < 0) { in copy()
1098 bsize = checksparse(ifd); in copy()
1123 ret = fstat(ifd, &statbuf); in copy()
1128 close(ifd); in copy()
1133 close(ifd); in copy()
1147 close(ifd); in copy()
1159 count = read(ifd, (char *) inbuf, bsize); in copy()
[all …]
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c264 int ifd; in main() local
411 ifd = fileno(stdin); in main()
413 if ((ifd = path_open(Ifile, O_RDONLY, 0, Audio_path)) in main()
423 err = audio_read_filehdr(ifd, &File_hdr, &file_type, in main()
491 err = fstat(ifd, &st); in main()
508 MAP_SHARED, ifd, 0)) != MAP_FAILED)) { in main()
513 cnt = lseek(ifd, 0, SEEK_CUR); in main()
603 while ((cnt = read(ifd, inbuf+rem, insiz-rem)) >= 0) { in main()
807 (void) close(ifd); /* close input file */ in main()
/illumos-gate/usr/src/cmd/ctfconvert/
H A Dctfconvert.c246 int c, ifd, err; in main() local
343 ifd = open(infile, O_RDONLY); in main()
344 if (ifd < 0) { in main()
412 ofp = ctf_fdconvert(cch, ifd, &err, buf, sizeof (buf)); in main()
/illumos-gate/usr/src/lib/libpkg/common/
H A Druncmd.c96 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 Dpkglib.h419 extern int esystem(char *cmd, int ifd, int ofd);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c2584 start_charshunt(ifd, ofd) in start_charshunt() argument
2585 int ifd, ofd; in start_charshunt()
2638 charshunt(ifd, ofd, record_file) in charshunt() argument
2639 int ifd, ofd; in charshunt()
2712 flags = fcntl(ifd, F_GETFL);
2716 if (ofd != ifd) {
2757 } else if (ifd >= 0)
2758 FD_SET(ifd, &ready);
2788 if (FD_ISSET(ifd, &ready)) {
2803 (void) close(ifd);
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dsetup.c259 __m_setupterm(termname, ifd, ofd, err_return) in __m_setupterm() argument
261 int ifd, ofd;
280 if (isatty(cur_term->_ifd = ifd))
/illumos-gate/usr/src/cmd/lp/lib/papi/
H A Djob.c306 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()
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dsetup.c294 __m_setupterm(char *termname, int ifd, int ofd, int *err_return) in __m_setupterm() argument
313 if (isatty(cur_term->_ifd = ifd)) in __m_setupterm()
/illumos-gate/usr/src/cmd/diff/
H A Ddiff.c1925 int ifd, ofd; /* input and output file descriptors */ in copytemp() local
1934 if ((ifd = (strcmp(fn, "-") ? open(fn, 0) : 0)) < 0) { in copytemp()
1950 while ((i = read(ifd, buf, BUFSIZ)) > 0) in copytemp()
1957 (void) close(ifd); (void) close(ofd); in copytemp()
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c2242 return (read(ifd, buffer, datasize)); in read_chunk()
2286 read_bytes(int ifd, char *buf, size_t bytes, size_t rdblocksz, in read_bytes() argument
2298 if ((got = read_chunk(ifd, buf + bytesread, in read_bytes()
2364 rdwr_bytes(int ifd, int ofd, char *buf, off_t bytes, in rdwr_bytes() argument
2382 sz = read_bytes(ifd, buf, wrblocksz, rdblocksz, data_in_info); in rdwr_bytes()
2494 data_copy(int ifd, int ofd, int rw_sysattr, off_t bytes, in data_copy() argument
2508 rv = rdwr_bytes(ifd, ofd, buf, bytes, maxwrite, in data_copy()
2516 data_copy_with_holes(int ifd, int ofd, int rw_sysattr, off_t bytes, in data_copy_with_holes() argument
2555 (void) lseek(ifd, hl->hl_data, SEEK_SET); in data_copy_with_holes()
2573 rv = rdwr_bytes(ifd, ofd, buf, datasize, maxwrite, in data_copy_with_holes()
[all …]
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c462 static void splitfile(char *longname, int ifd, char *name,
2589 splitfile(char *longname, int ifd, char *name, char *prefix, int filetype) in splitfile() argument
2672 while (blocks && read(ifd, buf, TBLOCK) > 0) { in splitfile()
2681 (void) close(ifd); in splitfile()
2685 (void) close(ifd); in splitfile()