/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | ttyslot.c | 56 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 D | getut.c | 96 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 D | getlogin.c | 87 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 D | getutx.c | 131 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_44/usr/src/test/libc-tests/tests/random/ |
H A D | inz_split_vpp.c | 39 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 D | inz_split.c | 37 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 D | inz_vpp.c | 37 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 D | inz_region.c | 37 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 D | inz_mlock.c | 37 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 D | inz_child.c | 39 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_44/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | process.c | 184 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_44/usr/src/cmd/flowstat/ |
H A D | flowstat.c | 795 history_l_fields_buf_t ubuf; in show_history_time() local 840 bzero(&ubuf, sizeof (ubuf)); in show_history_time() 842 (void) snprintf(ubuf.history_l_flow, sizeof (ubuf.history_l_flow), "%s", in show_history_time() 846 (void) snprintf(ubuf.history_l_stime, sizeof (ubuf.history_l_stime), in show_history_time() 850 (void) snprintf(ubuf.history_l_etime, sizeof (ubuf.history_l_etime), in show_history_time() 852 (void) snprintf(ubuf.history_l_rbytes, sizeof (ubuf.history_l_rbytes), in show_history_time() 854 (void) snprintf(ubuf.history_l_obytes, sizeof (ubuf.history_l_obytes), in show_history_time() 856 (void) snprintf(ubuf.history_l_bandwidth, in show_history_time() 857 sizeof (ubuf.history_l_bandwidth), "%s Mbps", in show_history_time() 860 ofmt_print(state->us_ofmt, (void *)&ubuf); in show_history_time() [all …]
|
/titanic_44/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd_send.c | 77 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_44/usr/src/cmd/write/ |
H A D | write.c | 89 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_44/usr/src/cmd/krb5/kadmin/server/ |
H A D | ipropd_svc.c | 235 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_44/usr/src/cmd/mailx/ |
H A D | names.c | 56 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_44/usr/src/cmd/dlstat/ |
H A D | dlstat.c | 567 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_44/usr/src/uts/common/ipp/ |
H A D | ippctl.c | 603 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_44/usr/src/cmd/ssh/libssh/common/ |
H A D | sftp-common.c | 198 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_44/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_acl.c | 212 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_44/usr/src/cmd/sendmail/src/ |
H A D | parseaddr.c | 1969 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_44/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_trace.c | 422 _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_44/usr/src/lib/libsmbfs/smb/ |
H A D | mbuf.c | 414 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_44/usr/src/uts/common/syscall/ |
H A D | ucredsys.c | 128 ucred_get(pid_t pid, void *ubuf) in ucred_get() argument 177 err = copyout(uc, ubuf, uc->uc_size); in ucred_get()
|
/titanic_44/usr/src/cmd/truss/ |
H A D | expound.c | 380 } ubuf; in show_uname() local 383 Pread(Proc, &ubuf, sizeof (ubuf), offset) == sizeof (ubuf)) { in show_uname() 387 ubuf.sysname, in show_uname() 388 ubuf.nodename, in show_uname() 389 ubuf.release, in show_uname() 390 ubuf.version, in show_uname() 391 ubuf.machine); in show_uname() 399 struct ustat ubuf; in show_ustat() local 402 Pread(Proc, &ubuf, sizeof (ubuf), offset) == sizeof (ubuf)) { in show_ustat() 406 ubuf.f_tfree, in show_ustat() [all …]
|