/illumos-gate/usr/src/lib/libpool/common/ |
H A D | pool_value.c | 67 pool_value_get_uint64(const pool_value_t *pv, uint64_t *result) argument 69 if (pv->pv_class != POC_UINT) { 73 *result = pv->pv_u.u; 82 pool_value_get_int64(const pool_value_t *pv, int64_t *result) argument 84 if (pv->pv_class != POC_INT) { 88 *result = pv->pv_u.i; 98 pool_value_get_double(const pool_value_t *pv, double *result) argument 100 if (pv->pv_class != POC_DOUBLE) { 104 *result = pv->pv_u.d; 113 pool_value_get_bool(const pool_value_t *pv, uchar_ argument 128 pool_value_get_string(const pool_value_t *pv, const char **result) argument 143 pool_value_get_type(const pool_value_t *pv) argument 153 pool_value_set_uint64(pool_value_t *pv, uint64_t val) argument 166 pool_value_set_int64(pool_value_t *pv, int64_t val) argument 180 pool_value_set_double(pool_value_t *pv, double val) argument 193 pool_value_set_bool(pool_value_t *pv, uchar_t val) argument 206 pool_value_set_string(pool_value_t *pv, const char *val) argument 245 pool_value_free(pool_value_t *pv) argument 259 pool_value_get_name(const pool_value_t *pv) argument 268 pool_value_set_name(pool_value_t *pv, const char *name) argument 289 pool_value_from_nvpair(pool_value_t *pv, nvpair_t *pn) argument 410 pool_value_dprintf(const pool_value_t *pv) argument [all...] |
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_prop.c | 120 prop_method_get(tnode_t *node, topo_propval_t *pv, topo_propmethod_t *pm, argument 128 if (topo_hdl_nvalloc(pv->tp_hdl, &args, NV_UNIQUE_NAME) < 0 || 144 topo_prop_hold(pv); 149 topo_prop_rele(pv); 153 topo_prop_rele(pv); 159 if (ret != 0 || strcmp(name, pv->tp_name) != 0) 163 if (ret != 0 || type != pv->tp_type) 167 nvlist_free(pv->tp_val); 168 pv->tp_val = nvl; 177 topo_propval_t *pv local 209 topo_propval_t *pv; local 500 topo_propval_t *pv; local 520 topo_propval_t *pv; local 769 topo_propval_t *pv; local 875 topo_propval_t *pv = NULL; local 976 topo_propval_t *pv; local 1014 topo_propval_t *pv = NULL; local 1042 topo_propval_t *pv = NULL; local 1075 topo_propval_t *pv; local 1299 propmethod_destroy(topo_hdl_t *thp, topo_propval_t *pv) argument 1314 topo_propval_destroy(topo_propval_t *pv) argument 1334 topo_prop_hold(topo_propval_t *pv) argument 1340 topo_prop_rele(topo_propval_t *pv) argument 1359 topo_propval_t *pv; local 1377 prop_val_add(tnode_t *node, nvlist_t **nvl, topo_propval_t *pv, int *err) argument 1416 topo_propval_t *pv; local 1487 topo_propval_t *pv; local [all...] |
H A D | topo_2xml.c | 106 topo_propval_t *pv) 112 switch (pv->tp_type) { 115 if (topo_prop_get_int32(node, pgname, pv->tp_name, &val, 126 if (topo_prop_get_uint32(node, pgname, pv->tp_name, 137 if (topo_prop_get_int64(node, pgname, pv->tp_name, &val, 149 if (topo_prop_get_uint64(node, pgname, pv->tp_name, 160 if (topo_prop_get_string(node, pgname, pv->tp_name, 169 if (topo_prop_get_fmri(node, pgname, pv->tp_name, &val, 188 pv->tp_name, &val, &nelem, &err) != 0) 216 begin_end_element(fp, Propval, Name, pv 105 txml_print_prop(topo_hdl_t *thp, FILE *fp, tnode_t *node, const char *pgname, topo_propval_t *pv) argument [all...] |
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.exec.c | 54 tchar *dp, **pv, **av; local 119 pv = justabs; 121 pv = v->vec; 134 if (!slash && pv[0][0] == '/' && havhash) { 141 if (pv[0][0] == 0 || eq(pv[0], S_DOT /* "." */)) { 144 dp = strspl(*pv, sav); 158 pv++; 160 } while (*pv); 373 tchar **pv; local [all...] |
H A D | sh.sem.c | 60 int pv[2]; local 327 execute(t->t_dcar, wanttty, pipein, pv); 332 execute(t->t_dcdr, wanttty, pv, pipeout); 493 mypipe(int *pv) argument 499 if (pipe(pv) < 0) 501 setfd(pv[0]); 502 setfd(pv[1]); 504 pv[0] = dmove(pv[0], -1); 505 pv[ [all...] |
H A D | sh.dir.c | 225 tchar **pv; local 229 pv = justabs; 231 pv = c->vec; 246 if (pv[0][0] == '/') { 253 fullpath = strspl(*pv, slashcp); 272 for (dp = buf, p = *pv; *dp++ = *p++; ) 285 pv++; 287 } while (*pv);
|
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/ |
H A D | PoolInternal.java | 133 final static native int pool_value_get_uint64(long pv, long result); argument 134 final static native int pool_value_get_int64(long pv, long result); argument 135 final static native int pool_value_get_double(long pv, long result); argument 136 final static native int pool_value_get_bool(long pv, long result); argument 137 final static native int pool_value_get_string(long pv, long result); argument 138 final static native int pool_value_get_type(long pv); argument 139 final static native void pool_value_set_uint64(long pv, long val); argument 140 final static native void pool_value_set_int64(long pv, long val); argument 141 final static native void pool_value_set_double(long pv, double val); argument 142 final static native void pool_value_set_bool(long pv, shor argument 143 pool_value_set_string(long pv, String val) argument 144 pool_value_get_name(long pv) argument 145 pool_value_set_name(long pv, String val) argument 147 pool_value_free(long pv) argument [all...] |
/illumos-gate/usr/src/lib/libc/port/regex/ |
H A D | wordexp.c | 109 int pv[2]; /* pipe from shell stdout */ local 266 if (pipe(pv) < 0) { 280 error = posix_spawn_file_actions_adddup2(&fact, pv[1], 1); 281 if (error == 0 && pv[0] != 1) 282 error = posix_spawn_file_actions_addclose(&fact, pv[0]); 283 if (error == 0 && pv[1] != 1) 284 error = posix_spawn_file_actions_addclose(&fact, pv[1]); 294 (void) close(pv[1]); 296 (void) close(pv[0]); 301 if ((fp = fdopen(pv[ [all...] |
/illumos-gate/usr/src/uts/sparc/v9/syscall/ |
H A D | install_utrap.c | 40 utrap_handler_t *ov, *nv, *pv, *sv, *tmp; local 86 pv = sv = kmem_zalloc((UT_PRECISE_MAXTRAPS+1) * 90 kmem_free(pv, (UT_PRECISE_MAXTRAPS+1) * 153 utrap_handler_t *ov, *nvp, *pv, *sv, *tmp; local 230 pv = sv = kmem_zalloc((UT_PRECISE_MAXTRAPS+1) * 234 kmem_free(pv, (UT_PRECISE_MAXTRAPS+1) *
|
/illumos-gate/usr/src/cmd/format/ |
H A D | add_definition.c | 316 struct dk_map2 *pv; local 319 struct dkl_partition *pv; local 338 pv = part->vtoc.v_part; 340 for (i = 0; i < NDKMAP; i++, pp++, pv++, dv++) { 344 if (pv->p_tag != dv->p_tag || 345 pv->p_flag != dv->p_flag) { 347 (int)pv->p_tag); 352 (int)pv->p_flag);
|
/illumos-gate/usr/src/cmd/pools/pooladm/ |
H A D | pooladm.c | 75 pool_value_t *pv; local 82 if ((pv = pool_value_alloc()) == NULL || 84 pv) == POC_INVAL || 85 pool_value_get_string(pv, &tgt) != PO_SUCCESS) 92 pool_value_free(pv);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rexecd.c | 172 int pv[2], cc; local 367 (void) pipe(pv); 380 (void) close(f); (void) close(pv[1]); 383 FD_SET(pv[0], &readfrom); 384 (void) ioctl(pv[0], FIONBIO, (char *)&one); 388 if (select(MAXFD(s, pv[0])+1, &ready, NULL, 399 if (FD_ISSET(pv[0], &ready)) { 400 cc = read(pv[0], buf, sizeof (buf)); 403 FD_CLR(pv[0], &readfrom); 408 FD_ISSET(pv[ [all...] |
/illumos-gate/usr/src/cmd/avs/dsstat/ |
H A D | common.c | 181 uint32_t *pv, *cv; local 183 pv = kstat_value(pksp, name); 186 return (u32_delta(*pv, *cv));
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | suid_exec.c | 367 int pv[2]; local 395 if(pipe(pv) < 0) 400 close(pv[1]); 407 read(pv[0],pv,1); /* wait for clone to close pipe */ 447 close(pv[0]); 449 if(pv[1] != FDSYNC) 452 if(fcntl(pv[1],F_DUPFD,FDSYNC) != FDSYNC)
|
H A D | args.c | 782 static int arg_pipe(register int pv[]) argument 785 if(pipe(fd)<0 || (pv[0]=fd[0])<0 || (pv[1]=fd[1])<0) 787 pv[0] = sh_iomovefd(pv[0]); 788 pv[1] = sh_iomovefd(pv[1]); 789 sh.fdstatus[pv[0]] = IONOSEEK|IOREAD; 790 sh.fdstatus[pv[1]] = IONOSEEK|IOWRITE; 791 sh_subsavefd(pv[ 801 int monitor, fd, pv[2]; local [all...] |
H A D | io.c | 803 int sh_pipe(register int pv[]) argument 806 if(pipe(fd)<0 || (pv[0]=fd[0])<0 || (pv[1]=fd[1])<0) 808 pv[0] = sh_iomovefd(pv[0]); 809 pv[1] = sh_iomovefd(pv[1]); 810 sh.fdstatus[pv[0]] = IONOSEEK|IOREAD; 811 sh.fdstatus[pv[1]] = IONOSEEK|IOWRITE; 812 sh_subsavefd(pv[ 902 sh_pclose(register int pv[]) argument [all...] |
/illumos-gate/usr/src/cmd/pools/poolstat/ |
H A D | poolstat.c | 504 double pv; local 514 pv = v; 518 pv = (double)v / KILO; 521 pv = (double)v / KILO; 524 pv = (double)v / KILO; 527 pv = (double)v / MEGA; 530 pv = (double)v / MEGA; 533 pv = (double)v / MEGA; 536 pv = (double)v / GIGA; 539 pv [all...] |
/illumos-gate/usr/src/lib/librstp/common/ |
H A D | stpm.c | 182 register void* pv; local 187 pv = (void*) stater->next; 189 this->machines = stater = (STATE_MACH_T*) pv; 193 pv = (void*) port->next; 195 this->ports = port = (PORT_T*) pv;
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/ |
H A D | sym_hds.c | 150 unsigned char pv; local 171 pv = ASYM_ACTIVE_ACTIVE; 178 pv = SYM_ACTIVE_ACTIVE; 193 *ctprivp = kmem_alloc(sizeof (pv), 197 *((unsigned char *)*ctprivp) = pv;
|
/illumos-gate/usr/src/cmd/mdb/common/modules/dtrace/ |
H A D | dof.c | 834 dof_provider_t pv; local 844 if (mdb_vread(&pv, sz, addr + sec->dofs_offset) != sz) { 849 sz = dofs[pv.dofpv_strtab].dofs_size; 852 dofs[pv.dofpv_strtab].dofs_offset) != sz) { 858 strtab + pv.dofpv_name); 860 sz = dofs[pv.dofpv_prargs].dofs_size; 864 dofs[pv.dofpv_prargs].dofs_offset) != sz) { 870 sz = dofs[pv.dofpv_proffs].dofs_size; 872 if (mdb_vread(offs, sz, addr + dofs[pv.dofpv_proffs].dofs_offset) 880 pv [all...] |
/illumos-gate/usr/src/cmd/devprop/ |
H A D | devprop.c | 126 #define PER_TYPE(typ, func, val, incr, form, pv, sep) \ 131 (void) printf((form), pv); \
|
/illumos-gate/usr/src/cmd/pools/poolcfg/ |
H A D | poolcfg.y | 781 pool_value_t *pv = NULL; 791 if ((pv = pool_value_alloc()) == NULL) 794 if (pool_get_property(conf, pe, "system.name", pv) == 796 pool_value_get_string(pv, &tgt) != PO_SUCCESS) 804 if (pv != NULL) { 805 pool_value_free(pv); 934 pool_value_t *pv; 936 if ((pv = pool_value_alloc()) == NULL) { 940 pool_value_set_string(pv, cmd->cmd_tgt2); 941 if (pool_put_property(conf, pe, name, pv) ! [all...] |
/illumos-gate/usr/src/cmd/sh/ |
H A D | io.c | 120 chkpipe(int *pv) argument 122 if (pipe(pv) < 0 || pv[INPIPE] < 0 || pv[OTPIPE] < 0)
|
H A D | xec.c | 378 int pv[2]; local 380 chkpipe(pv); 381 if (execute(lstptr(t)->lstlef, xflags & XEC_NOSTOP, errorflg, pf1, pv) == 0) 382 execute(lstptr(t)->lstrit, xflags, errorflg, pv, pf2); 384 closepipe(pv);
|
H A D | macro.c | 497 int pv[2]; local 504 chkpipe(pv); 505 savpipe = pv[OTPIPE]; 506 initf(pv[INPIPE]); /* read from pipe */ 507 execute(t, XEC_NOSTOP, (int)(flags & errflg), 0, pv); 508 close(pv[OTPIPE]);
|