/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | getprotoent_r.c | 37 struct protoent *pe = getprotobyname(name); in getprotobyname_r() local 41 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0) in getprotobyname_r() 48 if (pe == NULL) in getprotobyname_r() 51 return (copy_protoent(pe, pptr, PROTO_R_COPY)); in getprotobyname_r() 57 struct protoent *pe = getprotobynumber(proto); in getprotobynumber_r() local 61 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0) in getprotobynumber_r() 68 if (pe == NULL) in getprotobynumber_r() 71 return (copy_protoent(pe, pptr, PROTO_R_COPY)); in getprotobynumber_r() 83 struct protoent *pe = getprotoent(); in getprotoent_r() local 87 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0) in getprotoent_r() [all …]
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPUtils.c | 558 slp_prop_entry_t *pe, **pe2; in SLPSetProperty() local 566 if (!(pe = malloc(sizeof (*pe)))) { in SLPSetProperty() 572 if (!(pe->key = strdup(pcName))) { in SLPSetProperty() 573 free(pe); in SLPSetProperty() 578 if (!(pe->val = strdup(pcValue))) { in SLPSetProperty() 579 free((void *) pe->key); in SLPSetProperty() 580 free(pe); in SLPSetProperty() 587 pe2 = slp_tsearch((void *) pe, &slp_props, compare_props); in SLPSetProperty() 588 if (pe != *pe2) { in SLPSetProperty() 591 (*pe2)->val = pe->val; in SLPSetProperty() [all …]
|
/illumos-gate/usr/src/cmd/sgs/m4/common/ |
H A D | m4y_xpg4.y | 87 extern wchar_t *pe; 95 while (*pe == ' ' || *pe == '\t' || *pe == '\n') in yylex() 96 pe++; in yylex() 97 switch (*pe) { in yylex() 107 return (*pe++); in yylex() 127 if (*pe == '0') { in yylex() 128 if (*++pe == 'x' || *pe == 'X') { in yylex() 130 ++pe; in yylex() 139 c = *pe; in yylex() 151 ++pe; in yylex() [all …]
|
H A D | m4y.y | 83 extern wchar_t *pe; 89 while (*pe == ' ' || *pe == '\t' || *pe == '\n') in yylex() 90 pe++; in yylex() 91 switch (*pe) { in yylex() 101 return (*pe++); in yylex() 121 if (*pe == '0') { in yylex() 122 if (*++pe == 'x' || *pe == 'X') { in yylex() 124 ++pe; in yylex() 133 c = *pe; in yylex() 145 ++pe; in yylex() [all …]
|
/illumos-gate/usr/src/lib/libpool/common/ |
H A D | pool.c | 262 prop_buf_build_cb(pool_conf_t *UNUSED, pool_elem_t *pe, const char *name, in prop_buf_build_cb() argument 278 strcmp(property_name_minus_ns(pe, name), c_name) == 0) in prop_buf_build_cb() 328 pool_base_info(const pool_elem_t *pe, char_buf_t *cb, int deep) in pool_base_info() argument 337 pool_conf_t *conf = TO_CONF(pe); in pool_base_info() 348 (void) pool_base_info(pe, cb, deep); in pool_base_info() 356 pool_elem_class_string(pe)) == PO_FAIL) { in pool_base_info() 360 if (pool_get_ns_property(pe, c_name, &val) == POC_STRING) { in pool_base_info() 370 if (pool_walk_properties(conf, (pool_elem_t *)pe, cb, in pool_base_info() 379 if (pe->pe_class == PEC_POOL) { in pool_base_info() 384 if ((rs = pool_query_pool_resources(conf, pool_elem_pool(pe), in pool_base_info() [all …]
|
H A D | pool_commit.c | 240 commit_delete(pool_elem_t *pe) in commit_delete() argument 246 if (elem_is_tmp(pe)) in commit_delete() 249 switch (pool_elem_class(pe)) { in commit_delete() 253 pool = pool_elem_pool(pe); in commit_delete() 254 ret = pool_destroy(TO_CONF(pe), pool); in commit_delete() 258 res = pool_elem_res(pe); in commit_delete() 259 ret = pool_resource_destroy(TO_CONF(pe), res); in commit_delete() 465 process_elem_lt(pool_elem_t *pe, pool_conf_t *dyn) in process_elem_lt() argument 467 if (pool_elem_class(pe) == PEC_COMP) { in process_elem_lt() 468 if (pool_component_destroy(pool_elem_comp(pe)) == PO_FAIL) { in process_elem_lt() [all …]
|
H A D | pool_kernel.c | 876 prop_build_cb(pool_conf_t *UNUSED, pool_elem_t *pe, const char *name, in prop_build_cb() argument 881 return (pool_knl_put_xml_property((pool_elem_t *)pe, info->ktx_node, in prop_build_cb() 893 pool_knl_put_xml_property(pool_elem_t *pe, xmlNodePtr node, const char *name, in pool_knl_put_xml_property() argument 905 if (is_ns_property(pe, name) != NULL) { /* in ns */ in pool_knl_put_xml_property() 907 BAD_CAST property_name_minus_ns(pe, name), val) == PO_FAIL) in pool_knl_put_xml_property() 1598 pool_elem_t *pe; in pool_knl_elem_wrap() local 1634 pe = TO_ELEM(elem); in pool_knl_elem_wrap() 1635 pe->pe_conf = conf; in pool_knl_elem_wrap() 1636 pe->pe_class = class; in pool_knl_elem_wrap() 1637 pe->pe_resource_class = res_class; in pool_knl_elem_wrap() [all …]
|
H A D | pool_internal.c | 1169 get_default_elem(const pool_elem_t *pe) in get_default_elem() argument 1181 if (set_char_buf(cb, "%s.default", pool_elem_class_string(pe)) != in get_default_elem() 1193 if ((rs = pool_exec_query(TO_CONF(pe), NULL, NULL, in get_default_elem() 1194 PEC_QRY_ELEM(pe), props)) == NULL) { in get_default_elem() 1260 pool_elem_class_string(const pool_elem_t *pe) in pool_elem_class_string() argument 1262 switch (pool_elem_class(pe)) { in pool_elem_class_string() 1265 return (pool_elem_class_name[pool_elem_class(pe)]); in pool_elem_class_string() 1269 [pool_resource_elem_class(pe)]); in pool_elem_class_string() 1272 [pool_component_elem_class(pe)]); in pool_elem_class_string() 1434 pool_elem_system(const pool_elem_t *pe) in pool_elem_system() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/chxge/ |
H A D | glue.c | 174 struct pe_reg *pe; in pe_ioctl() local 201 pe = (struct pe_reg *)dmp->b_rptr; in pe_ioctl() 209 if ((dmp->b_wptr - dmp->b_rptr) != sizeof (*pe)) { in pe_ioctl() 215 pe->addr &= (uint32_t)~3; in pe_ioctl() 217 pe->pe_mask32 = 0xFFFFFFFF; in pe_ioctl() 219 if (pe->addr == 0x950) in pe_ioctl() 220 pe->pe_reg_val = reg = t1_sge_get_ptimeout(chp); in pe_ioctl() 222 pe->pe_reg_val = reg = t1_read_reg_4(chp, pe->addr); in pe_ioctl() 225 iocp->ioc_count = sizeof (*pe); in pe_ioctl() 231 if ((dmp->b_wptr - dmp->b_rptr) != sizeof (*pe)) { in pe_ioctl() [all …]
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | faults.c | 38 register char *ptr, *pe; in shortenReason() local 47 pe = "PrinterError:"; in shortenReason() 48 peLen = strlen(pe); in shortenReason() 49 if (strncmp(reason,pe,peLen) == 0) in shortenReason() 55 pe = reason + strlen(reason) -1; in shortenReason() 56 pe = reason; in shortenReason() 57 while (pe = strchr(pe,'\n')) in shortenReason() 58 *pe = ' '; in shortenReason() 60 pe = reason + strlen(reason) -1; in shortenReason() 61 while ((pe > reason) && (*pe == ' ')) { in shortenReason() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/portfs/ |
H A D | file_assoc.c | 101 port_event_t pe; in fa_run_test() local 168 bzero(&pe, sizeof (pe)); in fa_run_test() 170 ret = port_getn(portfd, &pe, 1, &nget, &to); in fa_run_test() 183 "0x%x\n", pe.portev_events, pe.portev_source); in fa_run_test() 201 if (pe.portev_source != PORT_SOURCE_FILE) { in fa_run_test() 203 "0x%x\n", pe.portev_source, PORT_SOURCE_FILE); in fa_run_test() 207 if (pe.portev_events != FILE_MODIFIED) { in fa_run_test() 209 "0x%x\n", pe.portev_events, FILE_MODIFIED); in fa_run_test() 213 if ((uintptr_t)pe.portev_user != fa_user) { in fa_run_test() 215 "0x%lx\n", pe.portev_user, fa_user); in fa_run_test()
|
/illumos-gate/usr/src/test/os-tests/tests/uccid/ |
H A D | txn-pollerr.c | 40 port_event_t pe; in main() local 79 if (port_get(port, &pe, &to) != 0) { in main() 83 VERIFY3S(pe.portev_source, ==, PORT_SOURCE_FD); in main() 84 VERIFY3S(pe.portev_object, ==, fd); in main() 85 VERIFY3S(pe.portev_events & POLLERR, !=, 0); in main()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nss_dbdefs.c | 401 _priv_execattr *pe; in nss_pack_key2str() local 552 pe = (_priv_execattr *)(arg->key.attrp); in nss_pack_key2str() 553 if (pe == NULL) in nss_pack_key2str() 563 if (pe->name != NULL) in nss_pack_key2str() 564 len2 = strlen(pe->name) + 1; in nss_pack_key2str() 565 if (pe->type != NULL) in nss_pack_key2str() 566 len3 = strlen(pe->type) + 1; in nss_pack_key2str() 567 if (pe->id != NULL) in nss_pack_key2str() 568 len4 = strlen(pe->id) + 1; in nss_pack_key2str() 569 if (pe->policy != NULL) in nss_pack_key2str() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | ocfile.c | 444 char *pe; in swapcfile() local 477 pe = vfpGetCurrCharPtr(*a_cfTmpVfp); /* last char in contents file */ in swapcfile() 479 pl = pe; /* last match is last char in contents file */ in swapcfile() 483 while ((pe > ps) && ((*pe == '\n') || (*pe == '\0'))) { in swapcfile() 484 pe--; in swapcfile() 489 while (pe > ps) { in swapcfile() 490 if (*pe != '\n') { in swapcfile() 492 pl = pe--; in swapcfile() 500 pe--; in swapcfile()
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | usage.c | 564 clear_pe(net_plot_entry_t *pe, int entries, int *pentries) in clear_pe() argument 569 pe[count].net_pe_totbytes = 0; in clear_pe() 570 pe[count].net_pe_totibytes = 0; in clear_pe() 571 pe[count].net_pe_totobytes = 0; in clear_pe() 572 pe[count].net_pe_tottime = 0; in clear_pe() 579 update_pe(net_plot_entry_t *pe, net_stat_t *nns, int nentries, in update_pe() argument 585 if (strcmp(pe[count].net_pe_name, nns->net_stat_name) == 0) in update_pe() 591 if (pe[count].net_pe_totbytes == 0) in update_pe() 592 pe[count].net_pe_lasttime = lasttime; in update_pe() 594 pe[count].net_pe_totbytes += nns->net_stat_ibytes + in update_pe() [all …]
|
/illumos-gate/usr/src/lib/libc/port/fp/ |
H A D | __flt_decim.c | 216 __arint_set_n(double *x, int nrx, int *pe) in __arint_set_n() argument 229 *pe = 0; in __arint_set_n() 231 *pe = 1; in __arint_set_n() 233 *pe = 2; in __arint_set_n() 238 *pe = (*x == halfdec)? 2 : 1; in __arint_set_n() 240 *pe = 1; in __arint_set_n() 246 *pe = (rx == *x)? 0 : 1; in __arint_set_n() 251 *pe = (nrx * twom53 * *x < half - rmx)? 1 : 2; in __arint_set_n()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | expand.c | 340 char *pe, *pm, *pl; in execbrc() local 350 for (pe = ++p; *pe; pe++) in execbrc() 351 switch (*pe) { in execbrc() 364 for (pe++; *pe && *pe != ']'; pe++) in execbrc() 366 if (!*pe) in execbrc() 371 if (brclev || !*pe) { in execbrc() 375 for (pl = pm = p; pm <= pe; pm++) in execbrc() 395 if (lm + strlen(pl) + strlen(pe + 1) >= in execbrc() 401 strcat(restbuf, pe + 1); in execbrc()
|
/illumos-gate/usr/src/cmd/checknr/ |
H A D | checknr.c | 163 static void pe(int lineno); 294 pe(lineno); in process() 301 pe(lineno); in process() 339 pe(lineno); in process() 356 pe(lineno); in process() 382 pe(stk[i].lno); in complain() 474 pe(stk[j+1].lno); in nomatch() 487 pe(lineno); in nomatch() 500 pe(int lineno) in pe() function 518 pe(lineno); in checkknown() [all …]
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | idtest.c | 32 PE pe; in main() local 63 while ( (pe = ps2pe( psin )) != NULLPE ) { in main() 64 pe2pl( pserr, pe ); in main() 65 pe2ps( psout, pe ); in main()
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | base_inlines.h | 42 __mul_set(double x, double y, int *pe) in __mul_set() argument 54 : "=&e" (__result), "=m" (*pe), "=r" (__fsr), "=m" (*__addr) in __mul_set() 62 __div_set(double x, double y, int *pe) in __div_set() argument 74 : "=&e" (__result), "=m" (*pe), "=r" (__fsr), "=m" (*__addr) in __div_set()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | glob.c | 299 register char *pe, *pm, *pl; in execbrc() local 310 for (pe = ++p; *pe; pe += len) { in execbrc() 311 if ((len = mblen(pe, MB_CUR_MAX)) <= 0) in execbrc() 314 switch (*pe) { in execbrc() 327 for (pe++; *pe && *pe != ']'; pe += len) { in execbrc() 328 if ((len = mblen(pe, MB_CUR_MAX)) <= 0) in execbrc() 337 for (pl = pm = p; pm <= pe; pm += len) { in execbrc() 362 (void) strcat(restbuf, pe + 1); in execbrc()
|
/illumos-gate/usr/src/lib/libzutil/common/ |
H A D | zutil_import.c | 297 pool_entry_t *pe; in add_config() local 349 for (pe = pl->pools; pe != NULL; pe = pe->pe_next) { in add_config() 350 if (pe->pe_guid == pool_guid) in add_config() 354 if (pe == NULL) { in add_config() 355 if ((pe = zutil_alloc(hdl, sizeof (pool_entry_t))) == NULL) { in add_config() 358 pe->pe_guid = pool_guid; in add_config() 359 pe->pe_next = pl->pools; in add_config() 360 pl->pools = pe; in add_config() 367 for (ve = pe->pe_vdevs; ve != NULL; ve = ve->ve_next) { in add_config() 377 ve->ve_next = pe->pe_vdevs; in add_config() [all …]
|
/illumos-gate/usr/src/cmd/oamuser/user/ |
H A D | userdefs.c | 73 #define FIELD(up, pe, type) (*(type *)((char *)(up) + (pe)->off)) argument 169 const parsent_t *pe; in getusrdef() local 191 pe = scan(&ptr); in getusrdef() 193 if (pe != NULL) { in getusrdef() 194 switch (pe->type) { in getusrdef() 196 FIELD(&defaults, pe, int) = in getusrdef() 200 FIELD(&defaults, pe, projid_t) = in getusrdef() 204 FIELD(&defaults, pe, char *) = dup_to_nl(ptr); in getusrdef()
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | ratoi.c | 17 char *pe; local 19 i = (int)strtol(ps, &pe, 0); 20 if (*pe != '\0' || i < min || i > max)
|
/illumos-gate/usr/src/lib/iconv_modules/euro/utils/gentbl/ |
H A D | rename | 27 ren=`echo $i | perl -pe 's:%:_:'` 29 perl -i -pe 's:License"\). :License").:' $ren 33 ren=`echo $i | perl -pe 's:%:_: ; s:btbl:tbl: ; s:ibm:IBM-:'`
|