Searched defs:io (Results 1 - 25 of 66) sorted by relevance

123

/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Doptvalue.c14 struct ipopt_names *io; local
16 for (io = ionames; io->on_name; io++)
17 if (!strcasecmp(optname, io->on_name))
18 return io->on_bit;
26 struct ipopt_names *io; local
28 for (io = ionames; io->on_name; io
[all...]
H A Dv6optvalue.c16 struct ipopt_names *io; local
18 for (io = v6ionames; io->on_name; io++)
19 if (!strcasecmp(optname, io->on_name))
20 return io->on_bit;
30 struct ipopt_names *io; local
32 for (io = v6ionames; io->on_name; io
[all...]
H A Doptprintv6.c20 struct ipopt_names *io; local
24 for (io = v6ionames; io->on_name; io++)
25 if ((io->on_bit & optmsk) &&
26 ((io->on_bit & optmsk) == (io->on_bit & optbits))) {
27 printf("%s%s", s, io->on_name);
36 for (io = v6ionames; io
[all...]
H A Dbuildopts.c16 struct ipopt_names *io; local
24 for (io = ionames; io->on_name; io++) {
25 if (strcasecmp(s, io->on_name) || (msk & io->on_bit))
27 if ((inc = addipopt(op, io, len, t))) {
31 msk |= io->on_bit;
34 if (!io->on_name) {
H A Doptname.c17 struct ipopt_names *io, *so; local
24 for (io = ionames; io->on_name; io++)
25 if (!strcasecmp(s, io->on_name)) {
26 msk |= io->on_bit;
29 if (!io->on_name) {
H A Doptprint.c16 struct ipopt_names *io, *so; local
20 for (io = ionames; io->on_name; io++)
21 if ((io->on_bit & optmsk) &&
22 ((io->on_bit & optmsk) == (io->on_bit & optbits))) {
23 if ((io->on_value != IPOPT_SECURITY) ||
25 printf("%s%s", s, io->on_name);
26 if (io
[all...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_kb_kvm.c46 mdb_io_t *io; local
49 if ((io = mdb_fdio_create_path(NULL, symfile, O_RDONLY, 0)) == NULL)
52 return (io);
H A Dmdb_logio.c37 * the write request along to io->io_next.
46 logio_read(mdb_io_t *io, void *buf, size_t nbytes) argument
48 mdb_io_t *logio = io->io_data;
51 if (io->io_next != NULL) {
52 rbytes = IOP_READ(io->io_next, buf, nbytes);
66 logio_write(mdb_io_t *io, const void *buf, size_t nbytes) argument
68 mdb_io_t *logio = io->io_data;
71 if (io->io_next != NULL) {
72 wbytes = IOP_WRITE(io->io_next, buf, nbytes);
84 logio_close(mdb_io_t *io) argument
90 logio_name(mdb_io_t *io) argument
115 mdb_io_t *io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP); local
[all...]
H A Dmdb_memio.c44 memio_read(mdb_io_t *io, void *buf, size_t nbytes) argument
46 mem_data_t *mdp = io->io_data;
48 if (io->io_next == NULL) {
56 return (IOP_READ(io->io_next, buf, nbytes));
60 memio_seek(mdb_io_t *io, off64_t offset, int whence) argument
62 mem_data_t *mdp = io->io_data;
64 if (io->io_next == NULL) {
84 return (IOP_SEEK(io->io_next, offset, whence));
104 mdb_io_t *io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP); local
111 io
[all...]
H A Dmdb_shell.c115 * in order to generate an EOF to terminate the child. Since each io is
123 shellio_unlink(mdb_io_t *io, mdb_iob_t *iob) argument
125 mdb_io_t *fdio = io->io_next;
127 ASSERT(iob->iob_iop == io);
130 io->io_next = fdio->io_next;
136 shellio_close(mdb_io_t *io) argument
138 pid_t pid = (pid_t)(intptr_t)io->io_data;
167 mdb_io_t *io; local
204 io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP);
206 io
[all...]
H A Dmdb_strio.c49 strio_read(mdb_io_t *io, void *buf, size_t nbytes) argument
51 str_data_t *sd = io->io_data;
65 strio_seek(mdb_io_t *io, off64_t offset, int whence) argument
67 str_data_t *sd = io->io_data;
70 if (io->io_next != NULL)
71 return (IOP_SEEK(io->io_next, offset, whence));
95 strio_close(mdb_io_t *io) argument
97 str_data_t *sd = io->io_data;
104 strio_name(mdb_io_t *io) argument
106 if (io
129 mdb_io_t *io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP); local
153 mdb_io_t *io; local
[all...]
H A Dmdb_pipeio.c77 pio_read(mdb_io_t *io, void *buf, size_t nbytes) argument
79 pipe_data_t *pd = io->io_data;
143 pio_write(mdb_io_t *io, const void *buf, size_t nbytes) argument
145 pipe_data_t *pd = io->io_data;
204 pio_ctl(mdb_io_t *io, int req, void *arg) argument
206 pipe_data_t *pd = io->io_data;
208 if (io->io_next != NULL)
209 return (IOP_CTL(io->io_next, req, arg));
221 pio_close(mdb_io_t *io) argument
223 mdb_free(io
228 pio_name(mdb_io_t *io) argument
234 pio_link(mdb_io_t *io, mdb_iob_t *iob) argument
252 pio_unlink(mdb_io_t *io, mdb_iob_t *iob) argument
330 mdb_io_t *io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP); local
349 mdb_io_t *io; local
[all...]
H A Dmdb_fdio.c57 fdio_read(mdb_io_t *io, void *buf, size_t nbytes) argument
59 fd_data_t *fdp = io->io_data;
61 if (io->io_next == NULL)
64 return (IOP_READ(io->io_next, buf, nbytes));
68 fdio_write(mdb_io_t *io, const void *buf, size_t nbytes) argument
70 fd_data_t *fdp = io->io_data;
72 if (io->io_next == NULL)
75 return (IOP_WRITE(io->io_next, buf, nbytes));
79 fdio_seek(mdb_io_t *io, off64_t offset, int whence) argument
81 fd_data_t *fdp = io
90 fdio_ctl(mdb_io_t *io, int req, void *arg) argument
104 fdio_close(mdb_io_t *io) argument
113 fdio_name(mdb_io_t *io) argument
178 fdio_bdev_read(mdb_io_t *io, void *buf, size_t nbytes) argument
219 fdio_bdev_write(mdb_io_t *io, const void *buf, size_t nbytes) argument
274 mdb_io_t *io = mdb_alloc(sizeof (mdb_io_t), UM_SLEEP); local
318 mdb_io_t *io = mdb_fdio_create(fd); local
328 mdb_fdio_fileno(mdb_io_t *io) argument
[all...]
H A Dmdb_rawfile.c112 rf_read(mdb_io_t *io, void *buf, size_t nbytes, uint64_t addr) argument
116 if (io == NULL)
119 if (IOP_SEEK(io, addr, SEEK_SET) == -1)
122 if ((rbytes = IOP_READ(io, buf, nbytes)) == 0)
129 rf_write(mdb_io_t *io, const void *buf, size_t nbytes, uint64_t addr) argument
131 if (io == NULL)
134 if (IOP_SEEK(io, addr, SEEK_SET) == -1)
137 return (IOP_WRITE(io, buf, nbytes));
224 rf_print_map(mdb_io_t *io, const char *type, int tflags, argument
230 "%s (%s)", IOP_NAME(io), typ
416 mdb_io_t *io[2] = { NULL, NULL }; local
[all...]
/illumos-gate/usr/src/cmd/hal/hald-runner/
H A Dutils.c62 GIOChannel *io; local
67 io = g_io_channel_unix_new(fd);
68 while (g_io_channel_read_line_string(io, str, &pos, NULL) == G_IO_STATUS_NORMAL && (i++ < 128)) {
77 g_io_channel_unref(io);
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfexcept.c24 /* Function to handle io exceptions.
29 int _sfexcept(Sfio_t* f, int type, ssize_t io, Sfdisc_t* disc) argument
31 int _sfexcept(f,type,io,disc)
33 int type; /* io type that was performed */
34 ssize_t io; /* the io return value that indicated exception */
48 if(local && io <= 0)
49 f->flags |= io < 0 ? SF_ERROR : SF_EOF;
57 _Sfi = f->val = io;
58 ev = (*(disc->exceptf))(f,type,&io,dis
[all...]
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_promio.c57 pio_read(mdb_io_t *io, void *buf, size_t nbytes) argument
59 pio_data_t *pdp = io->io_data;
61 if (io->io_next == NULL)
64 return (IOP_READ(io->io_next, buf, nbytes));
68 pio_write(mdb_io_t *io, const void *buf, size_t nbytes) argument
70 pio_data_t *pdp = io->io_data;
72 if (io->io_next == NULL)
75 return (IOP_WRITE(io->io_next, buf, nbytes));
79 pio_seek(mdb_io_t *io, off64_t offset, int whence) argument
81 if (io
88 pio_ctl(mdb_io_t *io, int req, void *arg) argument
153 pio_close(mdb_io_t *io) argument
161 pio_name(mdb_io_t *io) argument
188 mdb_io_t *io; local
[all...]
/illumos-gate/usr/src/lib/libast/common/disc/
H A Dsfdcdio.c72 { size_t io; local
74 if((io = rw) > di->dio.d_maxiosz )
75 io = di->dio.d_maxiosz;
77 rv = read(f->file,buf,io);
78 else rv = write(f->file,buf,io);
85 if(rv < io || rw < di->dio.d_miniosz)
H A Dsfdcsubstr.c54 reg ssize_t io; local
59 if(su->extent >= 0 && (ssize_t)n > (io = (ssize_t)(su->extent - su->here)) )
60 n = io;
70 io = 0;
73 io = sfwr(f,buf,n,disc);
74 else io = sfrd(f,buf,n,disc);
75 if(io > 0)
76 su->here += io;
82 return io;
/illumos-gate/usr/src/cmd/virtinfo/
H A Dvirtinfo.c150 char *impl = "", *role = "", *io = "", *service = "", local
164 io = (roles & V12N_ROLE_IO) ?
165 "|io=true" : "|io=false";
174 io = (roles & V12N_ROLE_IO) ?
182 gettext("Domain role: "), impl, role, io, service, root);
/illumos-gate/usr/src/cmd/sh/
H A Dcmd.c262 struct ionod *io; local
265 io = inout((struct ionod *)0);
267 io = 0;
369 if (io == 0)
428 t->comio = io; /*initial io chain*/
455 if (io)
457 while(io->ionxt)
458 io = io
[all...]
H A Dxec.c130 struct ionod *io = t->treio; local
201 index = initio(io, 1);
352 * io redirection
/illumos-gate/usr/src/uts/common/avs/ns/nsctl/
H A Dnsc_resv.c678 nsc_io_t *io = iodev->si_io; local
690 if ((io->flag & NSC_FILTER) == 0) {
708 return (_nsc_call_dev(dev, io->attach, iodev->si_open->sf_cd,
742 nsc_io_t *io = iodev->si_io; local
752 if (!keep && io->flush == nsc_null)
781 fn = (flag & NSC_WRITE) ? io->detach : io->flush;
H A Dnsc_cache.c81 _nsc_add_cache(nsc_io_t *io) argument
112 nsc_io_t *io; local
121 io = _nsc_reserve_io(NULL, NSC_ANON);
122 if (io == NULL)
125 if ((h = (*io->alloc_h)(NULL, NULL, NULL, NSC_ANON_CD)) == NULL) {
126 _nsc_release_io(io);
130 rc = (*io->alloc_buf)(NSC_ANON_CD, pos, len,
135 h->sb_fd = (nsc_fd_t *)io; /* note overloaded field */
140 io->abufcnt++;
144 _nsc_release_io(io);
389 nsc_io_t *io; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_ds/
H A Dmdb_ds.c163 mdb_io_t io; local
174 mdb_vread(&io, sizeof (io), (uintptr_t)iob.iob_iop) == -1) {
180 iob.iob_flags, iob.iob_iop, io.io_ops);

Completed in 182 milliseconds

123