/titanic_50/usr/src/cmd/ttymon/ |
H A D | tmutmp.c | 67 struct utmpx *up = &utmpx; /* and a pointer to it */ local 69 (void) memset(up, '\0', sizeof (utmpx)); 70 up->ut_user[0] = '.'; 71 (void) strncpy(&up->ut_user[1], Tag, sizeof (up->ut_user)-1); 72 (void) strncpy(up->ut_line, lastname(line), sizeof (up->ut_line)); 73 up->ut_pid = getpid(); 74 up->ut_type = USER_PROCESS; 75 up->ut_id[0] = 't'; 76 up->ut_id[1] = 'm'; 77 up->ut_id[2] = SC_WILDC; [all …]
|
/titanic_50/usr/src/lib/libast/common/dir/ |
H A D | getdents.c | 80 register struct dirent* up; /* user */ 92 up = (struct dirent*)buf; 102 up->d_fileno = i; 103 u = up->d_name; 104 while ((*u = *sp++) && u < up->d_name + MAXNAMLEN) u++; 106 … up->d_reclen = sizeof(struct dirent) - sizeof(up->d_name) + (up->d_namlen = u - up->d_name) + 1; 107 up->d_reclen = roundof(up->d_reclen, 8); 108 up = (struct dirent*)((char*)up + up->d_reclen); 111 return((char*)up - (char*)buf); 120 #define MAXREC roundof(sizeof(*up)-sizeof(up->d_name)+sizeof(sp->d_name)+1,8) [all …]
|
/titanic_50/usr/src/cmd/sendmail/src/ |
H A D | udb.c | 140 register struct udbent *up; local 189 for (up = UdbEnts; !breakout; up++) 214 switch (up->udb_type) 224 i = (*up->udb_dbp->seq)(up->udb_dbp, &key, &info, R_CURSOR); 229 (errno = (*up->udb_dbp->cursor)(up->udb_dbp, 232 (errno = (*up->udb_dbp->cursor)(up->udb_dbp, 308 i = (*up->udb_dbp->seq)(up->udb_dbp, &key, &info, R_NEXT); 366 i = (*up->udb_dbp->get)(up->udb_dbp, &key, &info, 0); 368 i = errno = (*up->udb_dbp->get)(up->udb_dbp, NULL, 516 i = strlen(up->udb_fwdhost) + strlen(a->q_user) + 1; [all …]
|
/titanic_50/usr/src/cmd/whodo/ |
H A D | whodo.c | 167 struct uproc *up, *parent, *pgrp; in main() local 338 up = findhash(info.pr_pid); in main() 339 up->p_ttyd = info.pr_ttydev; in main() 340 up->p_state = (info.pr_nlwp == 0? ZOMBIE : RUNNING); in main() 341 up->p_time = 0; in main() 342 up->p_ctime = 0; in main() 343 up->p_igintr = 0; in main() 344 (void) strncpy(up->p_comm, info.pr_fname, in main() 346 up->p_args[0] = 0; in main() 348 if (up->p_state != NONE && up->p_state != ZOMBIE) { in main() [all …]
|
/titanic_50/usr/src/lib/librpcsvc/common/ |
H A D | rusersxdr.c | 47 xdr_ru_utmp(xdrsp, up) in xdr_ru_utmp() argument 49 struct ru_utmp *up; 60 len = (int)sizeof (up->ut_line); 63 if (len != sizeof (up->ut_line)) { 66 if (!xdr_opaque(xdrsp, (char *)up->ut_line, len)) { 69 len = (int)sizeof (up->ut_name); 72 if (len != sizeof (up->ut_name)) { 75 if (!xdr_opaque(xdrsp, (char *)up->ut_name, len)) { 78 len = (int)sizeof (up->ut_host); 81 if (len != sizeof (up->ut_host)) { [all …]
|
H A D | rusers_simple.c | 42 struct utmpidlearr up; local 51 up.uia_cnt = 0; 52 up.uia_arr = NULL; 53 if (rusers(host, &up) != 0) 60 uap->utmp_array_val = (rusers_utmp *)malloc(up.uia_cnt 63 xdr_free(xdr_utmpidlearr, (char *)&up); 66 uap->utmp_array_len = up.uia_cnt; 68 i < up.uia_cnt; rutp++, i++) { 85 xdr_free(xdr_utmpidlearr, (char *)&up); 89 up.uia_arr[i]->ui_utmp.ut_line, [all …]
|
/titanic_50/usr/src/cmd/audio/utilities/ |
H A D | Resample.cc | 131 if (up <= 1) in updateState() 151 up = rate_out / commonfactor; in ResampleFilter() 154 int fold = (up > down)? up : down; // take the bigger rate change in ResampleFilter() 159 if (up > 1) { // need (order/up) states in ResampleFilter() 160 num_state = (order + up - 1) / up; in ResampleFilter() 255 else if (up <= 1) // regular filter in interpolate_noadjust() 262 int coef_offset = up + up_offset; in interpolate_noadjust() 264 *out_ptr++ = double2short(up * poly_conv(coef + coef_offset, in interpolate_noadjust() 265 order - coef_offset, up, state, num_state)); in interpolate_noadjust() 270 for (j = 0; j < up; j++) { in interpolate_noadjust() [all …]
|
/titanic_50/usr/src/cmd/w/ |
H A D | w.c | 162 struct uproc *up, *parent, *pgrp; in main() local 357 up = findhash(info.pr_pid); in main() 358 up->p_ttyd = info.pr_ttydev; in main() 359 up->p_state = (info.pr_nlwp == 0? ZOMBIE : RUNNING); in main() 360 up->p_time = 0; in main() 361 up->p_ctime = 0; in main() 362 up->p_igintr = 0; in main() 363 (void) strncpy(up->p_comm, info.pr_fname, in main() 365 up->p_args[0] = 0; in main() 367 if (up->p_state != NONE && up->p_state != ZOMBIE) { in main() [all …]
|
/titanic_50/usr/src/uts/i86pc/io/dr/ |
H A D | dr_cpu.c | 229 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i]; in dr_pre_attach_cpu() local 231 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up)); in dr_pre_attach_cpu() 239 if ((up->sbc_cm.sbdev_unum % MAX_CORES_PER_CMP) == 0) { in dr_pre_attach_cpu() 241 up->sbc_cm.sbdev_path); in dr_pre_attach_cpu() 285 dr_cpu_unit_t *up = (dr_cpu_unit_t *)cp; in dr_attach_cpu() local 286 up->sbc_cpu_id = cpuid; in dr_attach_cpu() 306 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i]; in dr_post_attach_cpu() local 309 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up)); in dr_post_attach_cpu() 311 cp = cpu_get(up->sbc_cpu_id); in dr_post_attach_cpu() 314 f, up->sbc_cpu_id); in dr_post_attach_cpu() [all …]
|
/titanic_50/usr/src/lib/libast/common/comp/ |
H A D | getoptl.c | 37 static Sfio_t* up; variable 49 if (!up || optstring != lastoptstring || longopts != lastlongopts) in golly() 51 if (!up && !(up = sfstropen())) in golly() 53 sfprintf(up, "[-1p%d]", flags); in golly() 58 sfprintf(up, "\n[%d:%s]", UCHAR_MAX + 1 + (o - longopts), o->name); in golly() 61 sfprintf(up, "\n[%c:%s]", o->val, o->name); in golly() 75 sfputc(up, ':'); in golly() 77 sfputc(up, '?'); in golly() 78 sfprintf(up, "[string]"); in golly() 85 sfprintf(up, "\n[%c]", c); in golly() [all …]
|
/titanic_50/usr/src/cmd/getent/ |
H A D | dogetnet.c | 46 u_char *up = (u_char *)&addr; in inet_nettoa() local 50 if (up[0]) { in inet_nettoa() 52 up[0], up[1], up[2], up[3]); in inet_nettoa() 53 } else if (up[1]) { in inet_nettoa() 54 (void) sprintf(result, "%d.%d.%d", up[1], up[2], up[3]); in inet_nettoa() 55 } else if (up[2]) { in inet_nettoa() 56 (void) sprintf(result, "%d.%d", up[2], up[3]); in inet_nettoa() 58 (void) sprintf(result, "%d", up[3]); in inet_nettoa()
|
/titanic_50/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_cpu.c | 285 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i]; in dr_pre_attach_cpu() local 287 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up)); in dr_pre_attach_cpu() 295 curr_cpu = DR_UNUM2SBD_UNUM(up->sbc_cm.sbdev_unum, in dr_pre_attach_cpu() 299 up->sbc_cm.sbdev_path); in dr_pre_attach_cpu() 303 if (up->sbc_cm.sbdev_state == DR_STATE_UNCONFIGURED) { in dr_pre_attach_cpu() 311 up->sbc_cpu_id); in dr_pre_attach_cpu() 313 CPU_SGN_MAPOUT(up->sbc_cpu_id); in dr_pre_attach_cpu() 375 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i]; in dr_post_attach_cpu() local 378 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up)); in dr_post_attach_cpu() 380 cp = cpu_get(up->sbc_cpu_id); in dr_post_attach_cpu() [all …]
|
/titanic_50/usr/src/uts/intel/sys/ |
H A D | mc_amd.h | 275 #define _MCREG_FIELD(up, revsuffix, field) ((up)->_fmt_##revsuffix.field) argument 277 #define MCREG_VAL32(up) ((up)->_val32) argument 282 #define MCREG_FIELD_CMN(up, field) _MCREG_FIELD(up, cmn, field) argument 287 #define MCREG_FIELD_F_preF(up, field) _MCREG_FIELD(up, f_preF, field) argument 292 #define MCREG_FIELD_F_revFG(up, field) _MCREG_FIELD(up, f_revFG, field) argument 297 #define MCREG_FIELD_10_revAB(up, field) _MCREG_FIELD(up, 10_revAB, field) argument 338 #define HT_COHERENTNODES(up) (MCREG_FIELD_CMN(up, NodeCnt) + 1) argument 339 #define HT_SYSTEMCORECOUNT(up) (MCREG_FIELD_CMN(up, CpuCnt) + 1) argument 373 #define MC_DRAMBASE(up) ((uint64_t)MCREG_FIELD_CMN(up, DRAMBasei) << 24) argument 391 #define MC_DRAMLIM(up) \ argument [all …]
|
/titanic_50/usr/src/cmd/nscd/ |
H A D | getnet.c | 73 uchar_t *up; in netaddr_getlogstr() local 76 up = (uchar_t *)&net; in netaddr_getlogstr() 78 if (up[0]) in netaddr_getlogstr() 81 up[0], up[1], up[2], up[3]); in netaddr_getlogstr() 82 else if (up[1]) in netaddr_getlogstr() 85 up[1], up[2], up[3]); in netaddr_getlogstr() 86 else if (up[2]) in netaddr_getlogstr() 89 up[2], up[3]); in netaddr_getlogstr() 93 up[3]); in netaddr_getlogstr()
|
/titanic_50/usr/src/cmd/acct/ |
H A D | acctprc1.c | 179 struct urec *up; in readctmp() local 188 up = NULL; in readctmp() 198 if (up == NULL || cb.ct_uid != up->ur_uid || in readctmp() 199 !EQN(cb.ct_name, up->ur_name)) { in readctmp() 200 if (up == NULL) in readctmp() 201 up = ur; in readctmp() 202 if (++up >= &ur[a_usize]) { in readctmp() 209 up = &ur[a_usize - A_USIZE]; in readctmp() 211 up->ur_uid = cb.ct_uid; in readctmp() 212 CPYN(up->ur_name, cb.ct_name); in readctmp() [all …]
|
/titanic_50/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | getcwd.c | 63 char *ept, *eup, *up; in getcwd() local 90 if ((up = malloc(upsize = 1024 - 4)) == NULL) in getcwd() 92 eup = up + MAXPATHLEN; in getcwd() 93 bup = up; in getcwd() 94 up[0] = '.'; in getcwd() 95 up[1] = '\0'; in getcwd() 107 if (lstat(up, &s)) in getcwd() 123 free(up); in getcwd() 135 if ((nup = realloc(up, upsize *= 2)) == NULL) in getcwd() 137 up = nup; in getcwd() [all …]
|
/titanic_50/usr/src/cmd/acct/lib/ |
H A D | uidtonam.c | 55 register struct ulist *up; local 59 for (up = ul; up < &ul[usize1]; up++) 60 if (uid == up->uuid) 61 return(up->uname); 67 up->uuid = uid; 68 CPYN(up->uname, pp->pw_name);
|
H A D | namtouid.c | 51 register struct ulist *up; local 55 for (up = ul; up < &ul[usize]; up++) 56 if (strncmp(name, up->uname, NSZ) == 0) 57 return(up->uuid); 65 CPYN(up->uname, name); 66 up->uuid = tuid;
|
/titanic_50/usr/src/cmd/vi/port/ |
H A D | ex_unix.c | 51 unsigned char *up, *fp; in unix0() local 69 up = (unsigned char *)uxb; in unix0() 76 if ((up + len) >= (unsigned char *)&uxb[UXBSIZE]) { in unix0() 80 strncpy(up, multic, len); in unix0() 81 up += len; in unix0() 103 if (up >= (unsigned char *)&uxb[UXBSIZE]) { in unix0() 116 *up++ = c; in unix0() 120 if (up != (unsigned char *)uxb && *puxb != 0) { in unix0() 130 if (up >= (unsigned char *)&uxb[UXBSIZE]) in unix0() 132 *up++ = *fp++; in unix0() [all …]
|
/titanic_50/usr/src/cmd/saf/ |
H A D | sac.c | 464 struct utmpx *up; in cleanutx() local 466 char user[sizeof (up->ut_user) + 1]; in cleanutx() 467 char ttyn[sizeof (up->ut_line) + 1]; in cleanutx() 468 char rhost[sizeof (up->ut_host) + 1]; in cleanutx() 482 while (up = getutxent()) { in cleanutx() 483 if (up->ut_pid == pid) { in cleanutx() 484 if (up->ut_type == DEAD_PROCESS) { in cleanutx() 490 strncpy(user, up->ut_user, sizeof (up->ut_user)); in cleanutx() 491 user[sizeof (up->ut_user)] = '\0'; in cleanutx() 492 strncpy(ttyn, up->ut_line, sizeof (up->ut_line)); in cleanutx() [all …]
|
/titanic_50/usr/src/cmd/fs.d/ufs/repquota/ |
H A D | repquota.c | 290 struct username *up; in prquota() local 298 up = lookup(uid); in prquota() 299 if (up) in prquota() 300 (void) printf("%-10s", up->u_name); in prquota() 389 struct username *up; in lookup() local 391 for (up = uhead[uid % UHASH]; up != 0; up = up->u_next) in lookup() 392 if (up->u_uid == uid) in lookup() 393 return (up); in lookup() 396 up = adduid(pwp->pw_uid); in lookup() 397 (void) strncpy(up->u_name, pwp->pw_name, sizeof (up->u_name)); in lookup() [all …]
|
/titanic_50/usr/src/cmd/csh/ |
H A D | sh.misc.c | 91 blkend(tchar **up) in blkend() argument 94 while (*up) in blkend() 95 up++; in blkend() 96 return (up); in blkend() 131 blkcat(tchar **up, tchar **vp) in blkcat() argument 134 (void) blkcpy(blkend(up), vp); in blkcat() 135 return (up); in blkcat() 190 blkspl(tchar **up, tchar **vp) in blkspl() argument 193 (tchar **)xcalloc((unsigned)(blklen(up) + blklen(vp) + 1), in blkspl() 196 (void) blkcpy(wp, up); in blkspl() [all …]
|
/titanic_50/usr/src/lib/libsocket/inet/ |
H A D | netmasks.c | 67 uchar_t *up = (uchar_t *)&addr; in inet_nettoa() local 73 if (up[0]) { in inet_nettoa() 75 up[0], up[1], up[2], up[3]); in inet_nettoa() 76 } else if (up[1]) { in inet_nettoa() 77 (void) snprintf(result, len, "%d.%d.%d", up[1], up[2], up[3]); in inet_nettoa() 78 } else if (up[2]) { in inet_nettoa() 79 (void) snprintf(result, len, "%d.%d", up[2], up[3]); in inet_nettoa() 81 (void) snprintf(result, len, "%d", up[3]); in inet_nettoa()
|
/titanic_50/usr/src/lib/libipmi/common/ |
H A D | ipmi_user.c | 185 ipmi_user_t *up; in ipmi_user_iter() local 225 up = &uip->iu_user; in ipmi_user_iter() 227 up->iu_enabled = resp->igua_enabled_uid; in ipmi_user_iter() 228 up->iu_uid = i; in ipmi_user_iter() 229 up->iu_ipmi_msg_enable = resp->igua_ipmi_msg_enable; in ipmi_user_iter() 230 up->iu_link_auth_enable = resp->igua_link_auth_enable; in ipmi_user_iter() 231 up->iu_priv = resp->igua_privilege_level; in ipmi_user_iter() 251 if ((up->iu_name = ipmi_strdup(ihp, name)) == NULL) in ipmi_user_iter() 271 ipmi_user_callback(ipmi_user_t *up, void *data) in ipmi_user_callback() argument 278 if (up->iu_name) { in ipmi_user_callback() [all …]
|
/titanic_50/usr/src/cmd/rexd/ |
H A D | unix_login.c | 417 struct utmpx *up; in LogoutUser() local 434 while (up = getutxent()) { in LogoutUser() 435 if (up->ut_pid == pid) { in LogoutUser() 436 if (up->ut_type == DEAD_PROCESS) { in LogoutUser() 443 strncpy(user, up->ut_user, sizeof (up->ut_user)); in LogoutUser() 444 user[sizeof (up->ut_user)] = '\0'; in LogoutUser() 445 strncpy(ttyn, up->ut_line, sizeof (up->ut_line)); in LogoutUser() 446 ttyn[sizeof (up->ut_line)] = '\0'; in LogoutUser() 447 strncpy(rhost, up->ut_host, sizeof (up->ut_host)); in LogoutUser() 448 rhost[sizeof (up->ut_host)] = '\0'; in LogoutUser() [all …]
|