Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dttyslot.c54 struct futmpx ubuf; in ttyslot() local
78 while ((fread(&ubuf, sizeof (ubuf), 1, fp)) == 1) { in ttyslot()
79 if ((ubuf.ut_type == INIT_PROCESS || in ttyslot()
80 ubuf.ut_type == LOGIN_PROCESS || in ttyslot()
81 ubuf.ut_type == USER_PROCESS) && in ttyslot()
82 strncmp(p, ubuf.ut_line, in ttyslot()
83 sizeof (ubuf.ut_line)) == 0) { in ttyslot()
86 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 …]
/illumos-gate/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()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dprocess.c181 struct utmpx *ubuf; in find_user() local
189 while (ubuf = getutxent()) { in find_user()
190 if (ubuf->ut_type == USER_PROCESS && in find_user()
191 strncmp(ubuf->ut_user, name, sizeof (ubuf->ut_user)) == 0) { in find_user()
196 sizeof (ubuf->ut_line), ubuf->ut_line); in find_user()
204 sizeof (ubuf->ut_line), ubuf->ut_line); in find_user()
219 (void) strlcpy(tty, ubuf->ut_line, TTY_SIZE); in find_user()
224 if (strcmp(ubuf->ut_line, tty) == 0) { in find_user()
/illumos-gate/usr/src/cmd/flowstat/
H A Dflowstat.c789 history_l_fields_buf_t ubuf; in show_history_time() local
834 bzero(&ubuf, sizeof (ubuf)); in show_history_time()
836 (void) snprintf(ubuf.history_l_flow, sizeof (ubuf.history_l_flow), "%s", in show_history_time()
840 (void) snprintf(ubuf.history_l_stime, sizeof (ubuf.history_l_stime), in show_history_time()
844 (void) snprintf(ubuf.history_l_etime, sizeof (ubuf.history_l_etime), in show_history_time()
846 (void) snprintf(ubuf.history_l_rbytes, sizeof (ubuf.history_l_rbytes), in show_history_time()
848 (void) snprintf(ubuf.history_l_obytes, sizeof (ubuf.history_l_obytes), in show_history_time()
850 (void) snprintf(ubuf.history_l_bandwidth, in show_history_time()
851 sizeof (ubuf.history_l_bandwidth), "%s Mbps", in show_history_time()
854 ofmt_print(state->us_ofmt, (void *)&ubuf); in show_history_time()
[all …]
/illumos-gate/usr/src/cmd/krb5/kwarn/
H A Dkwarnd_send.c75 register struct utmpx *ubuf; in warn_send() local
108 while ((ubuf = getutxent()) != NULL) { in warn_send()
109 if (ubuf->ut_type == USER_PROCESS) { in warn_send()
110 if (strncmp(rcp3, ubuf->ut_user, in warn_send()
111 sizeof (ubuf->ut_user)) == 0) { in warn_send()
112 strncpy(rterm, &ubuf->ut_line[0], in warn_send()
113 sizeof (ubuf->ut_line)+1); in warn_send()
/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libpcsc/common/
H A Dlibpcsc.c349 char *ubuf; in SCardListReaders() local
438 ubuf = bufp; in SCardListReaders()
446 if ((ubuf = pcsc_mem_alloc(hdl, ulen)) == NULL) { in SCardListReaders()
452 *bufpp = ubuf; in SCardListReaders()
458 bcopy(readers[i], ubuf + off, slen); in SCardListReaders()
463 ubuf[off] = '\0'; in SCardListReaders()
627 uint8_t *ubuf; in SCardStatus() local
641 ubuf = atrp; in SCardStatus()
643 if ((ubuf = pcsc_mem_alloc(hdl, ucs.ucs_atrlen)) == in SCardStatus()
649 *((LPBYTE *)atrp) = ubuf; in SCardStatus()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/cmd/mailx/
H A Dnames.c57 static char *norm(register char *user, register char *ubuf,
491 norm(register char *user, register char *ubuf, int nbangs) in norm() argument
500 snprintf(ubuf, BUFSIZ, "%s!%s", host, user); in norm()
501 user = ubuf; in norm()
518 strncpy(ubuf, user, cp - user); in norm()
519 ubuf[cp - user] = '\0'; in norm()
520 user = ubuf; in norm()
534 char ubuf[BUFSIZ], abuf[BUFSIZ]; in samebody() local
541 (void) strlcpy(ubuf, user, BUFSIZ); in samebody()
542 for (i = 0; ubuf[i]; i++) in samebody()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/lmrc/
H A Dlmrc_ioctl.c73 lmrc_drv_ioctl_drv_version(lmrc_t *lmrc, void *ubuf, size_t len, int mode) in lmrc_drv_ioctl_drv_version() argument
85 ret = ddi_copyout(&dv, ubuf, len, mode); in lmrc_drv_ioctl_drv_version()
98 lmrc_drv_ioctl_pci_info(lmrc_t *lmrc, void *ubuf, size_t len, int mode) in lmrc_drv_ioctl_pci_info() argument
134 ret = ddi_copyout(&pi, ubuf, len, mode); in lmrc_drv_ioctl_pci_info()
153 void *ubuf = (void *)dcmd->md_sgl.ms64_phys_addr; in lmrc_drv_ioctl() local
159 ubuf = (void *)(uintptr_t)dcmd->md_sgl.ms32_phys_addr; in lmrc_drv_ioctl()
163 ubuf = (void *)(uintptr_t)dcmd->md_sgl.ms64_phys_addr; in lmrc_drv_ioctl()
170 ret = lmrc_drv_ioctl_drv_version(lmrc, ubuf, xferlen, mode); in lmrc_drv_ioctl()
174 ret = lmrc_drv_ioctl_pci_info(lmrc, ubuf, xferlen, mode); in lmrc_drv_ioctl()
/illumos-gate/usr/src/cmd/dlstat/
H A Ddlstat.c573 history_l_fields_buf_t ubuf; in show_history_time() local
622 bzero(&ubuf, sizeof (ubuf)); in show_history_time()
624 (void) snprintf(ubuf.hl_link, sizeof (ubuf.hl_link), "%s", in show_history_time()
628 (void) snprintf(ubuf.hl_stime, sizeof (ubuf.hl_stime), "%s", in show_history_time()
632 (void) snprintf(ubuf.hl_etime, sizeof (ubuf.hl_etime), "%s", in show_history_time()
634 (void) snprintf(ubuf.hl_rbytes, sizeof (ubuf.hl_rbytes), in show_history_time()
636 (void) snprintf(ubuf.hl_obytes, sizeof (ubuf.hl_obytes), in show_history_time()
638 (void) snprintf(ubuf.hl_bandwidth, sizeof (ubuf.hl_bandwidth), in show_history_time()
641 ofmt_print(state->hs_ofmt, &ubuf); in show_history_time()
650 history_fields_buf_t ubuf; in show_history_res() local
[all …]
/illumos-gate/usr/src/uts/common/ipp/
H A Dippctl.c602 caddr_t ubuf; in ippctl_copyin() local
625 ubuf = (caddr_t)(uintptr_t)iioc32.ii32_buf; in ippctl_copyin()
634 ubuf = iioc.ii_buf; in ippctl_copyin()
645 ubuf = iioc.ii_buf; in ippctl_copyin()
649 DBG1(DBG_CBOPS, "ubuf = 0x%p\n", (void *)ubuf); in ippctl_copyin()
656 if (ubuflen == 0 || ubuf == NULL) in ippctl_copyin()
667 if (ddi_copyin(ubuf, (caddr_t)kbuf, ubuflen, mode) != 0) { in ippctl_copyin()
687 caddr_t ubuf; in ippctl_copyout() local
707 ubuf = (caddr_t)(uintptr_t)iioc32.ii32_buf; in ippctl_copyout()
716 ubuf = iioc.ii_buf; in ippctl_copyout()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_acl.c200 void *ubuf; in smbfs_acl_iocget() local
242 ubuf = (void *)(uintptr_t)iocb.addr; in smbfs_acl_iocget()
243 error = md_get_mem(mdp, ubuf, iocb.used, MB_MUSER); in smbfs_acl_iocget()
260 void *ubuf; in smbfs_acl_iocset() local
278 ubuf = (void *)(uintptr_t)iocb.addr; in smbfs_acl_iocset()
279 error = mb_put_mem(mbp, ubuf, iocb.used, MB_MUSER); in smbfs_acl_iocset()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dparseaddr.c1967 static char ubuf[MAXNAME + 2]; local
2035 cataddr(++tv, NULL, ubuf, sizeof(ubuf), ' ', false);
2043 a->q_user = sm_rpool_strdup_x(e->e_rpool, ubuf);
2074 stripquotes(ubuf);
2075 if (ISSMTPCODE(ubuf) && ubuf[3] == ' ')
2080 if ((off = isenhsc(ubuf + 4, ' ')) > 0)
2082 ubuf[off + 4] = '\0';
2088 ubuf[3] = '\0';
2090 (void) sm_strlcpyn(fmt, sizeof(fmt), 2, ubuf, " %s");
2092 usrerr(fmt, ubuf + off);
[all …]
/illumos-gate/usr/src/uts/common/io/overlay/
H A Doverlay_target.c765 overlay_target_pkt_copyin(const void *ubuf, void **outp, size_t *bsize, in overlay_target_pkt_copyin() argument
777 if (ddi_copyin(ubuf, pkt, sizeof (overlay_targ_pkt32_t), in overlay_target_pkt_copyin()
786 if (ddi_copyin(ubuf, pkt, *bsize, flags & FKIOCTL) != 0) { in overlay_target_pkt_copyin()
795 overlay_target_pkt_copyout(void *ubuf, void *buf, size_t bufsize, in overlay_target_pkt_copyout() argument
803 if (ddi_copyout(buf, ubuf, sizeof (overlay_targ_pkt32_t), in overlay_target_pkt_copyout()
807 if (ddi_copyout(buf, ubuf, bufsize, flags & FKIOCTL) != 0) in overlay_target_pkt_copyout()
983 overlay_target_list_copyin(const void *ubuf, void **outp, size_t *bsize, in overlay_target_list_copyin() argument
989 if (ddi_copyin(ubuf, &n, sizeof (overlay_targ_list_t), in overlay_target_list_copyin()
1004 if (ddi_copyin((void *)((uintptr_t)ubuf + in overlay_target_list_copyin()
1040 overlay_target_list_copyout(void *ubuf, void *buf, size_t bufsize, int flags) in overlay_target_list_copyout() argument
[all …]
/illumos-gate/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()
/illumos-gate/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