Home
last modified time | relevance | path

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

/titanic_44/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) 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->ifd_records + NRECORDS; t++) { in iftraceinit()
78 ifd->ifd_if = ifp; in iftraceinit()
111 trace(struct ifdebug *ifd, struct sockaddr_in6 *who, char *p, int len, int m) in trace() argument
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/nca/
H A Dncab2clf.c451 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, ofd) != 0)) { in main()
[all …]
/titanic_44/usr/src/cmd/fs.d/pcfs/fsck/
H A Dfsck.c344 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_44/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; in type()
517 ifd = open64(file, O_RDONLY); in type()
518 if (ifd < 0) { in type()
529 (void) close(ifd); in type()
530 ifd = -1; in type()
533 if ((fbsz = read(ifd, fbuf, FBSZ)) == -1) { in type()
536 (void) close(ifd); in type()
537 ifd = -1; in type()
[all …]
/titanic_44/usr/src/cmd/filesync/
H A Daction.c1065 { 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, (char *) inbuf, bsize); in copy()
[all …]
/titanic_44/usr/src/cmd/audio/audioplay/
H A Daudioplay.c259 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_44/usr/src/cmd/avs/ncall/
H A Dncalladm.c502 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_44/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.h444 extern int esystem(char *cmd, int ifd, int ofd);
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c2587 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()
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) {
2760 } else if (ifd >= 0)
[all …]
/titanic_44/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dsetup.c261 __m_setupterm(termname, ifd, ofd, err_return) in __m_setupterm() argument
263 int ifd, ofd;
282 if (isatty(cur_term->_ifd = ifd))
/titanic_44/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()
/titanic_44/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dsetup.c296 __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_44/usr/src/cmd/cmd-inet/usr.lib/wanboot/wanboot-cgi/
H A Dwanboot-cgi.c237 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_44/usr/src/cmd/diff/
H A Ddiff.c1914 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_44/usr/src/cmd/cpio/
H A Dcpio.c2231 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()
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()
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()
2486 data_copy(int ifd, int ofd, int rw_sysattr, off_t bytes, in data_copy() argument
2500 rv = rdwr_bytes(ifd, ofd, buf, bytes, maxwrite, in data_copy()
2508 data_copy_with_holes(int ifd, int ofd, int rw_sysattr, off_t bytes, in data_copy_with_holes() argument
2547 (void) lseek(ifd, hl->hl_data, SEEK_SET); in data_copy_with_holes()
[all …]
/titanic_44/usr/src/cmd/tar/
H A Dtar.c468 static void splitfile(char *longname, int ifd, char *name,
2531 splitfile(char *longname, int ifd, char *name, char *prefix, int filetype) in splitfile() argument
2614 while (blocks && read(ifd, buf, TBLOCK) > 0) { in splitfile()
2623 (void) close(ifd); in splitfile()
2627 (void) close(ifd); in splitfile()