/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | trace.c | 46 static int iftraceinit(struct interface *ifp, struct ifdebug *ifd); 48 static void dumptrace(FILE *fp, char *dir, struct ifdebug *ifd); 62 iftraceinit(struct interface *ifp, struct ifdebug *ifd) in iftraceinit() argument 66 ifd->ifd_records = (struct iftrace *) in iftraceinit() 68 if (ifd->ifd_records == NULL) in iftraceinit() 70 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() 109 trace(struct ifdebug *ifd, struct sockaddr_in6 *who, char *p, int len, int m) in trace() argument [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | dbm_map.c | 51 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 D | proc_fd.c | 120 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 D | fsck_main.c | 363 int ifd, ofd; in main() local 428 openFS(argv[optind], &ifd, &ofd); in main() 429 readBPB(ifd); in main() 435 confirmMountable(argv[optind], ifd); in main() 441 passOne(ifd); in main()
|
/illumos-gate/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()
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/filesync/ |
H A D | action.c | 1066 { 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 D | audioplay.c | 263 int ifd; in main() local 410 ifd = fileno(stdin); in main() 412 if ((ifd = path_open(Ifile, O_RDONLY, 0, Audio_path)) in main() 422 err = audio_read_filehdr(ifd, &File_hdr, &file_type, in main() 490 err = fstat(ifd, &st); in main() 507 MAP_SHARED, ifd, 0)) != MAP_FAILED)) { in main() 512 cnt = lseek(ifd, 0, SEEK_CUR); in main() 602 while ((cnt = read(ifd, inbuf+rem, insiz-rem)) >= 0) { in main() 806 (void) close(ifd); /* close input file */ in main()
|
/illumos-gate/usr/src/cmd/ctfconvert/ |
H A D | ctfconvert.c | 246 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 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 | 419 extern int esystem(char *cmd, int ifd, int ofd);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | main.c | 2584 start_charshunt(ifd, ofd) in start_charshunt() argument 2585 int ifd, ofd; in start_charshunt() 2604 charshunt(ifd, ofd, record_file); 2638 charshunt(ifd, ofd, record_file) in charshunt() argument 2639 int ifd, ofd; in charshunt() 2712 flags = fcntl(ifd, F_GETFL); 2714 || fcntl(ifd, F_SETFL, flags | O_NONBLOCK) == -1) 2715 warn("couldn't set %s to nonblock: %m", (ifd==0? "stdin": "tty")); 2716 if (ofd != ifd) { 2757 } else if (ifd >= 0) [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | setup.c | 259 __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 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()
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | setup.c | 294 __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 D | diff.c | 1925 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 D | cpio.c | 2239 read_chunk(int ifd, char *buffer, size_t datasize, data_in_t *data_in_info) in read_chunk() argument 2242 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() [all …]
|
/illumos-gate/usr/src/cmd/tar/ |
H A D | tar.c | 463 static void splitfile(char *longname, int ifd, char *name, 2590 splitfile(char *longname, int ifd, char *name, char *prefix, int filetype) in splitfile() argument 2673 while (blocks && read(ifd, buf, TBLOCK) > 0) { in splitfile() 2682 (void) close(ifd); in splitfile() 2686 (void) close(ifd); in splitfile()
|