/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | fsutils.c | 40 char *p; in dos_to_dev() local 48 p[0] = '\0'; in dos_to_dev() 50 p[0] = ':'; in dos_to_dev() 59 char *p; in get_slice_name() local 167 if (++p->count == p->num) { in find_dos_drive_cb() 187 p.num = num; in find_dos_drive() 191 if (p.count == num) { in find_dos_drive() 232 p = &vtoc->v_part[i]; in vtoc_one_slice_entire_disk() 233 if (p->p_size == 0) { in vtoc_one_slice_entire_disk() 236 if ((p->p_tag != V_BACKUP) && ((p->p_tag != V_UNASSIGNED))) { in vtoc_one_slice_entire_disk() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppcall.c | 155 p = newof(p, char, n += MAXTOKEN, 0); in ppcall() 170 if (*p) in ppcall() 173 free(p); in ppcall() 184 for (p = pp.in->nextchr; isspace(*p); p++); in ppcall() 294 p++; in ppcall() 310 if (p > mp->arg[c] && *(p - 1) == ' ') in ppcall() 311 p--; in ppcall() 312 if (p > mp->arg[c] && *(p - 1) == '\\') in ppcall() 330 if (p > mp->arg[c] && *(p - 1) == ' ') in ppcall() 331 p--; in ppcall() [all …]
|
H A D | ppcontrol.c | 82 if (p) p->next = q; in assert() 223 if (p > b && *(p - 1) == ' ') in getline() 520 p5 = *p ? p + 1 : 0; in ppcontrol() 597 if ((*s++ = *p++) == MARK && *p == MARK) p++; in ppcontrol() 719 if (p > formvals[mac->arity - 1] && *(p - 1) == ' ') *--p = 0; in ppcontrol() 1013 if (*(p - 1) == ' ') p--; in ppcontrol() 1113 if (p > mac->value && *(p - 1) != ' ') *p++ = ' '; in ppcontrol() 1130 if (p > mac->value && *(p - 1) != ' ') *p++ = ' '; in ppcontrol() 1156 while (p > mac->value && *(p - 1) == ' ') p--; in ppcontrol() 1252 if ((p = mac->value) && *p) in ppcontrol() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | pty.sh | 92 p :test-1: 96 p :test-2: 99 p :test-3: 115 p :test-1: 119 p :test-2: 122 p :test-3: 138 p :test-1: 142 p :test-2: 145 p :test-3: 209 p :test-1: [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/ |
H A D | line64.c | 124 for ( p = s - 1; p > line && ISBLANK( *p ); p-- ) { in str_parse_line() 125 *p = '\0'; in str_parse_line() 155 for ( p = s, d = s; *p; p++ ) { in str_parse_line() 157 *d++ = *p; in str_parse_line() 209 for ( p = src, len = 0; p < stop; p += 4, len += 3 ) { in ldif_base64_decode() 211 if ( p[i] != '=' && (p[i] & 0x80 || in ldif_base64_decode() 271 char *p; in str_getline() local 299 *p = '\0'; in str_getline() 336 for ( p = (unsigned char *) t; *p; p++, len++ ) { in ldif_put_type_and_value_with_options() 519 p = buf; in ldif_type_and_value_with_options() [all …]
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | getarg.c | 36 getarg(s, p) in getarg() argument 37 register char *s, *p; in getarg() 39 while (*p == ' ' || *p == '\t') p++; 40 if (*p == '\n' || *p == '\0') return(NULL); 41 while (*p != ' ' && *p != '\t' && *p != '\n' && *p != '\0') *s++ = *p++; 43 return(p);
|
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit_authclient.c | 48 auth_key_t *p; in client_set_numeric_data() local 54 p->present = 1; in client_set_numeric_data() 62 auth_key_t *p; in client_set_string_data() local 68 p->present = 1; in client_set_string_data() 76 auth_key_t *p; in client_set_binary_data() local 82 p->len = len; in client_set_binary_data() 91 auth_key_t *p; in client_get_numeric_data() local 104 auth_key_t *p; in client_get_string_data() local 117 auth_key_t *p; in client_get_binary_data() local 123 *len = p->len; in client_get_binary_data() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/hash/ |
H A D | hash_conv.c | 93 u_int8_t *p; local 96 p = (u_int8_t *)pg; 99 SWAP32(p); /* pgno */ 100 SWAP32(p); /* magic */ 101 SWAP32(p); /* version */ 102 SWAP32(p); /* pagesize */ 107 SWAP32(p); /* low_mask */ 108 SWAP32(p); /* ffactor */ 109 SWAP32(p); /* nelem */ 111 SWAP32(p); /* flags */ [all …]
|
/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_scan.c | 326 p++; in findstrconst() 327 } while (*p && *p != '"'); in findstrconst() 331 p++; in findstrconst() 347 p++; in findchrconst() 348 } while (*p && *p != '\''); in findchrconst() 351 p++; in findchrconst() 368 if (*p == '0' && *(p + 1) == 'x') { in findconst() 369 p++; in findconst() 371 p++; in findconst() 375 p++; in findconst() [all …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | refer2.c | 77 for (p = buff; *p; p++) { in doref() 79 *p |= 040; in doref() 82 for (p = buff; *p; p++) { in doref() 89 *p = 0; in doref() 102 *p = ' '; in doref() 134 p = buff; in doref() 136 p++; in doref() 137 *++p = 0; in doref() 192 for (r = p = buff; *p; p++) { in choices() 194 *p++ = 0; in choices() [all …]
|
/illumos-gate/usr/src/common/iscsi/ |
H A D | utils.c | 102 char *p = NULL; in prt_bitmap() local 114 for (p = str; size--; p++) { in prt_bitmap() 115 if (*p < 0x20) { in prt_bitmap() 127 *buf++ = *p; in prt_bitmap() 217 char *p; in reverse_fqdn() local 224 *p = '\0'; in reverse_fqdn() 230 dp = p + 1; in reverse_fqdn() 256 char *p; in utils_iqn_create() local 282 p++; in utils_iqn_create() 288 for (p = temp; *p; p++) in utils_iqn_create() [all …]
|
/illumos-gate/usr/src/uts/common/io/comstar/port/qlt/ |
H A D | qlt_dma.c | 86 qlt_dmem_bucket_t *p; in qlt_dmem_init() local 149 total_mem = p->dmem_buf_size * p->dmem_nbufs; in qlt_dmem_init() 173 p->dmem_nbufs_free = p->dmem_nbufs; in qlt_dmem_init() 177 bctl->bctl_bucket = p; in qlt_dmem_init() 208 kmem_free(p->dmem_bctls_mem, p->dmem_nbufs * sizeof (qlt_dmem_bctl_t)); in qlt_dmem_init() 265 qlt_dmem_bucket_t *p; in qlt_dmem_fini() local 303 qlt_dmem_bucket_t *p; in qlt_i_dmem_alloc() local 398 qlt_dmem_bucket_t *p; in qlt_dmem_free() local 403 p = bctl->bctl_bucket; in qlt_dmem_free() 407 p->dmem_nbufs_free++; in qlt_dmem_free() [all …]
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | dgrpent.c | 154 char *p, *q; in getfld() local 172 if (p) { in getfld() 173 while (*p && isspace((unsigned char)*p)) p++; in getfld() 174 if (*p) { in getfld() 175 q = p; in getfld() 185 return (p); in getfld() 496 while (((p = getfld(NULL, ",\n")) != NULL) && !(*p)) in _getdgrptabent() 498 if (p) { in _getdgrptabent() 597 p = q; in _freedgrptabent() 599 if (p->name) free(p->name); in _freedgrptabent() [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.glob.c | 296 for (lm = restbuf; *p != '{'; *lm++ = *p++) in execbrc() 418 p--; in amatch() 443 p++; in amatch() 574 for (p = s1; *p++; ) in Gcat() 586 for (p--, q = s2; *p++ = *q++; ) in Gcat() 640 else if (*p == '{' && (p[1] == '\0' || in tglob() 641 p[1] == '}' && p[2] == '\0')) in tglob() 953 char *p; in sh_bracket_exp() local 967 p += i; in sh_bracket_exp() 971 p += i; in sh_bracket_exp() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/os/ |
H A D | os_alloc.c | 55 void *p; local 63 memcpy(p, str, size); 65 *(void **)storep = p; 80 void *p; local 87 memset(p, 0, size); 88 *(void **)storep = p; 104 void *p; local 119 p = malloc(size); 120 if (p == NULL) { 145 void *p, *ptr; local [all …]
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | common.h | 81 #define ABE32_TO_U32(p) (*((uint32_t *)p)) argument 82 #define ABE16_TO_U16(p) (*((uint16_t *)p)) argument 83 #define U16_TO_ABE16(u, p) (*((uint16_t *)p) = (u)) argument 84 #define U32_TO_ABE16(u, p) U16_TO_ABE16(u, p) argument 85 #define U32_TO_ABE32(u, p) (*((uint32_t *)p) = (u)) argument 87 #define ABE16_TO_U16(p) BE16_TO_U16(p) argument 88 #define ABE32_TO_U32(p) BE32_TO_U32(p) argument 89 #define U16_TO_ABE16(u, p) U16_TO_BE16(u, p) argument 90 #define U32_TO_ABE16(u, p) U16_TO_ABE16(u, p) argument 91 #define U32_TO_ABE32(u, p) U32_TO_BE32(u, p) argument
|
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_uthread.c | 53 struct proc *p; in cpr_signal_user() local 57 for (p = practive; p; p = p->p_next) { in cpr_signal_user() 59 if (p->p_exec == NULL || p->p_stat == SZOMB || in cpr_signal_user() 60 p == proc_init || p == ttoproc(curthread)) in cpr_signal_user() 104 proc_t *p; in cpr_stop_user() local 113 p = ttoproc(tp); in cpr_stop_user() 114 if (p->p_as == &kas || p->p_stat == SZOMB) in cpr_stop_user() 226 proc_t *p; in cpr_start_user_threads() local 231 p = ttoproc(tp); in cpr_start_user_threads() 314 proc_t *p; in cpr_threads_are_stopped() local [all …]
|
/illumos-gate/usr/src/cmd/sgs/yacc/common/ |
H A D | y4.c | 128 for (p = tracemem + temp1[i]; p < q; p += 2) { in callopt() 130 j = *p; in callopt() 132 k = *p; in callopt() 154 for (p = tracemem + yypgo[i]; p < q; p += 2) { in callopt() 157 j = *p; in callopt() 183 for (p = amem; p <= maxa; p += 10) { in callopt() 200 int *p; in gin() local 211 p = amem; in gin() 215 if (*p) in gin() 264 ++p; in gin() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | setenv.c | 73 char **p; in setenv() local 75 for (p = environ, cnt = 0; *p; ++p, ++cnt); in setenv() 85 if (!p) in setenv() 87 memcpy(p, environ, cnt * sizeof(char *)); in setenv() 88 environ = p; in setenv() 108 char **p; in unsetenv() local 112 for (p = &environ[offset];; ++p) in unsetenv() 113 if (!(*p = *(p + 1))) in unsetenv() 129 char **p, *c; in findenv() local 137 for (p = environ; (c = *p) != NULL; ++p) in findenv() [all …]
|
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | tp.c | 54 num = pm_num_pages(p->pm_size - p->pm_rx_base, p->pm_rx_pg_size); in tp_pm_configure() 56 p->pm_rx_num_pgs = num; in tp_pm_configure() 58 num = pm_num_pages(p->pm_rx_base - p->pm_tx_base, p->pm_tx_pg_size); in tp_pm_configure() 60 p->pm_tx_num_pgs = num; in tp_pm_configure() 179 if (!p->pm_size) in tp_init() 294 p->pm_rx_base = p->pm_size >> 1; in t1_tp_create() 306 p->pm_rx_num_pgs = pm_num_pages(p->pm_size - p->pm_rx_base, in t1_tp_create() 307 p->pm_rx_pg_size); in t1_tp_create() 308 p->pm_tx_num_pgs = pm_num_pages(p->pm_rx_base - p->pm_tx_base, in t1_tp_create() 309 p->pm_tx_pg_size); in t1_tp_create() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/common/ |
H A D | ucs4.h | 47 #define get_ucs4_word(p) (*((ucs4_t*)(p))) argument 48 #define set_ucs4_word(p,n) ((*((ucs4_t*)(p)))=n) argument 51 #define get_ucs4_word_BB(p) (((ucs4_t)(get_ucs2_word_BB((p))<<16))|\ argument 52 ((ucs4_t)(get_ucs2_word_BB((p)+2)))) 54 #define set_ucs4_word_BB(p,n) (set_ucs2_word_BB((p),ext_ucs4_msw(n)),\ argument 55 set_ucs2_word_BB((p)+2,ext_ucs4_lsw(n))) 57 #define get_ucs4_word_BB(p) (((ucs4_t)(get_ucs2_word_BB((p)+2)<<16))|\ argument 58 ((ucs4_t)(get_ucs2_word_BB(p)))) 60 #define set_ucs4_word_BB(p,n) (set_ucs2_word_BB((p)+2,ext_ucs4_msw(n)),\ argument 61 set_ucs2_word_BB((p),ext_ucs4_lsw(n)))
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | util_set.c | 81 g_set_elt *p; in g_set_entry_delete() local 83 for (p=s; *p; p = &((*p)->next)) { in g_set_entry_delete() 84 if ((*p)->key == key) { in g_set_entry_delete() 85 g_set_elt next = (*p)->next; in g_set_entry_delete() 86 FREE(*p, sizeof(struct _g_set_elt)); in g_set_entry_delete() 87 *p = next; in g_set_entry_delete() 98 g_set_elt p; in g_set_entry_get() local 100 for (p = *s; p; p = p->next) { in g_set_entry_get() 101 if (p->key == key) { in g_set_entry_get() 102 *value = p->value; in g_set_entry_get()
|
/illumos-gate/usr/src/uts/common/io/ath/ |
H A D | ath_osdep.c | 47 void *p; member 92 void *p; in ath_hal_malloc() local 96 if (ath_halfix[i].p == NULL) in ath_hal_malloc() 104 ath_halfix[i].p = p; in ath_hal_malloc() 108 return (p); in ath_hal_malloc() 112 ath_hal_free(void* p) in ath_hal_free() argument 116 if (ath_halfix[i].p == p) in ath_hal_free() 124 ath_halfix[i].p = NULL; in ath_hal_free() 126 i, p, ath_halfix[i].size)); in ath_hal_free() 148 ath_halfix[i].p = NULL; in ath_halfix_init() [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/ |
H A D | fksmbd_shr.c | 76 char *p; in shr_load_file() local 87 name = p; in shr_load_file() 88 p = strpbrk(p, " \t\n"); in shr_load_file() 89 if (p == NULL) in shr_load_file() 91 *p++ = '\0'; in shr_load_file() 93 path = p; in shr_load_file() 94 p = strpbrk(p, " \t\n"); in shr_load_file() 95 if (p == NULL) in shr_load_file() 98 *p++ = '\0'; in shr_load_file() 100 comment = p; in shr_load_file() [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | ether_addr.c | 190 p = instr; in str2ether() 194 while (p < limit && isspace(*p)) in str2ether() 195 p++; in str2ether() 206 p++; in str2ether() 211 p++; in str2ether() 216 while (p < limit && !isspace(*p)) in str2ether() 217 p++; in str2ether() 221 p++; in str2ether() 222 start = p; in str2ether() 223 while (p < limit && !isspace(*p)) /* skip hostname */ in str2ether() [all …]
|