/titanic_44/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_io.c | 162 #define IOB_WRAPNOW(iob, n) \ argument 163 (((iob)->iob_flags & MDB_IOB_AUTOWRAP) && ((iob)->iob_nbytes != 0) && \ 164 ((n) + (iob)->iob_nbytes > (iob)->iob_cols)) 184 iob_write(mdb_iob_t *iob, mdb_io_t *io, const void *buf, size_t n) in iob_write() argument 203 iob->iob_flags |= MDB_IOB_ERR; in iob_write() 211 iob_read(mdb_iob_t *iob, mdb_io_t *io) in iob_read() argument 215 ASSERT(iob->iob_nbytes == 0); in iob_read() 216 len = IOP_READ(io, iob->iob_buf, iob->iob_bufsiz); in iob_read() 217 iob->iob_bufp = &iob->iob_buf[0]; in iob_read() 221 iob->iob_flags |= MDB_IOB_ERR; in iob_read() [all …]
|
H A D | mdb_shell.c | 123 shellio_unlink(mdb_io_t *io, mdb_iob_t *iob) in shellio_unlink() argument 127 ASSERT(iob->iob_iop == io); in shellio_unlink() 166 mdb_iob_t *iob; in mdb_shell_pipe() local 177 iob = mdb_iob_create(mdb_fdio_create(pfds[1]), MDB_IOB_WRONLY | iflag); in mdb_shell_pipe() 178 mdb_iob_clrflags(iob, MDB_IOB_AUTOWRAP | MDB_IOB_INDENT); in mdb_shell_pipe() 179 mdb_iob_resize(iob, BUFSIZ, BUFSIZ); in mdb_shell_pipe() 184 mdb_iob_destroy(iob); in mdb_shell_pipe() 212 mdb_iob_push_io(iob, io); in mdb_shell_pipe() 213 mdb.m_out = iob; in mdb_shell_pipe()
|
H A D | mdb_pipeio.c | 234 pio_link(mdb_io_t *io, mdb_iob_t *iob) in pio_link() argument 243 if (iob->iob_flags & MDB_IOB_RDONLY) in pio_link() 244 pd->pipe_rdiob = iob; in pio_link() 246 pd->pipe_wriob = iob; in pio_link() 248 IOP_LINK(io->io_next, iob); in pio_link() 252 pio_unlink(mdb_io_t *io, mdb_iob_t *iob) in pio_unlink() argument 269 if (pd->pipe_wriob == iob) { in pio_unlink() 307 } else if (pd->pipe_rdiob == iob) in pio_unlink() 310 IOP_UNLINK(io->io_next, iob); in pio_unlink() 347 mdb_iob_isapipe(mdb_iob_t *iob) in mdb_iob_isapipe() argument [all …]
|
H A D | mdb_io_impl.h | 60 #define IOP_LINK(io, iob) ((io)->io_ops->io_link((io), (iob))) argument 61 #define IOP_UNLINK(io, iob) ((io)->io_ops->io_unlink((io), (iob))) argument
|
H A D | mdb_strio.c | 151 mdb_iob_isastr(mdb_iob_t *iob) in mdb_iob_isastr() argument 155 for (io = iob->iob_iop; io != NULL; io = io->io_next) { in mdb_iob_isastr()
|
H A D | mdb_termio.c | 569 termio_link(mdb_io_t *io, mdb_iob_t *iob) in termio_link() argument 574 mdb_iob_resize(iob, td->tio_rows, td->tio_cols); in termio_link() 575 td->tio_link = iob; in termio_link() 577 IOP_LINK(io->io_next, iob); in termio_link() 581 termio_unlink(mdb_io_t *io, mdb_iob_t *iob) in termio_unlink() argument 586 if (td->tio_link == iob) in termio_unlink() 589 IOP_UNLINK(io->io_next, iob); in termio_unlink() 1554 mdb_iob_isatty(mdb_iob_t *iob) in mdb_iob_isatty() argument 1558 if (iob->iob_flags & MDB_IOB_TTYLIKE) in mdb_iob_isatty() 1561 for (io = iob->iob_iop; io != NULL; io = io->io_next) { in mdb_iob_isatty()
|
H A D | mdb_cmds.c | 826 mdb_iob_t *iob; in cmd_cat() local 846 iob = mdb_iob_create(fio, MDB_IOB_RDONLY); in cmd_cat() 848 while (!(mdb_iob_getflags(iob) & (MDB_IOB_EOF | MDB_IOB_ERR))) { in cmd_cat() 849 ssize_t len = mdb_iob_read(iob, buf, sizeof (buf)); in cmd_cat() 860 if (mdb_iob_err(iob)) in cmd_cat() 861 mdb_warn("error while reading %s", mdb_iob_name(iob)); in cmd_cat() 863 mdb_iob_destroy(iob); in cmd_cat()
|
H A D | mdb_main.c | 1071 mdb_iob_t *iob = mdb_iob_create(rc_io, MDB_IOB_RDONLY); in main() local 1074 mdb.m_in = iob; in main()
|
H A D | mdb.c | 1072 mdb_dcmd_usage(const mdb_idcmd_t *idcp, mdb_iob_t *iob) in mdb_dcmd_usage() argument 1096 mdb_iob_printf(iob, "Usage: %s%s %s\n", prefix, idcp->idc_name, usage); in mdb_dcmd_usage() 1099 mdb_iob_printf(iob, "%s: try '::help %s' for more " in mdb_dcmd_usage()
|
/titanic_44/usr/src/lib/libast/common/stdio/ |
H A D | _stdfun.c | 54 static char* iob; in _stdfun() local 59 if (!iob && !(iob = IOB)) in _stdfun() 61 if (f && ((char*)f < iob || (char*)f > iob+IOBMAX)) in _stdfun()
|
/titanic_44/usr/src/cmd/mdb/common/modules/mdb_ds/ |
H A D | mdb_ds.c | 162 mdb_iob_t iob; in cmd_iob() local 173 if (mdb_vread(&iob, sizeof (iob), addr) == -1 || in cmd_iob() 174 mdb_vread(&io, sizeof (io), (uintptr_t)iob.iob_iop) == -1) { in cmd_iob() 179 mdb_printf("%?p %6lu %6x %?p %a\n", addr, (ulong_t)iob.iob_nbytes, in cmd_iob() 180 iob.iob_flags, iob.iob_iop, io.io_ops); in cmd_iob() 428 mdb_iob_t iob; in iob_stack_walk_step() local 433 if (mdb_vread(&iob, sizeof (iob), addr) == -1) { in iob_stack_walk_step() 438 wsp->walk_addr = (uintptr_t)iob.iob_next; in iob_stack_walk_step() 439 return (wsp->walk_callback(addr, &iob, wsp->walk_cbdata)); in iob_stack_walk_step()
|
/titanic_44/usr/src/lib/libc/port/stdio/ |
H A D | flush.c | 231 FILE iob[FILE_ARY_SZ]; in _findiop() member 237 xFILE iob[FILE_ARY_SZ]; in _findiop() member 240 xFILE iob[FILE_ARY_SZ]; in _findiop() member 322 hdr->iobp = &pkgp->iob[0]; in _findiop() 344 offsetof(Pkg, Pkgn.iob[FILE_ARY_SZ-1].xmagic) && in _findiop() 346 offsetof(Pkg, Pkgn.iob[0].xmagic)) { in _findiop() 349 hdr->iobp = &pkgp->Pkgr.iob[0]; in _findiop() 353 hdr->iobp = &pkgp->Pkgn.iob[0]; in _findiop()
|
/titanic_44/usr/src/lib/libpp/common/ |
H A D | ppproto.c | 258 proto_error(char* iob, int level, char* msg, char* arg) in proto_error() argument 264 if (iob) in proto_error() 266 register struct proto* proto = (struct proto*)(iob - sizeof(struct proto)); in proto_error() 2104 pppclose(char* iob) in pppclose() argument 2106 register struct proto* proto = (struct proto*)(iob - sizeof(struct proto)); in pppclose() 2128 register char* iob; in pppopen() local 2187 iob = (char*)proto + sizeof(struct proto); in pppopen() 2188 proto->op = proto->ob = iob; in pppopen() 2189 proto->ip = proto->ib = iob + proto->oz + n; in pppopen() 2212 pppclose(iob); in pppopen() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/SUNW,Sun-Fire/ioboard/ |
H A D | Makefile | 31 include ../../sun4/ioboard/Makefile.iob
|
/titanic_44/usr/src/lib/fm/topo/modules/SUNW,Sun-Fire-15000/ioboard/ |
H A D | Makefile | 31 include ../../sun4/ioboard/Makefile.iob
|
/titanic_44/usr/src/cmd/mailx/ |
H A D | fio.c | 699 fsize(FILE *iob) in fsize() argument 704 f = fileno(iob); in fsize() 717 fferror(FILE *iob) in fferror() argument 719 return (ferror(iob) || fsync(fileno(iob)) < 0); in fferror()
|
/titanic_44/usr/src/lib/fm/topo/modules/SUNW,SPARC-Enterprise/ioboard/ |
H A D | opl_topo.h | 85 int opl_hb_enum(topo_mod_t *mp, const ioboard_contents_t *iob,
|
H A D | opl_hostbridge.c | 259 opl_hb_enum(topo_mod_t *mp, const ioboard_contents_t *iob, tnode_t *ion, in opl_hb_enum() argument 282 p = iob->rcs[hb][rc]; in opl_hb_enum()
|
/titanic_44/usr/src/cmd/mailx/hdr/ |
H A D | def.h | 466 extern int fferror(FILE *iob); 476 extern off_t fsize(FILE *iob);
|
/titanic_44/usr/src/lib/libbc/sparc/ |
H A D | Makefile | 113 fwrite.o getc.o getchar.o gets.o getw.o iob.o \
|
/titanic_44/usr/src/lib/libast/common/ |
H A D | RELEASE | 857 _stdfun.c: add _UWIN&_ALPHA_ iob map
|