Home
last modified time | relevance | path

Searched refs:up (Results 1 – 25 of 589) sorted by relevance

12345678910>>...24

/illumos-gate/usr/src/cmd/ttymon/
H A Dtmutmp.c65 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/contrib/ast/src/lib/libast/dir/
H A Dgetdents.c92 up = (struct dirent*)buf;
102 up->d_fileno = i;
103 u = up->d_name;
106up->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/sendmail/src/
H A Dudb.c189 for (up = UdbEnts; !breakout; up++)
638 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++)
710 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++)
724 i = (*up->udb_dbp->get)(up->udb_dbp,
1006 (void) up->udb_dbp->close(up->udb_dbp,
1012 ret = up->udb_dbp->open(up->udb_dbp,
1100 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++)
1145 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++)
1150 (*up->udb_dbp->close)(up->udb_dbp);
1209 for (up = UdbEnts; up->udb_type != UDB_EOLIST; up++) in _udbx_close()
[all …]
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c393 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/lib/librpcsvc/common/
H A Drusersxdr.c47 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)) {
69 len = (int)sizeof (up->ut_name);
72 if (len != sizeof (up->ut_name)) {
78 len = (int)sizeof (up->ut_host);
105 xdr_utmpidleptr(xdrsp, up) in xdr_utmpidleptr() argument
107 struct utmpidle **up;
116 xdr_utmpidlearr(xdrsp, up) in xdr_utmpidlearr() argument
[all …]
H A Drusers_simple.c45 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/cmd/audio/utilities/
H A DResample.cc131 if (up <= 1) in updateState()
154 int fold = (up > down)? up : down; // take the bigger rate change in ResampleFilter()
160 num_state = (order + up - 1) / up; in ResampleFilter()
296 int num = (Fir::getFlushSize() + up - 1) / up; in interpolate_flush()
317 int delay_in = (delay + up - 1) / up; in interpolate()
340 else if (up <= 1) in filter_noadjust()
369 j -= up; in filter_noadjust()
374 *out++ = double2short(up * (poly_conv(coef + j, order - j, up, in filter_noadjust()
389 int num_in = (Fir::getFlushSize() + up - 1) / up; in getFlushSize()
402 int num = (Fir::getFlushSize() + up - 1) / up; in flush()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/dr/
H A Ddr_cpu.c290 up->sbc_cpu_id = cpuid; in dr_attach_cpu()
318 f, up->sbc_cpu_id); in dr_post_attach_cpu()
362 dr_cpu_unit_t *up; in dr_pre_release_cpu() local
405 cpuid = up->sbc_cpu_id; in dr_pre_release_cpu()
518 f, up->sbc_cpu_id); in dr_pre_detach_cpu()
529 f, up->sbc_cpu_id); in dr_pre_detach_cpu()
579 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 Ddr_cpu.c304 up->sbc_cpu_id); in dr_pre_attach_cpu()
374 f, up->sbc_cpu_id); in dr_post_attach_cpu()
418 dr_cpu_unit_t *up; in dr_pre_release_cpu() local
458 cpuid = up->sbc_cpu_id; in dr_pre_release_cpu()
572 f, up->sbc_cpu_id); in dr_pre_detach_cpu()
583 f, up->sbc_cpu_id); in dr_pre_detach_cpu()
863 ASSERT(dr_cpu_unit_is_sane(up->sbc_cm.sbdev_bp, up)); in dr_cancel_cpu()
875 cp = cpu[up->sbc_cpu_id]; in dr_cancel_cpu()
888 f, up->sbc_cpu_id); in dr_cancel_cpu()
898 up->sbc_cpu_id); in dr_cancel_cpu()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dgetoptl.c37 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 Dtypesign.c6 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 Drestrict.c7 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 Ddogetnet.c46 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 Dmc_amd.h277 #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
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
531 #define MC_CSBANKMODE(up, csnum) ((up)->_fmt_bankmodes.allcsmodes >> \ argument
827 #define MCMSR_VAL(up) ((up)->_val64) argument
829 #define MCMSR_FIELD_CMN(up, field) _MCMSR_FIELD(up, cmn, field) argument
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dgetnet.c73 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()
/illumos-gate/usr/src/cmd/acct/
H A Dacctprc1.c179 struct urec *up; in readctmp() local
188 up = NULL; in readctmp()
198 if (up == NULL || cb.ct_uid != up->ur_uid || in readctmp()
200 if (up == NULL) in readctmp()
201 up = ur; in readctmp()
214 up->ur_cnt = 0; in readctmp()
232 up->ur_cnt++; in readctmp()
234 if (up != NULL) in readctmp()
235 urlast = ++up; in readctmp()
252 struct urec *up; in getnamc() local
[all …]
/illumos-gate/usr/src/cmd/w/
H A Dw.c413 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/cmd/vi/port/
H A Dex_unix.c50 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 Duidtonam.c55 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 Dnamtouid.c51 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 Dsac.c464 struct utmpx *up; in cleanutx() local
490 strncpy(user, up->ut_user, sizeof (up->ut_user)); in cleanutx()
492 strncpy(ttyn, up->ut_line, sizeof (up->ut_line)); in cleanutx()
494 strncpy(rhost, up->ut_host, sizeof (up->ut_host)); in cleanutx()
510 sizeof (up->ut_id)); in cleanutx()
541 (void) strncpy(up->ut_user, sp->sc_tag, sizeof (up->ut_user)); in account()
542 up->ut_pid = pid; in account()
544 up->ut_id[0] = 'P'; in account()
545 up->ut_id[1] = 'M'; in account()
546 up->ut_id[2] = SC_WILDC; in account()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/
H A Drepquota.c296 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 Dsh.misc.c91 blkend(tchar **up) in blkend() argument
94 while (*up) in blkend()
95 up++; in blkend()
96 return (up); in blkend()
135 return (up); in blkcat()
196 (void) blkcpy(wp, up); in blkspl()
387 blkend_(char **up) in blkend_() argument
390 while (*up) in blkend_()
391 up++; in blkend_()
392 return (up); in blkend_()
[all …]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dnetmasks.c67 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()
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_user.c185 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()
231 up->iu_priv = resp->igua_privilege_level; 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()
279 if (strcmp(up->iu_name, cbp->uic_name) == 0) in ipmi_user_callback()
280 cbp->uic_result = up; in ipmi_user_callback()
281 } else if (up->iu_uid == cbp->uic_uid) { in ipmi_user_callback()
[all …]

12345678910>>...24