/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | dumpfstab.c | 92 addvfstab(tablename, pm) in addvfstab() argument 94 struct pmntent *pm; 101 assert(((mnttable == NULL) && (pm == NULL)) || (pm != NULL)); 131 mnttable = pm = (struct pmntent *)xmalloc(sizeof (*pm)); 134 pm->pm_next = (struct pmntent *)xmalloc(sizeof (*pm)); 135 pm = pm->pm_next; 137 pm->pm_mnt = mnt; 138 pm->pm_next = (struct pmntent *)0; 160 return (pm); 180 struct pmntent *pm = (struct pmntent *)0; in mnttabread() local [all …]
|
/illumos-gate/usr/src/lib/libppt/common/ |
H A D | libppt.c | 295 ppt_match_t *pm; in get_matches() local 307 if ((pm = malloc(sizeof (*pm))) == NULL) { in get_matches() 313 bzero(pm, sizeof (*pm)); in get_matches() 315 if (sscanf(line, "pciex%4s,%4s", &pm->pm_vendor, in get_matches() 316 &pm->pm_device) == 2 || in get_matches() 317 sscanf(line, "pci%4s,%4s", &pm->pm_vendor, in get_matches() 318 &pm->pm_device) == 2 || in get_matches() 319 sscanf(line, "pciex%4s", &pm->pm_vendor) == 1 || in get_matches() 320 sscanf(line, "pci%4s", &pm->pm_vendor) == 1) { in get_matches() 321 list_insert_tail(listp, pm); in get_matches() [all …]
|
/illumos-gate/usr/src/lib/libc/port/fp/ |
H A D | __flt_decim.c | 263 __fast_double_to_decimal(double *dd, decimal_mode *pm, decimal_record *pd, in __fast_double_to_decimal() argument 270 if (pm->rd != fp_nearest) in __fast_double_to_decimal() 273 if (pm->df == fixed_form) { in __fast_double_to_decimal() 275 if (pm->ndigits < 0 || pm->ndigits > __TBL_TENS_MAX) in __fast_double_to_decimal() 280 if (pm->ndigits) { in __fast_double_to_decimal() 282 if (pm->ndigits > __TBL_TENS_EXACT) { in __fast_double_to_decimal() 283 dds *= __tbl_tens[pm->ndigits]; in __fast_double_to_decimal() 286 dds = __mul_set(dds, __tbl_tens[pm->ndigits], in __fast_double_to_decimal() 302 is = (pm->ndigits > 0)? pm->ndigits : 1; in __fast_double_to_decimal() 308 is = __double_to_digits(dds, pd->ds, pm->ndigits); in __fast_double_to_decimal() [all …]
|
H A D | double_decim.c | 175 __big_decimal_to_string(_big_float *pf, int sticky, decimal_mode *pm, in __big_decimal_to_string() argument 202 if (pm->df == fixed_form) { in __big_decimal_to_string() 204 er = -pm->ndigits; in __big_decimal_to_string() 224 elast = er = e - pm->ndigits + 1; in __big_decimal_to_string() 288 switch (pm->rd) { in __big_decimal_to_string() 317 if (pm->df == floating_form) { in __big_decimal_to_string() 338 __bigfloat_to_decimal(_big_float *bf, decimal_mode *pm, decimal_record *pd, in __bigfloat_to_decimal() argument 349 if (pm->ndigits >= DECIMAL_STRING_LENGTH || pm->ndigits <= in __bigfloat_to_decimal() 350 ((pm->df == floating_form)? 0 : -DECIMAL_STRING_LENGTH)) { in __bigfloat_to_decimal() 359 if (pm->df == fixed_form) { in __bigfloat_to_decimal() [all …]
|
H A D | decimal_bin.c | 332 __fast_decimal_to_single(single *px, decimal_mode *pm, decimal_record *pd, in __fast_decimal_to_single() argument 340 if (pm->rd != fp_nearest) in __fast_decimal_to_single() 431 __fast_decimal_to_double(double *px, decimal_mode *pm, decimal_record *pd, in __fast_decimal_to_double() argument 438 if (pm->rd != fp_nearest || pd->ndigits > 18 || pd->exponent in __fast_decimal_to_double() 493 decimal_to_single(single *px, decimal_mode *pm, decimal_record *pd, in decimal_to_single() argument 553 if (__fast_decimal_to_single(px, pm, pd, &ef) == 1) { in decimal_to_single() 561 __pack_single(&u, px, pm->rd, &ef); in decimal_to_single() 568 decimal_to_double(double *px, decimal_mode *pm, decimal_record *pd, in decimal_to_double() argument 632 if (__fast_decimal_to_double(px, pm, pd, &ef) == 1) { in decimal_to_double() 640 __pack_double(&u, px, pm->rd, &ef); in decimal_to_double() [all …]
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | putdgrp.c | 600 struct member *pm, *qm, *rm; /* Tmp ptrs to struct member */ in _adddgrptabrec() local 634 if ((pm = ent->membership) != NULL) { in _adddgrptabrec() 637 while (pm->next) pm = pm->next; in _adddgrptabrec() 640 pm->next = new->membership; in _adddgrptabrec() 643 for (pm = ent->membership; pm; pm = pm->next) { in _adddgrptabrec() 644 qm = pm; in _adddgrptabrec() 646 if (strcmp(pm->name, rm->name) == 0) { in _adddgrptabrec() 796 struct member *pm; /* Ptr to member being examined */ in _rmdgrpmems() local 835 pm = ent->membership; in _rmdgrpmems() 837 while (pm && !found) { in _rmdgrpmems() [all …]
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 60 static prmap_t *pm = NULL; /* prmap_t array */ variable 82 if (pm != NULL) in __fex_sym_init() 83 free(pm); in __fex_sym_init() 84 pm = lpm = NULL; in __fex_sym_init() 89 (pm = (prmap_t*)malloc(statbuf.st_size)) == NULL) in __fex_sym_init() 93 free(pm); in __fex_sym_init() 94 pm = NULL; in __fex_sym_init() 97 n = read(i, pm, statbuf.st_size); in __fex_sym_init() 101 free(pm); in __fex_sym_init() 102 pm = NULL; in __fex_sym_init() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/filters/ |
H A D | insfilter.c | 690 register PARM *pm; local 699 for (fail = 0, pm = parms; !fail && pm->keyword; pm++) { 701 if (!(pm->flags & X_MUST)) 710 if (STREQU(pt->keyword, pm->keyword) && 711 pt->result && MATCH(pt, pm)) 804 register PARM *pm; local 819 for (pm = parms; pm->keyword; pm++) { 821 if ((pm->flags & X_USED) || !*(pm->pvalue)) 826 if (!STREQU(pt->keyword, pm->keyword) || !pt->result) 834 pm->pvalue = &(pf->inputp->name); [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | glob.c | 299 register char *pe, *pm, *pl; in execbrc() local 337 for (pl = pm = p; pm <= pe; pm += len) { in execbrc() 338 if ((len = mblen(pm, MB_CUR_MAX)) <= 0) in execbrc() 341 switch (*pm & (QUOTE|TRIM)) { in execbrc() 359 savec = *pm; in execbrc() 360 *pm = 0; in execbrc() 363 *pm = savec; in execbrc() 372 pl = pm + 1; in execbrc() 378 for (pm++; *pm && *pm != ']'; pm += len) { in execbrc() 379 if ((len = mblen(pm, MB_CUR_MAX)) <= 0) in execbrc() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelSlotToken.c | 228 crypto_get_provider_mechanisms_t *pm, tmp; in C_GetMechanismList() local 269 pm = malloc(alloc_bytes); in C_GetMechanismList() 270 if (pm == NULL) in C_GetMechanismList() 273 pm->pm_provider_id = provider_id; in C_GetMechanismList() 274 pm->pm_count = tmp.pm_count; in C_GetMechanismList() 276 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_MECHANISMS, pm)) < 0) { in C_GetMechanismList() 283 rv = crypto2pkcs11_error_number(pm->pm_return_value); in C_GetMechanismList() 289 for (i = 0; i < pm->pm_count; i++) { in C_GetMechanismList() 291 bcopy(&pm->pm_list[i][0], mechanism_info.mi_mechanism_name, in C_GetMechanismList() 335 if (strcmp(&pm->pm_list[i][0], "random") != 0) { in C_GetMechanismList() [all …]
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | runtime-perl-module-sun-solaris.p5m | 28 <transform file path=.*\.pm -> default mode 0444> 43 $(BUILDPERL32)file path=usr/perl5/$(PERL_VERSION)/lib/$(PERL_ARCH)/Sun/Solaris/Intrs.pm 44 $(BUILDPERL32)file path=usr/perl5/$(PERL_VERSION)/lib/$(PERL_ARCH)/Sun/Solaris/Kstat.pm 45 $(BUILDPERL32)file path=usr/perl5/$(PERL_VERSION)/lib/$(PERL_ARCH)/Sun/Solaris/Lgrp.pm 46 $(BUILDPERL32)file path=usr/perl5/$(PERL_VERSION)/lib/$(PERL_ARCH)/Sun/Solaris/Project.pm 47 $(BUILDPERL32)file path=usr/perl5/$(PERL_VERSION)/lib/$(PERL_ARCH)/Sun/Solaris/Task.pm 48 $(BUILDPERL32)file path=usr/perl5/$(PERL_VERSION)/lib/$(PERL_ARCH)/Sun/Solaris/Utils.pm 67 $(BUILDPERL64)file path=usr/perl5/$(PERL_VERSION)/lib/$(PERL_ARCH64)/Sun/Solaris/Intrs.pm 68 $(BUILDPERL64)file path=usr/perl5/$(PERL_VERSION)/lib/$(PERL_ARCH64)/Sun/Solaris/Kstat.pm 69 $(BUILDPERL64)file path=usr/perl5/$(PERL_VERSION)/lib/$(PERL_ARCH64)/Sun/Solaris/Lgrp.pm [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | expand.c | 340 char *pe, *pm, *pl; in execbrc() local 375 for (pl = pm = p; pm <= pe; pm++) in execbrc() 376 switch (*pm & (QUOTE|TRIM)) { in execbrc() 393 savec = *pm; in execbrc() 394 *pm = 0; in execbrc() 402 *pm = savec; in execbrc() 411 pl = pm + 1; in execbrc() 415 for (pm++; *pm && *pm != ']'; pm++) in execbrc() 417 if (!*pm) in execbrc()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | timetype.sh | 56 tt[3]=2pm 65 tt[4]=5pm 71 tt[2pm]='2008-08-11+00:00:00,2pm' 75 [[ ${tt[2pm]} == *+14:00 ]] || err_exit "tt[2pm] failed -- expected 14:00, got '${tt[2pm]##*+}'" 78 (( (tt[2pm] - tt[today] ) == 14*3600 )) || err_exit "tt[2pm]-tt[today] failed -- expected 14*3600, …
|
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | mutex-16200.c | 152 pthread_mutex_t pm; in mutex_test_thr() local 154 VERIFY0(pthread_mutex_init(&pm, attrp)); in mutex_test_thr() 155 ret = pthread_mutex_unlock(&pm); in mutex_test_thr() 168 pthread_mutex_t pm; in mutex_test_thr() local 170 VERIFY0(pthread_mutex_init(&pm, attrp)); in mutex_test_thr() 171 VERIFY0(pthread_mutex_lock(&pm)); in mutex_test_thr() 172 ret = pthread_mutex_lock(&pm); in mutex_test_thr()
|
/illumos-gate/usr/src/cmd/localedef/ |
H A D | time.c | 123 } else if (tm.pm == NULL) { in add_time_list() 124 tm.pm = str; in add_time_list() 162 if (tm.pm != NULL) in check_time_list() 208 free((char *)tm.pm); in reset_time_list() 209 tm.pm = NULL; in reset_time_list() 256 (putl_category(tm.pm, f) == EOF) || in dump_time()
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.glob.c | 288 tchar *pe, *pm, *pl; in execbrc() local 321 for (pl = pm = p; pm <= pe; pm++) in execbrc() 322 switch (*pm & (QUOTE|TRIM)) { in execbrc() 339 savec = *pm; in execbrc() 340 *pm = 0; in execbrc() 343 *pm = savec; in execbrc() 352 pl = pm + 1; in execbrc() 356 for (pm++; *pm && *pm != ']'; pm++) in execbrc() 358 if (!*pm) in execbrc()
|
/illumos-gate/usr/src/cmd/rpcbind/ |
H A D | rpcb_check.c | 124 find_procname(rpcproc_t procnum, boolean_t pm) in find_procname() argument 129 if (pm) { in find_procname() 149 boolean_t pm) in rpcb_log() argument 177 if ((procname = find_procname(proc, pm)) == NULL) { in rpcb_log() 180 verdict ? "" : "refused ", client, pm ? "pmap" : "rpcb", in rpcb_log()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/lmrc/ |
H A D | lmrc_phys.c | 66 mfi_pd_map_t *pm; in lmrc_get_pdmap() local 80 pm = mfi->mfi_data_dma.ld_buf; in lmrc_get_pdmap() 82 if (pm->pm_count > MFI_MAX_PHYSICAL_DRIVES) { in lmrc_get_pdmap() 84 "!FW reports too many PDs: %d", pm->pm_count); in lmrc_get_pdmap() 89 pdmap_sz = sizeof (mfi_pd_map_t) + pm->pm_count * sizeof (mfi_pd_cfg_t); in lmrc_get_pdmap() 91 bcopy(pm, *pdmap, pdmap_sz); in lmrc_get_pdmap() 142 mfi_pd_map_t *pm = dma->ld_buf; in lmrc_complete_sync_pdmap() local 170 bcopy(pm, lmrc->l_pdmap, pdmap_sz); in lmrc_complete_sync_pdmap() 172 bzero(pm, pdmap_sz); in lmrc_complete_sync_pdmap()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_prop.c | 125 prop_method_get(tnode_t *node, topo_propval_t *pv, topo_propmethod_t *pm, in prop_method_get() argument 134 nvlist_add_nvlist(args, TOPO_PROP_ARGS, pm->tpm_args) != 0) in prop_method_get() 151 if (topo_method_call(node, pm->tpm_name, pm->tpm_version, in prop_method_get() 799 topo_propmethod_t *pm = pv->tp_method; in topo_prop_setprop() local 806 ret = nvlist_add_nvlist(args, TOPO_PROP_ARGS, pm->tpm_args); in topo_prop_setprop() 832 ret = topo_method_call(node, pm->tpm_name, pm->tpm_version, in topo_prop_setprop() 854 register_methoderror(tnode_t *node, topo_propmethod_t *pm, int *errp, int l, in register_methoderror() argument 859 if (pm != NULL) { in register_methoderror() 860 if (pm->tpm_name != NULL) in register_methoderror() 861 topo_hdl_strfree(thp, pm->tpm_name); in register_methoderror() [all …]
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | audio_link.c | 121 #define COPYSUB(to, from, pm, pos) (void) strncpy(to, &from[pm[pos].rm_so], \ argument 122 pm[pos].rm_eo - pm[pos].rm_so); \ 123 to[pm[pos].rm_eo - pm[pos].rm_so] = 0;
|
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/usbftdi/ |
H A D | uftdi_dsd.c | 473 uftdi_pm_t *pm = uf->uf_pm; in uftdi_usb_power() local 478 if (!pm) in uftdi_usb_power() 486 if (USB_DEV_PWRSTATE_OK(pm->pm_pwr_states, level)) { in uftdi_usb_power() 489 level, pm->pm_pwr_states); in uftdi_usb_power() 497 if (pm->pm_raise_power && (level < (int)pm->pm_cur_power)) { in uftdi_usb_power() 1271 uftdi_pm_t *pm; in uftdi_create_pm_components() local 1280 pm = uf->uf_pm = kmem_zalloc(sizeof (*pm), KM_SLEEP); in uftdi_create_pm_components() 1282 pm->pm_pwr_states = (uint8_t)pwr_states; in uftdi_create_pm_components() 1283 pm->pm_cur_power = USB_DEV_OS_FULL_PWR; in uftdi_create_pm_components() 1284 pm->pm_wakeup_enabled = usb_handle_remote_wakeup(dip, in uftdi_create_pm_components() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/usbsprl/ |
H A D | pl2303_dsd.c | 470 pl2303_pm_t *pm = plp->pl_pm; in pl2303_usb_power() local 475 if (!pm) { in pl2303_usb_power() 484 if (USB_DEV_PWRSTATE_OK(pm->pm_pwr_states, level)) { in pl2303_usb_power() 487 level, pm->pm_pwr_states); in pl2303_usb_power() 496 if (pm->pm_raise_power && (level < (int)pm->pm_cur_power)) { in pl2303_usb_power() 1210 pl2303_pm_t *pm; in pl2303_create_pm_components() local 1220 pm = plp->pl_pm = kmem_zalloc(sizeof (pl2303_pm_t), KM_SLEEP); in pl2303_create_pm_components() 1222 pm->pm_pwr_states = (uint8_t)pwr_states; in pl2303_create_pm_components() 1223 pm->pm_cur_power = USB_DEV_OS_FULL_PWR; in pl2303_create_pm_components() 1224 pm->pm_wakeup_enabled = (usb_handle_remote_wakeup(dip, in pl2303_create_pm_components() [all …]
|
/illumos-gate/usr/src/lib/libc/port/regex/ |
H A D | glob.c | 326 const wcat_t *pe, *pm, *pl; in globexp2() local 330 for (lm = patbuf, pm = pattern; pm != ptr; *lm++ = *pm++) in globexp2() 340 for (pm = pe++; pe->w_wc != RBRACKET && in globexp2() 348 pe = pm; in globexp2() 362 for (i = 0, pl = pm = ptr; pm <= pe; pm++) { in globexp2() 363 switch (pm->w_wc) { in globexp2() 366 for (pl = pm++; pm->w_wc != RBRACKET && pm->w_wc != EOS; in globexp2() 367 pm++) in globexp2() 369 if (pm->w_wc == EOS) { in globexp2() 374 pm = pl; in globexp2() [all …]
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | sun4u_memlist.c | 82 struct sun4u_prom_memlist *pm = scratch_memlist; in fill_memlists() local 120 (void) prom_getprop(node, prop, (caddr_t)pm); in fill_memlists() 121 sort_reglist(pm, links); in fill_memlists() 122 al = reg_to_list(pm, links, old); in fill_memlists()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_solaris.c | 4156 emlxs_fca_port_manage(opaque_t fca_port_handle, fc_fca_pm_t *pm) in emlxs_fca_port_manage() argument 4169 switch (pm->pm_cmd_code) { in emlxs_fca_port_manage() 4181 bzero(pm->pm_data_buf, pm->pm_data_len); in emlxs_fca_port_manage() 4183 if (pm->pm_data_len < strlen(buffer) + 1) { in emlxs_fca_port_manage() 4189 (void) strncpy(pm->pm_data_buf, buffer, in emlxs_fca_port_manage() 4190 (pm->pm_data_len-1)); in emlxs_fca_port_manage() 4207 bzero(pm->pm_data_buf, pm->pm_data_len); in emlxs_fca_port_manage() 4209 if (pm->pm_data_len < strlen(buffer) + 1) { in emlxs_fca_port_manage() 4214 (void) strncpy(pm->pm_data_buf, buffer, in emlxs_fca_port_manage() 4215 (pm->pm_data_len-1)); in emlxs_fca_port_manage() [all …]
|