Searched defs:ifd (Results 1 - 15 of 15) sorted by relevance

/illumos-gate/usr/src/lib/libpkg/common/
H A Druncmd.c96 esystem(char *cmd, int ifd, int ofd) argument
139 if (ifd > 0) {
140 (void) dup2(ifd, STDIN_FILENO);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtrace.c48 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) argument
68 ifd->ifd_records = (struct iftrace *)
70 if (ifd->ifd_records == NULL)
72 ifd->ifd_front = ifd->ifd_records;
73 ifd->ifd_count = 0;
74 for (t = ifd->ifd_records; t < ifd
111 trace(struct ifdebug *ifd, struct sockaddr_in6 *who, char *p, int len, int m) argument
232 dumptrace(FILE *fp, char *dir, struct ifdebug *ifd) argument
[all...]
/illumos-gate/usr/src/cmd/filesync/
H A Daction.c1065 { int ifd, ofd, count, ret; local
1081 ifd = -1;
1084 ifd = open(src, O_RDONLY);
1086 if (ifd < 0) {
1097 bsize = checksparse(ifd);
1122 ret = fstat(ifd, &statbuf);
1127 close(ifd);
1132 close(ifd);
1146 close(ifd);
1158 count = read(ifd, (cha
[all...]
/illumos-gate/usr/src/cmd/avs/ncall/
H A Dncalladm.c502 getnodelist(int ifd, int *nodesizep, int *mirrorp) argument
515 mirror = ioctl(ifd, NC_IOC_GETNODE, &thisnode);
525 maxsize = ioctl(ifd, NC_IOC_GETNETNODES, 0);
536 cnt = ioctl(ifd, NC_IOC_GETNETNODES, nodelist);
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dfsck.c344 int ifd, ofd; local
406 openFS(argv[optind], &ifd, &ofd);
407 readBPB(ifd);
413 confirmMountable(argv[optind], ifd);
419 passOne(ifd);
/illumos-gate/usr/src/boot/lib/libz/test/
H A Dminigzip.c401 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);
/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
315 if (isatty(cur_term->_ifd = ifd))
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c259 int ifd; local
406 ifd = fileno(stdin);
408 if ((ifd = path_open(Ifile, O_RDONLY, 0, Audio_path))
418 err = audio_read_filehdr(ifd, &File_hdr, &file_type,
486 err = fstat(ifd, &st);
503 MAP_SHARED, ifd, 0)) != MAP_FAILED)) {
508 cnt = lseek(ifd, 0, SEEK_CUR);
598 while ((cnt = read(ifd, inbuf+rem, insiz-rem)) >= 0) {
802 (void) close(ifd); /* close input file */
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nca/
H A Dncab2clf.c451 close_files(int ifd, int ofd) argument
453 if (ifd != STDIN_FILENO)
454 (void) close(ifd);
686 b2clf(int ifd, int ofd) argument
709 nh = read_n_bytes(ifd, ibuf, sizeof (nca_log_buf_hdr_t));
730 ni = read_n_bytes(ifd, &(ibuf[nh]), (ssize_t)s->n_log_size);
776 int ifd; /* input fd - binary log file */ local
853 if ((ifd = open(infile, O_RDONLY)) < 0) {
862 ifd = STDIN_FILENO;
886 if ((b2clf(ifd, of
[all...]
/illumos-gate/usr/src/cmd/file/
H A Dfile.c141 static int ifd = -1; variable
160 static void ar_coff_or_aout(int ifd);
451 ifd = -1;
517 ifd = open64(file, O_RDONLY);
518 if (ifd < 0) {
529 (void) close(ifd);
530 ifd = -1;
533 if ((fbsz = read(ifd, fbuf, FBSZ)) == -1) {
536 (void) close(ifd);
537 ifd
[all...]
/illumos-gate/usr/src/cmd/lp/lib/papi/
H A Djob.c306 int ifd, ofd; local
310 if ((ifd = open(from, O_RDONLY)) < 0)
314 close(ifd);
318 while ((rc = read(ifd, buf, sizeof (buf))) > 0)
321 close(ifd);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/wanboot-cgi/
H A Dwanboot-cgi.c237 int ifd; local
242 if ((ifd = open(filename, O_RDONLY)) < 0) {
249 if ((wlen = read(ifd, buf, rlen)) < 0 ||
255 (void) close(ifd);
/illumos-gate/usr/src/cmd/diff/
H A Ddiff.c1914 int ifd, ofd; /* input and output file descriptors */ local
1923 if ((ifd = (strcmp(fn, "-") ? open(fn, 0) : 0)) < 0) {
1939 while ((i = read(ifd, buf, BUFSIZ)) > 0)
1946 (void) close(ifd); (void) close(ofd);
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c2222 * ifd - Input file descriptor.
2231 read_chunk(int ifd, char *buffer, size_t datasize, data_in_t *data_in_info) argument
2234 return (read(ifd, buffer, datasize));
2268 * ifd - input file descriptor.
2278 read_bytes(int ifd, char *buf, size_t bytes, size_t rdblocksz, argument
2290 if ((got = read_chunk(ifd, buf + bytesread,
2346 * ifd/ofd - i/o file descriptor
2356 rdwr_bytes(int ifd, int ofd, char *buf, off_t bytes, argument
2374 sz = read_bytes(ifd, buf, wrblocksz, rdblocksz, data_in_info);
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) 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/tar/
H A Dtar.c461 static void splitfile(char *longname, int ifd, char *name,
2582 * int ifd; input file descriptor
2588 splitfile(char *longname, int ifd, char *name, char *prefix, int filetype) argument
2671 while (blocks && read(ifd, buf, TBLOCK) > 0) {
2680 (void) close(ifd);
2684 (void) close(ifd);

Completed in 165 milliseconds