/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_socks.c | 35 static void put_method(char *cp, int method); 36 static void put_socks5_addr(char *cp, const unsigned char *buf, int fraglen); 37 static void put_socks4_res(char *cp, int code); 38 static void put_socks5_res(char *cp, int code); 47 char *cp; local 52 cp = get_sum_line(); 63 (void) sprintf(cp, 68 cp += strlen(cp); 70 (void) sprintf(cp, " User="); 71 cp += strlen(cp); [all …]
|
/titanic_50/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_cfg.c | 249 tavor_cfg_profile_t *cp); 258 static void tavor_cfg_wqe_sizes(tavor_cfg_profile_t *cp); 260 tavor_cfg_profile_t *cp); 269 tavor_cfg_profile_t *cp; in tavor_cfg_profile_init_phase1() local 276 cp = (tavor_cfg_profile_t *)kmem_zalloc(sizeof (tavor_cfg_profile_t), in tavor_cfg_profile_init_phase1() 279 cp->cp_qp0_agents_in_fw = tavor_qp0_agents_in_fw; in tavor_cfg_profile_init_phase1() 280 cp->cp_qp1_agents_in_fw = tavor_qp1_agents_in_fw; in tavor_cfg_profile_init_phase1() 281 cp->cp_sw_reset_delay = tavor_sw_reset_delay; in tavor_cfg_profile_init_phase1() 282 cp->cp_cmd_poll_delay = tavor_cmd_poll_delay; in tavor_cfg_profile_init_phase1() 283 cp->cp_cmd_poll_max = tavor_cmd_poll_max; in tavor_cfg_profile_init_phase1() [all …]
|
/titanic_50/usr/src/tools/stabs/ |
H A D | stabs.c | 42 static void parseline(char *cp); 43 static char *soudef(char *cp, enum type type, struct tdesc **rtdp); 44 static void enumdef(char *cp, struct tdesc **rtdp); 48 static char *number(char *cp, int *n); 49 static char *name(char *cp, char **w); 50 static char *id(char *cp, int *h); 51 static char *offsize(char *cp, struct mlist *mlp); 52 static char *whitesp(char *cp); 55 static void tagdecl(char *cp, struct tdesc **rtdp, int h, char *w); 56 static char *tdefdecl(char *cp, int h, struct tdesc **rtdp); [all …]
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | strptime.c | 55 register char *cp, *p; local 64 cp = buf; 70 if (*cp++ != '%') 77 if ((p = strmatch(cp, 80 || (p = strmatch(cp, 89 cp = p; 96 if ((p = strmatch(cp, 99 || (p = strmatch(cp, 108 cp = p; 112 cp = strptime(cp, "%x %X", tm); [all …]
|
H A D | mntent.c | 51 unsigned char *cp = (unsigned char *) *p; in mntstr() local 54 while (*cp && isspace(*cp)) in mntstr() 55 cp++; in mntstr() 56 retstr = cp; in mntstr() 57 while (*cp && !isspace(*cp)) in mntstr() 58 cp++; in mntstr() 59 if (*cp) { in mntstr() 60 *cp = '\0'; in mntstr() 61 cp++; in mntstr() 63 *p = (char *) cp; in mntstr() [all …]
|
/titanic_50/usr/src/uts/common/os/ |
H A D | kmem.c | 1179 kmem_cache_t *cp; in kmem_cache_applyall() local 1182 for (cp = list_head(&kmem_caches); cp != NULL; in kmem_cache_applyall() 1183 cp = list_next(&kmem_caches, cp)) in kmem_cache_applyall() 1185 (void) taskq_dispatch(tq, (task_func_t *)func, cp, in kmem_cache_applyall() 1188 func(cp); in kmem_cache_applyall() 1195 kmem_cache_t *cp; in kmem_cache_applyall_id() local 1198 for (cp = list_head(&kmem_caches); cp != NULL; in kmem_cache_applyall_id() 1199 cp = list_next(&kmem_caches, cp)) { in kmem_cache_applyall_id() 1200 if (!(cp->cache_cflags & KMC_IDENTIFIER)) in kmem_cache_applyall_id() 1203 (void) taskq_dispatch(tq, (task_func_t *)func, cp, in kmem_cache_applyall_id() [all …]
|
/titanic_50/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_cursor.c | 48 #define DISCARD(dbc, cp) { \ argument 49 if ((cp)->page != NULL) { \ 50 (void)memp_fput((dbc)->dbp->mpf, (cp)->page, 0); \ 51 (cp)->page = NULL; \ 53 if ((cp)->lock != LOCK_INVALID) { \ 54 (void)__BT_TLPUT((dbc), (cp)->lock); \ 55 (cp)->lock = LOCK_INVALID; \ 61 #define IS_CUR_DELETED(cp) \ argument 62 (((cp)->dpgno == PGNO_INVALID && \ 63 B_DISSET(GET_BKEYDATA((cp)->page, \ [all …]
|
/titanic_50/usr/src/tools/ctf/cvt/ |
H A D | st_parse.c | 62 static char *soudef(char *cp, stabtype_t type, tdesc_t **rtdp); 63 static void enumdef(char *cp, tdesc_t **rtdp); 66 static char *number(char *cp, int *n); 67 static char *name(char *cp, char **w); 68 static char *id(char *cp, int *h); 69 static char *whitesp(char *cp); 72 static char *tdefdecl(char *cp, int h, tdesc_t **rtdp); 73 static char *intrinsic(char *cp, tdesc_t **rtdp); 74 static char *arraydef(char *cp, tdesc_t **rtdp); 81 parse_debug(int level, char *cp, char *fmt, ...) in parse_debug() argument [all …]
|
/titanic_50/usr/src/lib/libresolv/ |
H A D | res_debug.c | 107 register char *cp; local 115 cp = msg + sizeof (HEADER); 144 cp = p_cdname(cp, msg, file); 145 if (cp == NULL) 147 fprintf(file, ", type = %s", p_type(_getshort(cp))); 148 cp += sizeof (u_short); 150 p_class(_getshort(cp))); 151 cp += sizeof (u_short); 161 cp = p_rr(cp, msg, file); 162 if (cp == NULL) [all …]
|
H A D | res_init.c | 96 register char *cp, **pp; in res_init() local 174 cp = strchr(buf, (int)'.'); in res_init() 176 cp = index(buf, '.'); in res_init() 178 if (cp == NULL) in res_init() 181 strcpy(_res.defdname, cp+1); in res_init() 184 if ((cp = getenv("LOCALDOMAIN")) != NULL) { in res_init() 185 (void) strncpy(_res.defdname, cp, sizeof (_res.defdname)); in res_init() 196 cp = buf + sizeof ("domain") - 1; in res_init() 197 while (*cp == ' ' || *cp == '\t') in res_init() 198 cp++; in res_init() [all …]
|
/titanic_50/usr/src/cmd/mailx/ |
H A D | aux.c | 63 register char *cp, *cp2, *top; in savestr() local 65 for (cp = str; *cp; cp++) in savestr() 67 top = (char *)salloc((unsigned)(cp-str + 1)); in savestr() 70 for (cp = str, cp2 = top; *cp; cp++) in savestr() 71 *cp2++ = *cp; in savestr() 176 register char *cp, *cp2; in gethfield() local 213 cp = &linebuf[strlen(linebuf)]; in gethfield() 214 while (cp > linebuf && in gethfield() 215 (isspace(cp[-1]) || cp[-1] == '\\')) in gethfield() 216 cp--; in gethfield() [all …]
|
H A D | optim.c | 79 register char *cp, *oname; in netmap() local 103 if (value("onehop") && (cp = strchr(name, '!')) && cp > name) { in netmap() 114 while (((cp = lasthost(from)) != 0) && ishost(cp, name)) { in netmap() 117 if (cp == from) { in netmap() 123 *--cp = 0; in netmap() 131 if ((cp = value("conv"))==NOSTR || strcmp(cp, "optimize") != 0) in netmap() 139 cp = ret; in netmap() 141 if (!icequal(name, cp)) in netmap() 142 return(unuucp((char *) savestr(cp))); in netmap() 196 register char *np, *hp, *cp; in unuucp() local [all …]
|
/titanic_50/usr/src/lib/libumem/common/ |
H A D | umem.c | 931 umem_cache_t *cp; in umem_cache_applyall() local 934 for (cp = umem_null_cache.cache_next; cp != &umem_null_cache; in umem_cache_applyall() 935 cp = cp->cache_next) in umem_cache_applyall() 936 func(cp); in umem_cache_applyall() 941 umem_add_update_unlocked(umem_cache_t *cp, int flags) in umem_add_update_unlocked() argument 950 if (cp->cache_uflags & UMU_ACTIVE) { in umem_add_update_unlocked() 951 cp->cache_uflags |= flags; in umem_add_update_unlocked() 953 if (cp->cache_unext != NULL) { in umem_add_update_unlocked() 954 ASSERT(cp->cache_uflags != 0); in umem_add_update_unlocked() 955 cp->cache_uflags |= flags; in umem_add_update_unlocked() [all …]
|
/titanic_50/usr/src/lib/libshell/common/edit/ |
H A D | hexpand.c | 47 #define DONE() {flag |= HIST_ERROR; cp = 0; stakseek(0); goto done;} 67 char *cp,del; 81 cp = (char*) s + 1; 85 if(*cp == del || *cp == '\n' || *cp == '\0') 100 if(*cp != del) 103 else if(*cp == '\\') 105 if(*(cp+1) == del) /* quote delimiter */ 108 cp++; 110 else if(*(cp+1) == '&' && n == 1) 113 cp++; [all …]
|
/titanic_50/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | spppcomp.c | 165 #define CPDEBUG(x) (IS_CP_KDEBUG(cp) ? CKDEBUG(x) : (void)0) 236 sppp_comp_t *cp; in spppcomp_open() local 244 cp = kmem_zalloc(sizeof (sppp_comp_t), KM_SLEEP); in spppcomp_open() 245 q->q_ptr = WR(q)->q_ptr = (caddr_t)cp; in spppcomp_open() 247 cp->cp_mru = PPP_MRU; in spppcomp_open() 248 cp->cp_mtu = PPP_MTU; in spppcomp_open() 250 mutex_init(&cp->cp_pair_lock, NULL, MUTEX_DRIVER, NULL); in spppcomp_open() 251 vj_compress_init(&cp->cp_vj, -1); in spppcomp_open() 252 cp->cp_nxslots = -1; in spppcomp_open() 253 cp->cp_effort = -1; in spppcomp_open() [all …]
|
/titanic_50/usr/src/lib/libc/sparc/sys/ |
H A D | ptrace.c | 142 cstatus_t *cp; in ptrace() local 216 if ((cp = GrabProc(pid)) == NULLCP) in ptrace() 219 ps = &cp->pstatus; in ptrace() 221 if (ProcUpdate(cp) != 0) { in ptrace() 222 ReleaseProc(cp); in ptrace() 238 if (pread(cp->asfd, (char *)&data, sizeof (data), (off_t)addr) in ptrace() 252 GetPsargs(cp); in ptrace() 254 GetSignal(cp); in ptrace() 257 data = *((int *)((caddr_t)(&cp->user) + xaddr)); in ptrace() 268 if (xaddr >= (unsigned)cp->user.u_reg[REG_SP] && in ptrace() [all …]
|
/titanic_50/usr/src/uts/common/fs/sockfs/ |
H A D | nl7chttp.c | 206 http_date2time_t(char *cp, char *ep) in http_date2time_t() argument 208 char *scp = cp; in http_date2time_t() 228 while (cp < ep) { in http_date2time_t() 229 c = *cp++; in http_date2time_t() 234 cp = scp; in http_date2time_t() 241 if (cp == NULL) { in http_date2time_t() 243 while (cp < ep) { in http_date2time_t() 244 c = *cp; in http_date2time_t() 246 cp++; in http_date2time_t() 259 if (cp == ep) in http_date2time_t() [all …]
|
/titanic_50/usr/src/cmd/ssh/include/ |
H A D | getput.h | 28 #define GET_64BIT(cp) (((u_int64_t)(u_char)(cp)[0] << 56) | \ argument 29 ((u_int64_t)(u_char)(cp)[1] << 48) | \ 30 ((u_int64_t)(u_char)(cp)[2] << 40) | \ 31 ((u_int64_t)(u_char)(cp)[3] << 32) | \ 32 ((u_int64_t)(u_char)(cp)[4] << 24) | \ 33 ((u_int64_t)(u_char)(cp)[5] << 16) | \ 34 ((u_int64_t)(u_char)(cp)[6] << 8) | \ 35 ((u_int64_t)(u_char)(cp)[7])) 37 #define GET_32BIT(cp) (((u_long)(u_char)(cp)[0] << 24) | \ argument 38 ((u_long)(u_char)(cp)[1] << 16) | \ [all …]
|
/titanic_50/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 142 cstatus_t *cp; in ptrace() local 216 if ((cp = GrabProc(pid)) == NULLCP) in ptrace() 219 ps = &cp->pstatus; in ptrace() 221 if (ProcUpdate(cp) != 0) { in ptrace() 222 ReleaseProc(cp); in ptrace() 238 if (pread(cp->asfd, (char *)&data, sizeof (data), (off_t)addr) in ptrace() 252 GetPsargs(cp); in ptrace() 254 GetSignal(cp); in ptrace() 257 data = *((int *)((caddr_t)(&cp->user) + xaddr)); in ptrace() 267 if (pwrite(cp->asfd, (char *)&data, sizeof (data), (off_t)addr) in ptrace() [all …]
|
/titanic_50/usr/src/cmd/rexd/ |
H A D | mntent.c | 54 char *cp = *p; local 57 while (*cp && isspace(*cp)) 58 cp++; 59 retstr = cp; 60 while (*cp && !isspace(*cp)) 61 cp++; 62 if (*cp) 64 *cp = '\0'; 65 cp++; 67 *p = cp; [all …]
|
/titanic_50/usr/src/lib/libcmd/common/ |
H A D | fmt.c | 81 register char* cp = fp->outbuf; in outline() local 91 while (*cp++ == ' ') in outline() 96 cp = &fp->outbuf[TABSZ*n]; in outline() 98 *--cp = '\t'; in outline() 101 cp = fp->outbuf; in outline() 104 sfputr(fp->out, cp, '\n'); in outline() 105 else if (*cp) in outline() 108 if (*cp != '[') in outline() 110 if (*cp == ' ') in outline() 111 cp++; in outline() [all …]
|
/titanic_50/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_cfg.c | 193 hermon_cfg_profile_t *cp); 196 hermon_cfg_profile_t *cp); 206 hermon_cfg_profile_t *cp; in hermon_cfg_profile_init_phase1() local 211 cp = (hermon_cfg_profile_t *)kmem_zalloc(sizeof (hermon_cfg_profile_t), in hermon_cfg_profile_init_phase1() 217 cp->cp_qp0_agents_in_fw = hermon_qp0_agents_in_fw; in hermon_cfg_profile_init_phase1() 218 cp->cp_qp1_agents_in_fw = hermon_qp1_agents_in_fw; in hermon_cfg_profile_init_phase1() 219 cp->cp_sw_reset_delay = hermon_sw_reset_delay; in hermon_cfg_profile_init_phase1() 220 cp->cp_cmd_poll_delay = hermon_cmd_poll_delay; in hermon_cfg_profile_init_phase1() 221 cp->cp_cmd_poll_max = hermon_cmd_poll_max; in hermon_cfg_profile_init_phase1() 222 cp->cp_ackreq_freq = hermon_qp_ackreq_freq; in hermon_cfg_profile_init_phase1() [all …]
|
/titanic_50/usr/src/uts/i86pc/os/ |
H A D | mp_startup.c | 123 init_cpu_info(struct cpu *cp) in init_cpu_info() argument 125 processor_info_t *pi = &cp->cpu_type_info; in init_cpu_info() 135 cp->cpu_curr_clock = cpu_freq_hz; in init_cpu_info() 140 if (cp->cpu_supp_freqs == NULL) { in init_cpu_info() 141 cpu_set_supp_freqs(cp, NULL); in init_cpu_info() 148 cp->cpu_idstr = kmem_zalloc(CPU_IDSTRLEN, KM_SLEEP); in init_cpu_info() 149 cp->cpu_brandstr = kmem_zalloc(CPU_IDSTRLEN, KM_SLEEP); in init_cpu_info() 158 (void) cpuid_getidstr(CPU, cp->cpu_idstr, CPU_IDSTRLEN); in init_cpu_info() 159 (void) cpuid_getbrandstr(CPU, cp->cpu_brandstr, CPU_IDSTRLEN); in init_cpu_info() 167 init_cpu_syscall(struct cpu *cp) in init_cpu_syscall() argument [all …]
|
/titanic_50/usr/src/uts/sun4/os/ |
H A D | mp_startup.c | 97 common_startup_init(cpu_t *cp, int cpuid) in common_startup_init() argument 116 THREAD_ONPROC(tp, cp); in common_startup_init() 118 tp->t_bound_cpu = cp; in common_startup_init() 120 tp->t_cpu = cp; in common_startup_init() 121 tp->t_disp_queue = cp->cpu_disp; in common_startup_init() 133 cp->cpu_id = cpuid; in common_startup_init() 134 cp->cpu_self = cp; in common_startup_init() 135 cp->cpu_thread = tp; in common_startup_init() 136 cp->cpu_lwp = NULL; in common_startup_init() 137 cp->cpu_dispthread = tp; in common_startup_init() [all …]
|
/titanic_50/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_mkquery.c | 127 register u_char *cp, *ep; in res_nmkquery() local 162 cp = buf + HFIXEDSZ; in res_nmkquery() 174 if (ep - cp < QFIXEDSZ) in res_nmkquery() 176 if ((n = dn_comp(dname, cp, ep - cp - QFIXEDSZ, dnptrs, in res_nmkquery() 179 cp += n; in res_nmkquery() 180 ns_put16(type, cp); in res_nmkquery() 181 cp += INT16SZ; in res_nmkquery() 182 ns_put16(class, cp); in res_nmkquery() 183 cp += INT16SZ; in res_nmkquery() 190 if ((ep - cp) < RRFIXEDSZ) in res_nmkquery() [all …]
|