Home
last modified time | relevance | path

Searched refs:ubuf (Results 1 – 25 of 44) sorted by relevance

12

/titanic_50/usr/src/lib/libc/port/gen/
H A Dttyslot.c56 struct futmpx ubuf; in ttyslot() local
80 while ((fread(&ubuf, sizeof (ubuf), 1, fp)) == 1) { in ttyslot()
81 if ((ubuf.ut_type == INIT_PROCESS || in ttyslot()
82 ubuf.ut_type == LOGIN_PROCESS || in ttyslot()
83 ubuf.ut_type == USER_PROCESS) && in ttyslot()
84 strncmp(p, ubuf.ut_line, in ttyslot()
85 sizeof (ubuf.ut_line)) == 0) { in ttyslot()
88 strncmp(ubuf.ut_host, ":0", 2) == 0) in ttyslot()
H A Dgetut.c96 static struct utmp ubuf; /* Last entry returned to client */ variable
181 utmp_frec2api(&fubuf, &ubuf); in _compat_getutent()
184 return (&ubuf); in _compat_getutent()
196 utmp_api2frec(&ubuf, &fubuf); in _compat_getutid()
228 utmp_frec2api(&fubuf, &ubuf); in _compat_getutid()
229 return (&ubuf); in _compat_getutid()
250 utmp_frec2api(&fubuf, &ubuf); in _compat_getutid()
251 return (&ubuf); in _compat_getutid()
264 utmp_frec2api(&fubuf, &ubuf); in _compat_getutid()
275 utmp_api2frec(&ubuf, &fubuf); in _compat_getutline()
[all …]
H A Dgetlogin.c87 struct futmpx ubuf; in getl_r_common() local
94 (void) lseek64(uf, me * sizeof (ubuf), SEEK_SET); in getl_r_common()
95 if (read(uf, &ubuf, sizeof (ubuf)) != sizeof (ubuf)) { in getl_r_common()
100 if (ubuf.ut_user[0] == '\0') in getl_r_common()
104 ulen = strnlen(ubuf.ut_user, maxlen); in getl_r_common()
117 (void) strncpy(answer, ubuf.ut_user, ulen); in getl_r_common()
H A Dgetutx.c131 static struct utmpx ubuf; /* Last entry returned to client */ variable
263 utmpx_frec2api(&fubuf, &ubuf); in getutxent()
266 return (&ubuf); in getutxent()
308 utmpx_api2frec(&ubuf, &fubuf); in getutxid()
339 utmpx_frec2api(&fubuf, &ubuf); in getutxid()
340 return (&ubuf); in getutxid()
361 utmpx_frec2api(&fubuf, &ubuf); in getutxid()
362 return (&ubuf); in getutxid()
378 utmpx_frec2api(&fubuf, &ubuf); in getutxid()
421 utmpx_api2frec(&ubuf, &fubuf); in getutxline()
[all …]
/titanic_50/usr/src/test/libc-tests/tests/random/
H A Dinz_split_vpp.c39 uint8_t *ubuf; in main() local
60 ubuf = buf; in main()
62 assert(ubuf[i] == 'a'); in main()
64 assert(ubuf[i] == 0); in main()
66 assert(ubuf[i] == 0); in main()
68 assert(ubuf[i] == 'a'); in main()
80 ubuf = buf; in main()
82 assert(ubuf[i] == 'a'); in main()
84 assert(ubuf[i] == 'a'); in main()
86 assert(ubuf[i] == 'a'); in main()
[all …]
H A Dinz_split.c37 uint8_t *ubuf; in main() local
55 ubuf = buf; in main()
57 assert(ubuf[i] == 0); in main()
59 assert(ubuf[i] == 0); in main()
71 ubuf = buf; in main()
73 assert(ubuf[i] == 'a'); in main()
75 assert(ubuf[i] == 'a'); in main()
H A Dinz_vpp.c37 uint8_t *ubuf; in main() local
53 ubuf = buf; in main()
55 assert(ubuf[i] == 'a'); in main()
57 assert(ubuf[i] == 0); in main()
59 assert(ubuf[i] == 'a'); in main()
71 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
72 assert(ubuf[i] == 'a'); in main()
H A Dinz_region.c37 uint8_t *ubuf; in main() local
50 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
51 assert(ubuf[i] == 0); in main()
63 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
64 assert(ubuf[i] == 'a'); in main()
H A Dinz_mlock.c37 uint8_t *ubuf; in main() local
53 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
54 assert(ubuf[i] == 0); in main()
66 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
67 assert(ubuf[i] == 'a'); in main()
H A Dinz_child.c39 uint8_t *ubuf; in main() local
54 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
55 assert(ubuf[i] == 0); in main()
69 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
70 assert(ubuf[i] == 'a' + nchild); in main()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dprocess.c184 struct utmpx *ubuf; in find_user() local
192 while (ubuf = getutxent()) { in find_user()
193 if (ubuf->ut_type == USER_PROCESS && in find_user()
194 strncmp(ubuf->ut_user, name, sizeof (ubuf->ut_user)) == 0) { in find_user()
199 sizeof (ubuf->ut_line), ubuf->ut_line); in find_user()
207 sizeof (ubuf->ut_line), ubuf->ut_line); in find_user()
222 (void) strlcpy(tty, ubuf->ut_line, TTY_SIZE); in find_user()
227 if (strcmp(ubuf->ut_line, tty) == 0) { in find_user()
/titanic_50/usr/src/cmd/flowstat/
H A Dflowstat.c778 history_l_fields_buf_t ubuf; in show_history_time() local
823 bzero(&ubuf, sizeof (ubuf)); in show_history_time()
825 (void) snprintf(ubuf.history_l_flow, sizeof (ubuf.history_l_flow), "%s", in show_history_time()
829 (void) snprintf(ubuf.history_l_stime, sizeof (ubuf.history_l_stime), in show_history_time()
833 (void) snprintf(ubuf.history_l_etime, sizeof (ubuf.history_l_etime), in show_history_time()
835 (void) snprintf(ubuf.history_l_rbytes, sizeof (ubuf.history_l_rbytes), in show_history_time()
837 (void) snprintf(ubuf.history_l_obytes, sizeof (ubuf.history_l_obytes), in show_history_time()
839 (void) snprintf(ubuf.history_l_bandwidth, in show_history_time()
840 sizeof (ubuf.history_l_bandwidth), "%s Mbps", in show_history_time()
843 ofmt_print(state->us_ofmt, (void *)&ubuf); in show_history_time()
[all …]
/titanic_50/usr/src/cmd/krb5/kwarn/
H A Dkwarnd_send.c77 register struct utmpx *ubuf; in warn_send() local
110 while ((ubuf = getutxent()) != NULL) { in warn_send()
111 if (ubuf->ut_type == USER_PROCESS) { in warn_send()
112 if (strncmp(rcp3, ubuf->ut_user, in warn_send()
113 sizeof (ubuf->ut_user)) == 0) { in warn_send()
114 strncpy(rterm, &ubuf->ut_line[0], in warn_send()
115 sizeof (ubuf->ut_line)+1); in warn_send()
/titanic_50/usr/src/cmd/write/
H A Dwrite.c89 struct utmpx *ubuf; in main() local
176 for (self.ut_pid = 0, count = 0; (ubuf = getutxent()) != NULL; ) { in main()
179 if (ubuf->ut_type == USER_PROCESS) { in main()
182 if (strncmp(&ubuf->ut_line[0], oterminal, in main()
183 sizeof (ubuf->ut_line)) == 0) self = *ubuf; in main()
187 if (strncmp(receipient, &ubuf->ut_user[0], in main()
188 sizeof (ubuf->ut_user)) == 0) { in main()
194 if (strncmp(terminal, &ubuf->ut_line[0], in main()
195 sizeof (ubuf->ut_line)) == 0) { in main()
196 strlcpy(rterm, &ubuf->ut_line[0], in main()
[all …]
/titanic_50/usr/src/cmd/krb5/kadmin/server/
H A Dipropd_svc.c235 char ubuf[MAX_FILENAME + sizeof (KDB5_UTIL_DUMP_STR)] = {0}; in iprop_full_resync_1() local
311 if (strlcpy(ubuf, KDB5_UTIL_DUMP_STR, sizeof (ubuf)) >= in iprop_full_resync_1()
312 sizeof (ubuf)) { in iprop_full_resync_1()
315 if (strlcat(ubuf, tmpf, sizeof (ubuf)) >= sizeof (ubuf)) { in iprop_full_resync_1()
319 (sizeof (ubuf) - 1)); in iprop_full_resync_1()
343 DPRINT(("%s: run `%s' ...\n", whoami, ubuf)); in iprop_full_resync_1()
352 pret = pclose(popen(ubuf, "w")); in iprop_full_resync_1()
/titanic_50/usr/src/cmd/mailx/
H A Dnames.c56 static char *norm(register char *user, register char *ubuf,
490 norm(register char *user, register char *ubuf, int nbangs) in norm() argument
499 snprintf(ubuf, BUFSIZ, "%s!%s", host, user); in norm()
500 user = ubuf; in norm()
517 strncpy(ubuf, user, cp - user); in norm()
518 ubuf[cp - user] = '\0'; in norm()
519 user = ubuf; in norm()
533 char ubuf[BUFSIZ], abuf[BUFSIZ]; in samebody() local
540 (void) strlcpy(ubuf, user, BUFSIZ); in samebody()
541 for (i = 0; ubuf[i]; i++) in samebody()
[all …]
/titanic_50/usr/src/cmd/dlstat/
H A Ddlstat.c567 history_l_fields_buf_t ubuf; in show_history_time() local
616 bzero(&ubuf, sizeof (ubuf)); in show_history_time()
618 (void) snprintf(ubuf.hl_link, sizeof (ubuf.hl_link), "%s", in show_history_time()
622 (void) snprintf(ubuf.hl_stime, sizeof (ubuf.hl_stime), "%s", in show_history_time()
626 (void) snprintf(ubuf.hl_etime, sizeof (ubuf.hl_etime), "%s", in show_history_time()
628 (void) snprintf(ubuf.hl_rbytes, sizeof (ubuf.hl_rbytes), in show_history_time()
630 (void) snprintf(ubuf.hl_obytes, sizeof (ubuf.hl_obytes), in show_history_time()
632 (void) snprintf(ubuf.hl_bandwidth, sizeof (ubuf.hl_bandwidth), in show_history_time()
635 ofmt_print(state->hs_ofmt, &ubuf); in show_history_time()
644 history_fields_buf_t ubuf; in show_history_res() local
[all …]
/titanic_50/usr/src/uts/common/ipp/
H A Dippctl.c603 caddr_t ubuf; in ippctl_copyin() local
626 ubuf = (caddr_t)(uintptr_t)iioc32.ii32_buf; in ippctl_copyin()
635 ubuf = iioc.ii_buf; in ippctl_copyin()
646 ubuf = iioc.ii_buf; in ippctl_copyin()
650 DBG1(DBG_CBOPS, "ubuf = 0x%p\n", (void *)ubuf); in ippctl_copyin()
657 if (ubuflen == 0 || ubuf == NULL) in ippctl_copyin()
668 if (ddi_copyin(ubuf, (caddr_t)kbuf, ubuflen, mode) != 0) { in ippctl_copyin()
688 caddr_t ubuf; in ippctl_copyout() local
708 ubuf = (caddr_t)(uintptr_t)iioc32.ii32_buf; in ippctl_copyout()
717 ubuf = iioc.ii_buf; in ippctl_copyout()
[all …]
/titanic_50/usr/src/cmd/ssh/libssh/common/
H A Dsftp-common.c198 char buf[1024], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; in ls_file() local
204 snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid); in ls_file()
205 user = ubuf; in ls_file()
/titanic_50/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_acl.c212 void *ubuf; in smbfs_acl_iocget() local
254 ubuf = (void *)(uintptr_t)iocb.addr; in smbfs_acl_iocget()
255 error = md_get_mem(mdp, ubuf, iocb.used, MB_MUSER); in smbfs_acl_iocget()
272 void *ubuf; in smbfs_acl_iocset() local
290 ubuf = (void *)(uintptr_t)iocb.addr; in smbfs_acl_iocset()
291 error = mb_put_mem(mbp, ubuf, iocb.used, MB_MUSER); in smbfs_acl_iocset()
/titanic_50/usr/src/cmd/sendmail/src/
H A Dparseaddr.c1969 static char ubuf[MAXNAME + 2]; local
2037 cataddr(++tv, NULL, ubuf, sizeof(ubuf), ' ', false);
2045 a->q_user = sm_rpool_strdup_x(e->e_rpool, ubuf);
2076 stripquotes(ubuf);
2077 if (ISSMTPCODE(ubuf) && ubuf[3] == ' ')
2082 if ((off = isenhsc(ubuf + 4, ' ')) > 0)
2084 ubuf[off + 4] = '\0';
2090 ubuf[3] = '\0';
2092 (void) sm_strlcpyn(fmt, sizeof(fmt), 2, ubuf, " %s");
2094 usrerr(fmt, ubuf + off);
[all …]
/titanic_50/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_trace.c422 _sdtr_t *ubuf; in _sd_adump() local
511 ubuf = uap->buf; in _sd_adump()
516 if (copyout(&(t->tt_buf[tt.tt_out]), ubuf, in _sd_adump()
520 ubuf += cnt; in _sd_adump()
522 if (copyout(&(t->tt_buf[0]), ubuf, cnt * sizeof (_sdtr_t))) { in _sd_adump()
527 if (copyout(&(t->tt_buf[tt.tt_out]), ubuf, in _sd_adump()
/titanic_50/usr/src/lib/libsmbfs/smb/
H A Dmbuf.c414 uint16_t *ubuf; in mb_put_ustring() local
417 ubuf = convert_utf8_to_leunicode(s); in mb_put_ustring()
418 if (ubuf == NULL) in mb_put_ustring()
420 len = 2 * (unicode_strlen(ubuf) + 1); in mb_put_ustring()
421 err = mb_put_mem(mbp, ubuf, len, MB_MSYSTEM); in mb_put_ustring()
422 free(ubuf); in mb_put_ustring()
/titanic_50/usr/src/uts/common/syscall/
H A Ducredsys.c128 ucred_get(pid_t pid, void *ubuf) in ucred_get() argument
177 err = copyout(uc, ubuf, uc->uc_size); in ucred_get()
/titanic_50/usr/src/cmd/truss/
H A Dexpound.c381 } ubuf; in show_uname() local
384 Pread(Proc, &ubuf, sizeof (ubuf), offset) == sizeof (ubuf)) { in show_uname()
388 ubuf.sysname, in show_uname()
389 ubuf.nodename, in show_uname()
390 ubuf.release, in show_uname()
391 ubuf.version, in show_uname()
392 ubuf.machine); in show_uname()
400 struct ustat ubuf; in show_ustat() local
403 Pread(Proc, &ubuf, sizeof (ubuf), offset) == sizeof (ubuf)) { in show_ustat()
407 ubuf.f_tfree, in show_ustat()
[all …]

12