/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmutmp.c | 65 up->ut_user[0] = '.'; in account() 66 (void) strncpy(&up->ut_user[1], Tag, sizeof (up->ut_user)-1); in account() 67 (void) strncpy(up->ut_line, lastname(line), sizeof (up->ut_line)); in account() 68 up->ut_pid = getpid(); in account() 70 up->ut_id[0] = 't'; in account() 71 up->ut_id[1] = 'm'; in account() 72 up->ut_id[2] = SC_WILDC; in account() 75 up->ut_exit.e_exit = 0; in account() 122 struct utmpx *up; in cleanut() local 133 (void) strncpy(user, up->ut_user, sizeof (up->ut_user)); in cleanut() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | udb.c | 187 for (up = UdbEnts; !breakout; up++) 636 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++) 708 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++) 722 i = (*up->udb_dbp->get)(up->udb_dbp, 1004 (void) up->udb_dbp->close(up->udb_dbp, 1010 ret = up->udb_dbp->open(up->udb_dbp, 1098 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++) 1143 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++) 1148 (*up->udb_dbp->close)(up->udb_dbp); 1207 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++) in _udbx_close() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/dir/ |
H A D | getdents.c | 92 up = (struct dirent*)buf; 102 up->d_fileno = i; 103 u = up->d_name; 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); 120 #define MAXREC roundof(sizeof(*up)-sizeof(up->d_name)+sizeof(sp->d_name)+1,8) 134 up = (struct dirent*)buf; 152 up->d_reclen = sizeof(struct dirent) - sizeof(up->d_name) + (up->d_namlen = u - tmp) + 1; 153 up->d_reclen = roundof(up->d_reclen, 8); [all …]
|
/illumos-gate/usr/src/cmd/whodo/ |
H A D | whodo.c | 393 up->p_time = 0; in main() 400 if (up->p_state != NONE && up->p_state != ZOMBIE) { in main() 459 (void) strlcat(up->p_args, up->p_comm, in main() 588 up->p_time / 60L, up->p_time % 60L, in showproc() 623 calctotals(up); in showtotals() 655 if (up->p_state == NONE || up->p_state == ZOMBIE) in calctotals() 657 jobtime += up->p_time + up->p_ctime; in calctotals() 665 if (up->p_upid > curpid && (!up->p_igintr || empty)) { in calctotals() 774 up->p_child = up->p_sibling = up->p_pgrplink = up->p_link = 0; in findhash() 775 return (up); in findhash() [all …]
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | Resample.cc | 129 if (up <= 1) in updateState() 152 int fold = (up > down)? up : down; // take the bigger rate change in ResampleFilter() 158 num_state = (order + up - 1) / up; in ResampleFilter() 294 int num = (Fir::getFlushSize() + up - 1) / up; in interpolate_flush() 315 int delay_in = (delay + up - 1) / up; in interpolate() 338 else if (up <= 1) in filter_noadjust() 367 j -= up; in filter_noadjust() 372 *out++ = double2short(up * (poly_conv(coef + j, order - j, up, in filter_noadjust() 387 int num_in = (Fir::getFlushSize() + up - 1) / up; in getFlushSize() 400 int num = (Fir::getFlushSize() + up - 1) / up; in flush() [all …]
|
/illumos-gate/usr/src/lib/librpcsvc/common/ |
H A D | rusersxdr.c | 45 xdr_ru_utmp(xdrsp, up) in xdr_ru_utmp() argument 47 struct ru_utmp *up; 58 len = (int)sizeof (up->ut_line); 61 if (len != sizeof (up->ut_line)) { 67 len = (int)sizeof (up->ut_name); 70 if (len != sizeof (up->ut_name)) { 76 len = (int)sizeof (up->ut_host); 103 xdr_utmpidleptr(xdrsp, up) in xdr_utmpidleptr() argument 105 struct utmpidle **up; 114 xdr_utmpidlearr(xdrsp, up) in xdr_utmpidlearr() argument [all …]
|
H A D | rusers_simple.c | 45 struct utmpidlearr up; local 54 up.uia_cnt = 0; 55 up.uia_arr = NULL; 56 if (rusers(host, &up) != 0) 69 uap->utmp_array_len = up.uia_cnt; 71 i < up.uia_cnt; rutp++, i++) { 92 up.uia_arr[i]->ui_utmp.ut_line, 95 up.uia_arr[i]->ui_utmp.ut_name, 98 up.uia_arr[i]->ui_utmp.ut_host, 129 rusers(host, up) in rusers() argument [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr_cpu.c | 291 up->sbc_cpu_id = cpuid; in dr_attach_cpu() 319 f, up->sbc_cpu_id); in dr_post_attach_cpu() 363 dr_cpu_unit_t *up; in dr_pre_release_cpu() local 406 cpuid = up->sbc_cpu_id; in dr_pre_release_cpu() 519 f, up->sbc_cpu_id); in dr_pre_detach_cpu() 530 f, up->sbc_cpu_id); in dr_pre_detach_cpu() 580 up->sbc_cpu_id = -1; in dr_detach_cpu() 813 ASSERT(dr_cpu_unit_is_sane(up->sbc_cm.sbdev_bp, up)); in dr_cancel_cpu() 825 cp = cpu[up->sbc_cpu_id]; in dr_cancel_cpu() 848 up->sbc_cpu_id); in dr_cancel_cpu() [all …]
|
/illumos-gate/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_cpu.c | 305 up->sbc_cpu_id); in dr_pre_attach_cpu() 375 f, up->sbc_cpu_id); in dr_post_attach_cpu() 419 dr_cpu_unit_t *up; in dr_pre_release_cpu() local 459 cpuid = up->sbc_cpu_id; in dr_pre_release_cpu() 573 f, up->sbc_cpu_id); in dr_pre_detach_cpu() 584 f, up->sbc_cpu_id); in dr_pre_detach_cpu() 864 ASSERT(dr_cpu_unit_is_sane(up->sbc_cm.sbdev_bp, up)); in dr_cancel_cpu() 876 cp = cpu[up->sbc_cpu_id]; in dr_cancel_cpu() 889 f, up->sbc_cpu_id); in dr_cancel_cpu() 899 up->sbc_cpu_id); in dr_cancel_cpu() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | getoptl.c | 37 static Sfio_t* up; variable 51 if (!up && !(up = sfstropen()) || !(t = strdup(optstring))) in golly() 74 sfputc(up, ':'); in golly() 76 sfputc(up, '?'); in golly() 87 sfputc(up, *s); in golly() 90 sfputc(up, '?'); in golly() 93 sfputc(up, '['); in golly() 94 sfputc(up, ']'); in golly() 97 sfputc(up, '\n'); in golly() 107 sfstrclose(up); in golly() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | typesign.c | 6 static signed int * u_to_s_return(unsigned int *up) in u_to_s_return() argument 8 return up; in u_to_s_return() 13 unsigned int *up = sp; in s_to_u_init() local 14 return up; in s_to_u_init() 17 static signed int * u_to_s_init(unsigned int *up) in u_to_s_init() argument 19 signed int *sp = up; in u_to_s_init() 25 unsigned int *up; in s_to_u_assign() local 26 up = sp; in s_to_u_assign() 27 return up; in s_to_u_assign() 30 static signed int * u_to_s_assign(unsigned int *up) in u_to_s_assign() argument [all …]
|
H A D | restrict.c | 7 void * up; variable 16 rp = up; /* check-should-pass */ in foo() 17 up = rp; /* check-should-pass */ in foo() 23 void * up; in ref() local 28 pqp = &up; /* check-should-pass */ in ref() 31 pup = &up; /* check-should-pass */ in ref() 43 prp = &up; /* check-should-pass */ in bar() 46 pup = &up; /* check-should-pass */ in bar() 55 extern typeof(&up) pup; in baz() 58 prp = &up; /* check-should-pass */ in baz() [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | mc_amd.h | 281 #define MCREG_VAL32(up) ((up)->_val32) argument 286 #define MCREG_FIELD_CMN(up, field) _MCREG_FIELD(up, cmn, field) argument 291 #define MCREG_FIELD_F_preF(up, field) _MCREG_FIELD(up, f_preF, field) argument 296 #define MCREG_FIELD_F_revFG(up, field) _MCREG_FIELD(up, f_revFG, field) argument 342 #define HT_COHERENTNODES(up) (MCREG_FIELD_CMN(up, NodeCnt) + 1) argument 343 #define HT_SYSTEMCORECOUNT(up) (MCREG_FIELD_CMN(up, CpuCnt) + 1) argument 377 #define MC_DRAMBASE(up) ((uint64_t)MCREG_FIELD_CMN(up, DRAMBasei) << 24) argument 535 #define MC_CSBANKMODE(up, csnum) ((up)->_fmt_bankmodes.allcsmodes >> \ argument 831 #define MCMSR_VAL(up) ((up)->_val64) argument 833 #define MCMSR_FIELD_CMN(up, field) _MCMSR_FIELD(up, cmn, field) argument [all …]
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctprc1.c | 178 struct urec *up; in readctmp() local 187 up = NULL; in readctmp() 197 if (up == NULL || cb.ct_uid != up->ur_uid || in readctmp() 199 if (up == NULL) in readctmp() 200 up = ur; in readctmp() 213 up->ur_cnt = 0; in readctmp() 231 up->ur_cnt++; in readctmp() 233 if (up != NULL) in readctmp() 234 urlast = ++up; in readctmp() 251 struct urec *up; in getnamc() local [all …]
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | getnet.c | 71 uchar_t *up; in netaddr_getlogstr() local 74 up = (uchar_t *)&net; in netaddr_getlogstr() 76 if (up[0]) in netaddr_getlogstr() 79 up[0], up[1], up[2], up[3]); in netaddr_getlogstr() 80 else if (up[1]) in netaddr_getlogstr() 83 up[1], up[2], up[3]); in netaddr_getlogstr() 84 else if (up[2]) in netaddr_getlogstr() 87 up[2], up[3]); in netaddr_getlogstr() 91 up[3]); in netaddr_getlogstr()
|
/illumos-gate/usr/src/cmd/w/ |
H A D | w.c | 413 up = calloc(1, sizeof (*up)); in main() 418 up->p_time = in main() 421 up->p_ctime = in main() 431 if (up->p_args[0] == 0 || up->p_args[0] == '?' || in main() 432 (up->p_args[0] == '-' && up->p_args[1] <= ' ')) { in main() 433 (void) strlcat(up->p_args, " (", sizeof (up->p_args)); in main() 434 (void) strlcat(up->p_args, up->p_comm, in main() 436 (void) strlcat(up->p_args, ")", sizeof (up->p_args)); in main() 537 jobtime += up->p_time + up->p_ctime; in main() 543 if (up->p_upid > curpid && !up->p_igintr) { in main() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/xsave/ |
H A D | fpregs_xbv.c | 37 upad128_t u, *up; in main() local 73 up = &ctx.uc_mcontext.fpregs.fp_reg_set.fpchip_state.xmm[0]; in main() 74 if (up->_l[0] != 0 || up->_l[1] != 0 || up->_l[2] != 0 || in main() 75 up->_l[3] != 0) { in main() 77 "0x%x 0x%x 0x%x 0x%x", up->_l[3], up->_l[2], in main() 78 up->_l[1], up->_l[0]); in main()
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_unix.c | 50 unsigned char *up, *fp; in unix0() local 68 up = (unsigned char *)uxb; in unix0() 80 up += len; in unix0() 116 *up++ = c; in unix0() 132 *up++ = *fp++; in unix0() 155 *up++ = *fp++; in unix0() 168 *up++ = c; in unix0() 195 *up++ = *fp++; in unix0() 219 *up = 0; in unix0() 263 unsigned char *opt, *up; in unixex() [all …]
|
/illumos-gate/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;
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | sac.c | 461 struct utmpx *up; in cleanutx() local 480 if (up->ut_pid == pid) { in cleanutx() 487 strncpy(user, up->ut_user, sizeof (up->ut_user)); in cleanutx() 489 strncpy(ttyn, up->ut_line, sizeof (up->ut_line)); in cleanutx() 491 strncpy(rhost, up->ut_host, sizeof (up->ut_host)); in cleanutx() 537 (void) strncpy(up->ut_user, sp->sc_tag, sizeof (up->ut_user)); in account() 538 up->ut_pid = pid; in account() 540 up->ut_id[0] = 'P'; in account() 541 up->ut_id[1] = 'M'; in account() 542 up->ut_id[2] = SC_WILDC; in account() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/ |
H A D | repquota.c | 296 up = lookup(uid); in prquota() 297 if (up) in prquota() 389 for (up = uhead[uid % UHASH]; up != 0; up = up->u_next) in lookup() 391 return (up); in lookup() 395 (void) strncpy(up->u_name, pwp->pw_name, sizeof (up->u_name)); in lookup() 396 return (up); in lookup() 409 if (up == 0) { in adduid() 415 up->u_next = *uhp; in adduid() 416 *uhp = up; in adduid() 417 up->u_uid = uid; in adduid() [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.misc.c | 89 blkend(tchar **up) in blkend() argument 92 while (*up) in blkend() 93 up++; in blkend() 94 return (up); in blkend() 133 return (up); in blkcat() 194 (void) blkcpy(wp, up); in blkspl() 385 blkend_(char **up) in blkend_() argument 388 while (*up) in blkend_() 389 up++; in blkend_() 390 return (up); in blkend_() [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | netmasks.c | 65 uchar_t *up = (uchar_t *)&addr; in inet_nettoa() local 71 if (up[0]) { in inet_nettoa() 73 up[0], up[1], up[2], up[3]); in inet_nettoa() 74 } else if (up[1]) { in inet_nettoa() 75 (void) snprintf(result, len, "%d.%d.%d", up[1], up[2], up[3]); in inet_nettoa() 76 } else if (up[2]) { in inet_nettoa() 77 (void) snprintf(result, len, "%d.%d", up[2], up[3]); in inet_nettoa() 79 (void) snprintf(result, len, "%d", up[3]); in inet_nettoa()
|