/illumos-gate/usr/src/lib/libcpc/common/ |
H A D | subr.c | 153 p->str = ""; in __cpc_strhash_alloc() 154 p->cur = NULL; in __cpc_strhash_alloc() 155 p->next = NULL; in __cpc_strhash_alloc() 157 return (p); in __cpc_strhash_alloc() 166 f = p; in __cpc_strhash_free() 167 p = p->next; in __cpc_strhash_free() 186 for (p = hash; p != NULL; p = p->next) { in __cpc_strhash_add() 191 if ((p = malloc(sizeof (*p))) == NULL) in __cpc_strhash_add() 194 p->str = key; in __cpc_strhash_add() 197 p->next = tmp; in __cpc_strhash_add() [all …]
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | rcfile.c | 234 for (p = SLIST_FIRST(&rcp->rf_sect); p; ) { in rc_close() 235 n = p; in rc_close() 236 p = SLIST_NEXT(p, rs_next); in rc_close() 281 if (p) in rc_addsect() 283 p = malloc(sizeof (*p)); in rc_addsect() 284 if (!p) in rc_addsect() 300 for (p = SLIST_FIRST(&rsp->rs_keys); p; ) { in rc_freesect() 301 n = p; in rc_freesect() 302 p = SLIST_NEXT(p, rk_next); in rc_freesect() 332 p = malloc(sizeof (*p)); in rc_sect_addkey() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | corectl.c | 241 proc_t *p; in corectl() local 388 if ((p = prfind((pid_t)arg2)) == NULL || p->p_stat == SIDL) { in corectl() 404 mutex_exit(&p->p_lock); in corectl() 435 if (!(p->p_flag & SSYS) && hasprocperm(p->p_cred, CRED())) { in set_one_proc_info() 465 proc_t *p; in set_proc_info() local 490 if ((p = prfind(pid)) == NULL || p->p_stat == SIDL) { in set_proc_info() 508 for (p = pgfind(pgid); p != NULL; p = p->p_pglink) { in set_proc_info() 538 proc_t *p = curproc; in set_core_defaults() local 551 mutex_enter(&p->p_lock); in set_core_defaults() 552 oldpath = p->p_corefile; in set_core_defaults() [all …]
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2map/ |
H A D | xlator.c | 271 char *p; in xlator_take_kvpair() local 300 if (p) { in xlator_take_kvpair() 301 while (p >= value && isspace(*p)) { in xlator_take_kvpair() 303 --p; in xlator_take_kvpair() 376 while (p >= value && isspace(*p)) { in xlator_take_kvpair() 378 --p; in xlator_take_kvpair() 419 while (p >= value && isspace(*p)) { in xlator_take_kvpair() 421 --p; in xlator_take_kvpair() 661 v = p; in getversion() 772 p = v; in version_sanity() [all …]
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcms.c | 446 if (p->tcm_comm[j] && p->tcm_comm[j] <= 037) in tenter() 482 if (p->pcm_comm[j] && p->pcm_comm[j] <= 037) in enter() 709 if(p->tcm_cpu == 0) p->tcm_cpu = 1; in tprint() 710 printf(" %6.2f", p->tcm_kcore/p->tcm_cpu); in tprint() 711 if(p->tcm_pc == 0) p->tcm_pc = 1; in tprint() 712 printf(" %7.2f", p->tcm_cpu/p->tcm_pc); in tprint() 715 printf(" %8.2f", p->tcm_cpu/p->tcm_real); in tprint() 790 if(p->pcm_cpu[hr] == 0) p->pcm_cpu[hr] = 1; in prnt() 792 if(p->pcm_pc[hr] == 0) p->pcm_pc[hr] = 1; in prnt() 793 printf(fmtmcpu, p->pcm_cpu[hr]/p->pcm_pc[hr]); in prnt() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/oam/ |
H A D | fmtmsg.c | 135 for (p = str; *p; ) { in wrap() 154 pw = p; in wrap() 174 len = pw - p; in wrap() 192 if (pw != p) { in wrap() 193 len = pw - p; in wrap() 199 len = ppw - p; in wrap() 219 if (*p == L'\r' || *p == L'\n') { in wrap() 220 while (*p == L'\r' || *p == L'\n') { in wrap() 223 p++; in wrap() 231 p++; in wrap() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | lcp.c | 373 p); 376 p = endp; 382 while (*p == ',' || *p == ' ') 383 ++p; 1270 INCPTR(p[1], p); \ 1564 p = next; 1855 prev = p; 2560 ++p; 2564 ++p; 2568 ++p; [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | glob.c | 304 for (lm = restbuf; *p != '{'; *lm += len, p += len) { in execbrc() 473 if (!*p) in amatch() 476 p++; in amatch() 523 Gmatch(s, p) in Gmatch() argument 552 p--; 558 if (!*p) 631 else if (eq(p, "{") || eq(p, "{}")) in rscan() 770 char *p; in ftp_fnmatch() local 784 p += i; in ftp_fnmatch() 788 p += i; in ftp_fnmatch() [all …]
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | gethostent.c | 147 p = instr; in __str2hostent() 156 for (; p < limit && (p = memchr(p, '\n', limit - p)); p++) in __str2hostent() 180 p = instr; in __str2hostent() 184 limit = memchr(p, '\n', lenstr - (p - instr)); in __str2hostent() 188 while (p < limit && isspace(*p)) in __str2hostent() 189 p++; in __str2hostent() 191 while (p < limit && !isspace(*p)) in __str2hostent() 192 p++; in __str2hostent() 238 while (p < limit && isspace(*p)) { in __str2hostent() 239 p++; in __str2hostent() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | alias.c | 272 for (p = spec; p != NULL; ) 276 while (isascii(*p) && isspace(*p)) 304 p = strpbrk(p, ALIAS_SPEC_SEPARATORS); 305 if (p != NULL && *p == SEPARATOR) 323 for (; *p != '\0'; p++) 669 while (p != NULL && p > line && p[-1] == '\\') 676 p = strchr(p, '\n'); 719 for (p = line; *p != '\0' && *p != ':' && *p != '\n'; p++) 739 while (isascii(*p) && isspace(*p)) 746 nlp = &p[strlen(p)]; [all …]
|
H A D | arpadate.c | 87 *q++ = *p++; 88 *q++ = *p++; 89 *q++ = *p++; 95 p++; 98 *q++ = *p++; 102 *q++ = *p++; 103 *q++ = *p++; 104 *q++ = *p++; 108 *q++ = *p++; 109 *q++ = *p++; [all …]
|
/illumos-gate/usr/src/cmd/troff/ |
H A D | n3.c | 130 p = *lp; 138 p = p->link; 152 for (p=contab; p < &contab[NM]; p++) in mrehash() 154 for (p=contab; p < &contab[NM]; p++) { in mrehash() 258 for (p = mhash[MHASH(i)]; p; p = p->link) 603 filep p; in rbf0() 622 filep p; in incoff() 624 p++; 667 p = nxf; 1005 char *p; in casepm() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regsubcomp.c | 67 regfree(p); in regsubflags() 129 regfree(p); in regsubcomp() 136 regfree(p); in regsubcomp() 152 regfree(p); in regsubcomp() 166 regfree(p); in regsubcomp() 179 regfree(p); in regsubcomp() 215 regfree(p); in regsubcomp() 322 regfree(p); in regsubcomp() 329 regfree(p); in regsubcomp() 347 regfree(p); in regsubcomp() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getpwnam_r.c | 217 char *q = p; in gettok() 220 if (p == 0) in gettok() 232 return (p); in gettok() 273 black_magic = (*p == '+' || *p == '-'); in str2passwd() 292 if (p == 0) { in str2passwd() 298 for (; *p != '\0'; p++) { /* age */ in str2passwd() 307 if (p == 0 || *p == '\0') { in str2passwd() 349 if (p == 0 || *p == '\0') { in str2passwd() 380 if (p == 0) { in str2passwd() 388 if (p == 0) { in str2passwd() [all …]
|
H A D | nsparse.c | 210 else if (*p != ' ' && *p != '\t') in _nsw_getoneconfig_v1() 213 p = spaceskip(p); in _nsw_getoneconfig_v1() 300 if (*p == '\0' || *p == '\n') { in _nsw_getoneconfig_v1() 307 if (*p != ' ' && *p != '\t') in _nsw_getoneconfig_v1() 397 else if (*p != ' ' && *p != '\t') in _nsw_getoneconfig() 400 p = spaceskip(p); in _nsw_getoneconfig() 461 if (*p == '\0' || *p == '\n') { in _nsw_getoneconfig() 467 if (*p != ' ' && *p != '\t') in _nsw_getoneconfig() 815 while (*p == ' ' || *p == '\t') in spaceskip() 840 p = spaceskip(p); in skip() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | klpd.c | 99 kmem_free(p, sizeof (*p)); in klpd_rele() 114 klpd_rele(p); in klpd_rele_next() 131 ASSERT(p->klpd_refp == NULL || *p->klpd_refp == p); in klpd_unlink() 134 *p->klpd_refp = p->klpd_next; in klpd_unlink() 137 p->klpd_next->klpd_refp = p->klpd_refp; in klpd_unlink() 174 *listp = p; in klpd_link() 409 for (p = klpd_list; p != NULL; ) { in klpd_call() 419 p = klpd_rele_next(p); in klpd_call() 424 p = p->klpd_next; in klpd_call() 583 for (p = klpd_list; p != NULL; p = p->klpd_next) { in klpd_unreg_dh() [all …]
|
H A D | session.c | 63 sess_hold(proc_t *p) in sess_hold() argument 67 p->p_sessp->s_ref++; in sess_hold() 127 proc_t *p = curproc; in tty_hold() local 136 sp = p->p_sessp; in tty_hold() 200 proc_t *p = curproc; in sess_create() local 220 pgexit(p); in sess_create() 226 old_sp = p->p_sessp; in sess_create() 227 p->p_sessp = sp; in sess_create() 229 pgjoin(p, p->p_pidp); in sess_create() 317 sp = p->p_sessp; in strctty() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_util.c | 109 (*p >= 0x20 && *p < 0x7F) ? *p : '.'); in hexdump_offset() 223 p += strspn(p, class); in strtrim() 260 p += strspn(p, class); in strstrip() 286 while (*p && isspace(*p)) in trim_whitespace() 830 for (p = sharename; *p != '\0'; p++) { in smb_name_validate_share() 862 for (p = name; *p != '\0'; p++) { in smb_name_validate_account() 894 for (p = domain; *p != '\0'; ++p) { in smb_name_validate_domain() 913 if (isalnum(*p) || *p == '-' || *p == '_') in smb_name_validate_domain() 956 for (p = name; *p != '\0'; ++p) { in smb_name_validate_nbdomain() 957 if (isalnum(*p) || *p == '-' || *p == '_') in smb_name_validate_nbdomain() [all …]
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | system-kernel.man9p.inc | 17 link path=usr/share/man/man9p/Nblock.9p target=size.9p 18 link path=usr/share/man/man9p/blksize.9p target=size.9p 20 link path=usr/share/man/man9p/ddi-no-autodetach.9p target=ddi-forceattach.9p 21 link path=usr/share/man/man9p/device-blksize.9p target=size.9p 22 link path=usr/share/man/man9p/device-nblocks.9p target=size.9p 25 target=inquiry-device-type.9p 27 target=inquiry-device-type.9p 28 link path=usr/share/man/man9p/inquiry-serial-no.9p target=inquiry-device-type.9p 29 link path=usr/share/man/man9p/inquiry-vendor-id.9p target=inquiry-device-type.9p 32 file path=usr/share/man/man9p/pm.9p [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmxfmt.c | 54 p++; in number() 58 p = w; in number() 63 p = 0; in number() 66 if (p > 0) in number() 67 p = -p; in number() 70 if (p < 0) in number() 71 p = -p; in number() 75 if (p > 0) in number() 275 p = "%Qf"; in tmxfmt() 306 p = "%QI"; in tmxfmt() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppop.c | 36 #define ppiskey(t,v,p) (p=t,v>=p->value&&value<=(p+elementsof(t)-2)->value) argument 96 s = (p + (value - p->value))->name; in ppkeyname() 422 if (!*p || stat((pathcanon(p, 0, 0), p), &st)) in ppop() 448 while (*p && *p != c) in ppop() 453 if (*p && *++p && *p != c) in ppop() 455 while (*p && *p != c) in ppop() 522 p = strdup(p); in ppop() 591 if (!*p || stat((pathcanon(p, 0, 0), p), &st)) in ppop() 1143 p = ppsetfile(p)->name; in ppop() 1476 while (*p == ' ' || *p == '\t') p++; in ppop() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | astconf.c | 418 …if ((!path || *path == *p && strlen(path) == (v - p - 1) && !memcmp(path, p, v - p - 1)) && strneq… in synthesize() 573 if (p[0] == 'u' && p[1] == 's' && p[2] == 'r' && p[3] == '/') in initialize() 574 for (p += 4; *p == '/'; p++); in initialize() 575 if (p[0] == 'b' && p[1] == 'i' && p[2] == 'n') in initialize() 577 for (p += 3; *p == '/'; p++); in initialize() 578 if (!*p || *p == ':') in initialize() 590 if (strneq(p, "bsd", 3) || strneq(p, "ucb", 3)) in initialize() 884 for (p = prefix; p < &prefix[prefix_elements]; p++) in lookup() 885 …e, p->name, p->length) && ((c = name[p->length] == '_' || name[p->length] == '(' || name[p->length… in lookup() 1025 , name, look->name, p->name, p->standard, p->section, prefix[p->call + CONF_call].name, p->op in print() [all …]
|
/illumos-gate/usr/src/cmd/hal/tools/ |
H A D | hal-device.c | 451 lh_prop_t *p; in process_property() local 479 p = calloc(1, sizeof *p); in process_property() 485 *prop = p; in process_property() 501 p->v.strlist_value = calloc(1, sizeof *p->v.strlist_value); in process_property() 505 p->v.strlist_value = realloc(p->v.strlist_value, (len + 2) * sizeof *p->v.strlist_value); in process_property() 536 free(p->key); in process_property() 537 free(p); in process_property() 540 *prop = p; in process_property() 548 lh_prop_t *p; in add_properties() local 554 for(p = prop; p; p = p->next) { in add_properties() [all …]
|
/illumos-gate/usr/src/ucbcmd/sed/ |
H A D | sed0.c | 225 if(p == 0) in fcomp() 580 p = rhsbuf; 586 p++; 589 *p = *q++; 590 if(*p > nbra + '0' && *p <= '9') 592 p++; 598 return(p); 615 p = lbuf; 670 *p = '\0'; 682 *p++ = t; [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_spnego/mech/ |
H A D | spnego_disp_status.c | 67 (void *) p); in get_error_message() 69 if (p) { in get_error_message() 89 gsserrmap *p; in save_error_string_nocopy() local 96 if (!p) { in save_error_string_nocopy() 97 p = malloc(sizeof(*p)); in save_error_string_nocopy() 103 free(p); in save_error_string_nocopy() 104 p = NULL; in save_error_string_nocopy() 110 free(p); in save_error_string_nocopy() 111 p = NULL; in save_error_string_nocopy() 120 free(p); in save_error_string_nocopy() [all …]
|