/illumos-gate/usr/src/uts/common/os/ |
H A D | callout.c | 91 cp->cnext->cprev = cp; \ 104 cp->cprev->cnext = cp; \ 115 cp->cnext->cprev = cp->cprev; \ 119 cp->cprev->cnext = cp->cnext; \ 287 return (cp); in callout_alloc() 1189 cp); in timeout_generic() 1296 for (cp = ct->ct_idhash[hash].ch_head; cp; cp = cp->c_idnext) { in untimeout_generic() 1461 for (cp = cl->cl_callouts.ch_head; cp != NULL; cp = cnext) { in callout_list_expire() 1481 (*cp->c_func)(cp->c_arg); in callout_list_expire() 2055 cpu_t *cp; in callout_mp_init() local [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | hrtimers.c | 136 register hrtcmd_t *cp; local 153 cp = &timecmd; 164 cmd = cp->hrtc_cmd; 184 switch (cp->hrtc_clk) { 212 switch (cp->hrtc_clk) { 240 switch (cp->hrtc_clk) { 279 cp->hrtc_flags |= HRTF_ERROR; 280 cp->hrtc_error = error; 282 cp->hrtc_flags |= HRTF_DONE; 283 cp->hrtc_error = 0; [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/edquota/ |
H A D | edquota.c | 371 while (*cp && *cp == '\t' && *cp == ' ') in putprivs() 372 cp++; in putprivs() 373 dp = cp, cp = next(cp, " \t"); in putprivs() 385 while (*cp && *cp == '\t' && *cp == ' ') in putprivs() 386 cp++; in putprivs() 542 while (*cp && *cp == '\t' && *cp == ' ') in puttimes() 543 cp++; in puttimes() 544 dp = cp, cp = next(cp, " \t"); in puttimes() 556 while (*cp && *cp == '\t' && *cp == ' ') in puttimes() 582 while (cp && *cp) { in next() [all …]
|
/illumos-gate/usr/src/lib/libc/port/inet/ |
H A D | inet_network.c | 54 inet_network(const char *cp) in inet_network() argument 65 if (*cp == '0') { in inet_network() 66 if (*++cp == 'x' || *cp == 'X') in inet_network() 67 base = 16, cp++; in inet_network() 71 while ((c = *cp) != '\0') { in inet_network() 76 cp++; in inet_network() 81 cp++; in inet_network() 89 if (*cp == '.') { in inet_network() 90 cp++; in inet_network() 93 if (*cp != '\0' && !isspace(*cp)) in inet_network()
|
/illumos-gate/usr/src/cmd/sdiff/ |
H A D | sdiff.c | 447 char *cp, *end; in putline() local 451 cp = start; in putline() 491 cp++; in cmd() 495 cp++; in cmd() 498 cp++; in cmd() 502 com = *cp++; in cmd() 506 cp++; in cmd() 510 cp++; in cmd() 513 cp++; in cmd() 534 for (cp = (unsigned char *)buffer; (*cp != '\n') && (*cp); cp++) { in getlen() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | expand.c | 84 for (cp = nl->n_name; *cp; cp++) 85 *cp = *cp & TRIM; 145 cp++; 181 cp = ++s; 182 if (*cp == '\0' || *cp == '/') { 194 } while (*cp && *cp != '/'); 210 s = cp; 212 for (cp = path; cp <= lastpathp + 1 && (*cp++ = *cp1++); ) 258 cp = s; 271 oldcp = cp; [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_split.c | 81 CURSOR *cp; local 140 __bam_page(dbc, &cp->csp[-1], &cp->csp[0]); 177 EPG *cp; 199 cp->page->level, TYPE(cp->page)); 202 cp->page->level, TYPE(cp->page)); 275 cp->page->level, TYPE(cp->page)); 283 cp->page->level, TYPE(cp->page)); 334 &cp->page->lsn, 0, dbp->log_fileid, PGNO(cp->page), 769 EPG *cp; 957 cp->inp[off] = cp->inp[off - P_INDX]; [all …]
|
H A D | bt_search.c | 80 CURSOR *cp; local 94 BT_STK_CLR(cp); 301 err: if (cp->csp > cp->sp) { 302 BT_STK_POP(cp); 319 CURSOR *cp; local 327 for (epg = cp->sp; epg <= cp->csp; ++epg) { 338 BT_STK_CLR(cp); 351 CURSOR *cp; in __bam_stkgrow() 357 entries = cp->esp - cp->sp; 362 if (cp->sp != cp->stack) [all …]
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | pathfind.c | 106 char *cp; in pathfind() local 114 for (cp = (char *)mode; *cp; cp++) { in pathfind() 115 switch (*cp) { in pathfind() 160 for (cp = cpath; (/* const */ char *) cp < in pathfind() 161 &cpath[PATH_MAX] && (*cp = *path); cp++) { in pathfind() 163 if (*cp == ':') in pathfind() 166 if ((/* const */ char *) cp + strlen(name) + 2 >= in pathfind() 169 if (cp != cpath) in pathfind() 170 *cp++ = '/'; in pathfind() 171 *cp = '\0'; in pathfind() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbiod-svc/ |
H A D | smbiod-svc.c | 83 child_t *cp; in child_find_by_pid() local 88 return (cp); in child_find_by_pid() 96 child_t *cp; in child_find_by_uid() local 101 return (cp); in child_find_by_uid() 414 child_t *cp; in cmd_start() local 432 cp = malloc(sizeof (*cp)); in cmd_start() 485 free(cp); in cmd_start() 513 child_t *cp; in svc_sigchld() local 530 child_gone(cp->uid, cp->pid, status); in svc_sigchld() 532 free(cp); in svc_sigchld() [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | in_cksum.c | 55 uchar_t *cp = p; in in_cksum() local 60 sum += v + *cp++; in in_cksum() 63 if (((long)cp & 1) == 0) { in in_cksum() 65 sum += *(ushort_t *)cp; in in_cksum() 66 cp += 2; in in_cksum() 71 sum += *cp++ << 8; in in_cksum() 72 sum += *cp++; in in_cksum() 74 sum += *cp++; in in_cksum() 75 sum += *cp++ << 8; in in_cksum() 81 v = *cp << 8; in in_cksum() [all …]
|
/illumos-gate/usr/src/uts/sun4v/cpu/ |
H A D | generic.c | 154 cpu_map_exec_units(struct cpu *cp) in cpu_map_exec_units() argument 163 cp->cpu_m.cpu_ipipe = cpunodes[cp->cpu_id].exec_unit_mapping; in cpu_map_exec_units() 165 cp->cpu_m.cpu_ipipe = (id_t)(cp->cpu_id); in cpu_map_exec_units() 167 cp->cpu_m.cpu_fpu = cpunodes[cp->cpu_id].fpu_mapping; in cpu_map_exec_units() 169 cp->cpu_m.cpu_fpu = (id_t)(cp->cpu_id); in cpu_map_exec_units() 177 cp->cpu_m.cpu_mpipe = cpunodes[cp->cpu_id].l2_cache_mapping; in cpu_map_exec_units() 181 cp->cpu_m.cpu_core = (id_t)(cp->cpu_id); in cpu_map_exec_units() 186 cp->cpu_m.cpu_chip = CPU_CHIPID_INVALID; in cpu_map_exec_units() 190 cpu_init_private(struct cpu *cp) in cpu_init_private() argument 192 cpu_map_exec_units(cp); in cpu_init_private() [all …]
|
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/ |
H A D | bootparam_subr.c | 78 char *cp; in bootparamproc_whoami_1() local 164 char *cp; in bootparamproc_getfile_1() local 196 if (cp == NULL) in bootparamproc_getfile_1() 209 if (cp == NULL) in bootparamproc_getfile_1() 214 cp = strchr(cp, '='); in bootparamproc_getfile_1() 215 if (cp == NULL) in bootparamproc_getfile_1() 217 cp++; in bootparamproc_getfile_1() 218 if (*cp == '\0') in bootparamproc_getfile_1() 224 if (cp == NULL) in bootparamproc_getfile_1() 226 *cp = '\0'; in bootparamproc_getfile_1() [all …]
|
/illumos-gate/usr/src/cmd/vi/misc/ |
H A D | ctags.c | 347 if (cp && cp[1] == 'l' && cp[2] == '\0') { in find_entries() 367 if (cp && cp[1] == 'y' && cp[2] == '\0') { in find_entries() 381 if (cp && (cp[1] != 'C' && cp[1] != 'c' && cp[1] != 'h') && in find_entries() 937 if (cp) 1172 for (cp = lbuf; *cp; cp++) 1179 for (cp = dbp+1; *cp && (isalpha(*cp) || isdigit(*cp)); cp++) 1243 for (cp = lbuf; *cp; cp++) 1251 while (cp >= dbp && *cp != ':') 1252 cp--; 1256 while (*cp && *cp != ')' && *cp != ' ') [all …]
|
/illumos-gate/usr/src/lib/pam_modules/sample/ |
H A D | sample_acct_mgmt.c | 110 parse_allow_name(char *who, char *cp) in parse_allow_name() argument 115 if (*cp == '\0') in parse_allow_name() 117 while (cp) { in parse_allow_name() 118 cp = getname(cp, name); in parse_allow_name() 129 getname(char *cp, char *name) in getname() argument 135 if (*cp == '\0') in getname() 137 while (*cp) { in getname() 139 if (*cp == ',' || *cp == '\0') in getname() 141 *name++ = *cp++; in getname() 145 return ((*cp == '\0')? (char *)0 : ++cp); in getname()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | read.c | 372 cp = 0; in sh_readline() 500 if(cp) in sh_readline() 502 cpmax = cp + c; in sh_readline() 521 if(cpmax>cp) in sh_readline() 558 cp[-1] = 0; in sh_readline() 560 cp += (c-1); in sh_readline() 593 cp++; in sh_readline() 603 if(cp>=cpmax) in sh_readline() 621 if(cp) in sh_readline() 660 del = cp - 1; in sh_readline() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | rpc_bootstrap.c | 401 for (cp = hp->h_aliases; cp != 0 && *cp != 0; cp++) in __files_gethostbyname() 437 *cp = '\0'; in __files_gethostent() 458 while (*cp == ' ' || *cp == '\t') in __files_gethostent() 459 cp++; in __files_gethostent() 462 cp = any(cp, " \t"); in __files_gethostent() 465 while (cp && *cp) { in __files_gethostent() 466 if (*cp == ' ' || *cp == '\t') { in __files_gethostent() 467 cp++; in __files_gethostent() 471 *q++ = cp; in __files_gethostent() 472 cp = any(cp, " \t"); in __files_gethostent() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | deparse.c | 202 cp = "|"; in p_tree() 423 else if((arg->argflag&ARG_RAW) && (cp[1] || (*cp!='[' && *cp!=']'))) in p_arg() 424 cp = sh_fmtq(cp); in p_arg() 446 cp++; in p_redirect() 453 cp++; in p_redirect() 459 cp++; in p_redirect() 544 special = (*cp=='[' && cp[1]==0); in p_comlist() 547 if(cp) in p_comlist() 550 cp = ""; in p_comlist() 555 special = (*cp==']' && cp[1]==0); in p_comlist() [all …]
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_heartbeat.c | 45 sctp_chunk_hdr_t *cp; in sctp_return_heartbeat() local 96 cp->sch_flags = 0; in sctp_return_heartbeat() 100 bcopy((void *)(hbcp + 1), (void *)(cp + 1), len - sizeof (*cp)); in sctp_return_heartbeat() 120 sctp_chunk_hdr_t *cp; in sctp_send_heartbeat() local 132 hblen = sizeof (*cp) + in sctp_send_heartbeat() 145 cp->sch_flags = 0; in sctp_send_heartbeat() 146 cp->sch_len = hblen; in sctp_send_heartbeat() 147 cp->sch_len = htons(cp->sch_len); in sctp_send_heartbeat() 285 ASSERT(OK_32PTR(cp)); in sctp_process_heartbeat() 286 if (ntohs(cp->sch_len) < (sizeof (*cp) + sizeof (*hpp) + in sctp_process_heartbeat() [all …]
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | smt.c | 456 cpu_t *cp; in smt_mark() local 460 cp = CPU; in smt_mark() 461 smt = &cp->cpu_m.mcpu_smt; in smt_mark() 561 if (smt_should_run(t, cp)) in smt_adjust_cpu_score() 584 smt_find_sibling(cpu_t *cp) in smt_find_sibling() argument 631 cpu_t *cp; in smt_disable() local 640 if (cp->cpu_id < sib->cpu_id) in smt_disable() 662 cpu_set_state(cp); in smt_disable() 712 cpu_t *cp = scp; in smt_init() local 729 cp->cpu_m.mcpu_smt.cs_sib = smt_find_sibling(cp); in smt_init() [all …]
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | find.c | 88 char *cp; in findsymbol() local 116 cp = blockp; in findsymbol() 121 ++cp; in findsymbol() 126 if (cp != NULL && *(++cp + 1) == '\0') { in findsymbol() 196 c = *cp; in findsymbol() 1120 char *cp; in putline() local 1144 ++cp; in putline() 1155 char *cp; in getstring() local 1169 ++cp; in getstring() 1181 char *cp; in scanpast() local [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | smbios.c | 116 smb_uiomove(smb_clone_t *cp, uio_t *uio) in smb_uiomove() argument 122 if (off + len > cp->c_eplen + cp->c_stlen) in smb_uiomove() 123 len = cp->c_eplen + cp->c_stlen - off; in smb_uiomove() 125 if (off < cp->c_eplen) { in smb_uiomove() 137 smbios_checksum(cp->c_hdl, ep); in smb_uiomove() 140 kmem_free(ep, cp->c_eplen); in smb_uiomove() 146 if (err == 0 && off >= cp->c_eplen) { in smb_uiomove() 148 size_t bufoff = off - cp->c_eplen; in smb_uiomove() 164 uio->uio_offset >= cp->c_eplen + cp->c_stlen) in smb_read() 167 return (smb_uiomove(cp, uio)); in smb_read() [all …]
|
/illumos-gate/usr/src/uts/sun4/io/efcode/ |
H A D | fcode.c | 308 struct fc_client_interface *cp; in fc_close() local 665 kmem_free(cp, csize); in fc_run_priv() 671 cp->error = fc_int2cell(0); in fc_run_priv() 684 kmem_free(cp, csize); in fc_run_priv() 692 name, fc_cell2int(cp->nargs), fc_cell2int(cp->nresults)); in fc_run_priv() 708 if (error || cp->error) { in fc_run_priv() 711 cp->error = FC_ERR_SVC_NAME; in fc_run_priv() 716 kmem_free(cp, csize); in fc_run_priv() 726 if (cp->priv_error) { in fc_run_priv() 736 kmem_free(cp, csize); in fc_run_priv() [all …]
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | tparm.c | 335 c = *cp++; in tparm() 357 c = *cp++; in tparm() 543 if (*cp >= 'a' && *cp <= 'z') { in tparm() 546 if (*cp >= 'A' && *cp <= 'Z') { in tparm() 562 if (*cp >= 'a' && *cp <= 'z') { in tparm() 565 if (*cp >= 'A' && *cp <= 'Z') { in tparm() 598 cp++; in tparm() 601 cp++; in tparm() 704 cp = _branchto(cp, 'e'); in tparm() 708 cp = _branchto(cp, ';'); in tparm() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_frame.c | 47 if (cp == NULL) { in mdb_cmd_create() 55 cp->c_dcmd = idcp; in mdb_cmd_create() 57 return (cp); in mdb_cmd_create() 61 mdb_cmd_destroy(mdb_cmd_t *cp) in mdb_cmd_destroy() argument 64 mdb_argvec_destroy(&cp->c_argv); in mdb_cmd_destroy() 65 mdb_vcb_purge(cp->c_vcbs); in mdb_cmd_destroy() 70 mdb_cmd_reset(mdb_cmd_t *cp) in mdb_cmd_reset() argument 73 mdb_vcb_purge(cp->c_vcbs); in mdb_cmd_reset() 74 cp->c_vcbs = NULL; in mdb_cmd_reset() 80 mdb_cmd_t *cp; in mdb_frame_reset() local [all …]
|