Home
last modified time | relevance | path

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

12345678910>>...24

/illumos-gate/usr/src/cmd/ttymon/
H A Dtmutmp.c62 struct utmpx *up = &utmpx; /* and a pointer to it */ in account() local
64 (void) memset(up, '\0', sizeof (utmpx)); in account()
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()
69 up->ut_type = USER_PROCESS; 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()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dudb.c138 register struct udbent *up; local
187 for (up = UdbEnts; !breakout; up++)
212 switch (up->udb_type)
222 i = (*up->udb_dbp->seq)(up->udb_dbp, &key, &info, R_CURSOR);
227 (errno = (*up->udb_dbp->cursor)(up->udb_dbp,
230 (errno = (*up->udb_dbp->cursor)(up->udb_dbp,
306 i = (*up->udb_dbp->seq)(up->udb_dbp, &key, &info, R_NEXT);
364 i = (*up->udb_dbp->get)(up->udb_dbp, &key, &info, 0);
366 i = errno = (*up->udb_dbp->get)(up->udb_dbp, NULL,
514 i = strlen(up->udb_fwdhost) + strlen(a->q_user) + 1;
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/dir/
H A Dgetdents.c80 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++;
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);
111 return((char*)up - (char*)buf);
120 #define MAXREC roundof(sizeof(*up)-sizeof(up->d_name)+sizeof(sp->d_name)+1,8)
[all …]
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c187 struct uproc *up, *parent, *pgrp; in main() local
390 up = findhash(info.pr_pid); in main()
391 up->p_ttyd = info.pr_ttydev; in main()
392 up->p_state = (info.pr_nlwp == 0? ZOMBIE : RUNNING); in main()
393 up->p_time = 0; in main()
394 up->p_ctime = 0; in main()
395 up->p_igintr = 0; in main()
396 (void) strlcpy(up->p_comm, info.pr_fname, in main()
397 sizeof (up->p_comm)); in main()
398 up->p_args[0] = 0; in main()
[all …]
/illumos-gate/usr/src/cmd/audio/utilities/
H A DResample.cc129 if (up <= 1) in updateState()
149 up = rate_out / commonfactor; in ResampleFilter()
152 int fold = (up > down)? up : down; // take the bigger rate change in ResampleFilter()
157 if (up > 1) { // need (order/up) states in ResampleFilter()
158 num_state = (order + up - 1) / up; in ResampleFilter()
253 else if (up <= 1) // regular filter in interpolate_noadjust()
260 int coef_offset = up + up_offset; in interpolate_noadjust()
262 *out_ptr++ = double2short(up * poly_conv(coef + coef_offset, in interpolate_noadjust()
263 order - coef_offset, up, state, num_state)); in interpolate_noadjust()
268 for (j = 0; j < up; j++) { in interpolate_noadjust()
[all …]
/illumos-gate/usr/src/lib/librpcsvc/common/
H A Drusersxdr.c45 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)) {
64 if (!xdr_opaque(xdrsp, (char *)up->ut_line, len)) {
67 len = (int)sizeof (up->ut_name);
70 if (len != sizeof (up->ut_name)) {
73 if (!xdr_opaque(xdrsp, (char *)up->ut_name, len)) {
76 len = (int)sizeof (up->ut_host);
79 if (len != sizeof (up->ut_host)) {
[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)
63 uap->utmp_array_val = (rusers_utmp *)malloc(up.uia_cnt
66 xdr_free(xdr_utmpidlearr, (char *)&up);
69 uap->utmp_array_len = up.uia_cnt;
71 i < up.uia_cnt; rutp++, i++) {
88 xdr_free(xdr_utmpidlearr, (char *)&up);
92 up.uia_arr[i]->ui_utmp.ut_line,
[all …]
/illumos-gate/usr/src/uts/i86pc/io/dr/
H A Ddr_cpu.c234 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i]; in dr_pre_attach_cpu() local
236 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up)); in dr_pre_attach_cpu()
244 if ((up->sbc_cm.sbdev_unum % MAX_CORES_PER_CMP) == 0) { in dr_pre_attach_cpu()
246 up->sbc_cm.sbdev_path); in dr_pre_attach_cpu()
290 dr_cpu_unit_t *up = (dr_cpu_unit_t *)cp; in dr_attach_cpu() local
291 up->sbc_cpu_id = cpuid; in dr_attach_cpu()
311 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i]; in dr_post_attach_cpu() local
314 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up)); in dr_post_attach_cpu()
316 cp = cpu_get(up->sbc_cpu_id); in dr_post_attach_cpu()
319 f, up->sbc_cpu_id); in dr_post_attach_cpu()
[all …]
/illumos-gate/usr/src/uts/sun4u/ngdr/io/
H A Ddr_cpu.c279 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i]; in dr_pre_attach_cpu() local
281 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up)); in dr_pre_attach_cpu()
289 curr_cpu = DR_UNUM2SBD_UNUM(up->sbc_cm.sbdev_unum, in dr_pre_attach_cpu()
293 up->sbc_cm.sbdev_path); in dr_pre_attach_cpu()
297 if (up->sbc_cm.sbdev_state == DR_STATE_UNCONFIGURED) { in dr_pre_attach_cpu()
305 up->sbc_cpu_id); in dr_pre_attach_cpu()
367 dr_cpu_unit_t *up = (dr_cpu_unit_t *)devlist[i]; in dr_post_attach_cpu() local
370 ASSERT(dr_cpu_unit_is_sane(hp->h_bd, up)); in dr_post_attach_cpu()
372 cp = cpu_get(up->sbc_cpu_id); in dr_post_attach_cpu()
375 f, up->sbc_cpu_id); in dr_post_attach_cpu()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dgetoptl.c37 static Sfio_t* up; variable
49 if (!up || optstring != lastoptstring || longopts != lastlongopts) in golly()
51 if (!up && !(up = sfstropen()) || !(t = strdup(optstring))) in golly()
53 sfprintf(up, "[-1p%d]", flags); in golly()
57 sfprintf(up, "\n[%d:%s]", UCHAR_MAX + 1 + (o - longopts), o->name); in golly()
60 sfprintf(up, "\n[%c:%s]", o->val, o->name); in golly()
74 sfputc(up, ':'); in golly()
76 sfputc(up, '?'); in golly()
77 sfprintf(up, "[string]"); in golly()
84 sfprintf(up, "\n[%c]", c); in golly()
[all …]
/illumos-gate/usr/src/uts/intel/sys/
H A Dmc_amd.h279 #define _MCREG_FIELD(up, revsuffix, field) ((up)->_fmt_##revsuffix.field) argument
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
301 #define MCREG_FIELD_10_revAB(up, field) _MCREG_FIELD(up, 10_revAB, 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
395 #define MC_DRAMLIM(up) \ argument
[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/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
12 void f03(typeof(&up) dst) { } /* check-should-fail */ in f03()
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()
[all …]
/illumos-gate/usr/src/cmd/acct/
H A Dacctprc1.c178 struct urec *up; in readctmp() local
187 up = NULL; in readctmp()
197 if (up == NULL || cb.ct_uid != up->ur_uid || in readctmp()
198 !EQN(cb.ct_name, up->ur_name)) { in readctmp()
199 if (up == NULL) in readctmp()
200 up = ur; in readctmp()
201 if (++up >= &ur[a_usize]) { in readctmp()
208 up = &ur[a_usize - A_USIZE]; in readctmp()
210 up->ur_uid = cb.ct_uid; in readctmp()
211 CPYN(up->ur_name, cb.ct_name); in readctmp()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dgetnet.c71 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 Dw.c153 struct uproc *up; in main() local
413 up = calloc(1, sizeof (*up)); in main()
414 if (up == NULL) in main()
416 up->p_upid = info.pr_pid; in main()
417 up->p_ttyd = info.pr_ttydev; in main()
418 up->p_time = in main()
421 up->p_ctime = in main()
424 up->p_igintr = in main()
427 (void) strlcpy(up->p_comm, info.pr_fname, sizeof (up->p_comm)); in main()
430 (void) strlcpy(up->p_args, info.pr_psargs, sizeof (up->p_args)); in main()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/xsave/
H A Dfpregs_xbv.c37 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 Dex_unix.c50 unsigned char *up, *fp; in unix0() local
68 up = (unsigned char *)uxb; in unix0()
75 if ((up + len) >= (unsigned char *)&uxb[UXBSIZE]) { in unix0()
79 strncpy(up, multic, len); in unix0()
80 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 …]
/illumos-gate/usr/src/cmd/saf/
H A Dsac.c461 struct utmpx *up; in cleanutx() local
463 char user[sizeof (up->ut_user) + 1]; in cleanutx()
464 char ttyn[sizeof (up->ut_line) + 1]; in cleanutx()
465 char rhost[sizeof (up->ut_host) + 1]; in cleanutx()
479 while (up = getutxent()) { in cleanutx()
480 if (up->ut_pid == pid) { in cleanutx()
481 if (up->ut_type == DEAD_PROCESS) { in cleanutx()
487 strncpy(user, up->ut_user, sizeof (up->ut_user)); in cleanutx()
488 user[sizeof (up->ut_user)] = '\0'; in cleanutx()
489 strncpy(ttyn, up->ut_line, sizeof (up->ut_line)); in cleanutx()
[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/fs.d/ufs/repquota/
H A Drepquota.c288 struct username *up; in prquota() local
296 up = lookup(uid); in prquota()
297 if (up) in prquota()
298 (void) printf("%-10s", up->u_name); in prquota()
387 struct username *up; in lookup() local
389 for (up = uhead[uid % UHASH]; up != 0; up = up->u_next) in lookup()
390 if (up->u_uid == uid) in lookup()
391 return (up); in lookup()
394 up = adduid(pwp->pw_uid); in lookup()
395 (void) strncpy(up->u_name, pwp->pw_name, sizeof (up->u_name)); in lookup()
[all …]
/illumos-gate/usr/src/cmd/csh/
H A Dsh.misc.c89 blkend(tchar **up) in blkend() argument
92 while (*up) in blkend()
93 up++; in blkend()
94 return (up); in blkend()
129 blkcat(tchar **up, tchar **vp) in blkcat() argument
132 (void) blkcpy(blkend(up), vp); in blkcat()
133 return (up); in blkcat()
188 blkspl(tchar **up, tchar **vp) in blkspl() argument
191 (tchar **)xcalloc((unsigned)(blklen(up) + blklen(vp) + 1), in blkspl()
194 (void) blkcpy(wp, up); in blkspl()
[all …]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dnetmasks.c65 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()

12345678910>>...24