| /netbsd-src/libexec/ftpd/ |
| H A D | logwtmp.c | 89 struct utmp ut; in ftpd_logwtmp() local 95 (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line)); in ftpd_logwtmp() 96 (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name)); in ftpd_logwtmp() 97 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host)); in ftpd_logwtmp() 98 (void)time(&ut.ut_time); in ftpd_logwtmp() 99 if (write(fd, (char *)&ut, sizeof(struct utmp)) != in ftpd_logwtmp() 121 struct utmpx ut; in ftpd_logwtmpx() local 127 (void)memset(&ut, 0, sizeof(ut)); in ftpd_logwtmpx() 128 (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line)); in ftpd_logwtmpx() 129 (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name)); in ftpd_logwtmpx() [all …]
|
| H A D | logutmp.c | 91 ftpd_login(const struct utmp *ut) in ftpd_login() argument 127 (void)write(fd, ut, sizeof(UTMP)); in ftpd_login() 133 UTMP ut; in ftpd_logout() local 142 while (read(fd, &ut, sizeof(UTMP)) == sizeof(UTMP)) { in ftpd_logout() 143 if (!ut.ut_name[0] in ftpd_logout() 144 || strncmp(ut.ut_line, line, UT_LINESIZE)) in ftpd_logout() 146 memset(ut.ut_name, 0, UT_NAMESIZE); in ftpd_logout() 147 memset(ut.ut_host, 0, UT_HOSTSIZE); in ftpd_logout() 148 (void)time(&ut.ut_time); in ftpd_logout() 150 (void)write(fd, &ut, sizeof(UTMP)); in ftpd_logout() [all …]
|
| /netbsd-src/external/bsd/tmux/usr.bin/tmux/ |
| H A D | utempter.c | 63 struct utmpx ut; in doutmpx() local 66 (void)memset(&ut, 0, sizeof(ut)); in doutmpx() 67 ut.ut_tv = *now; in doutmpx() 68 (void)strncpy(ut.ut_name, username, sizeof(ut.ut_name)); in doutmpx() 70 (void)strncpy(ut.ut_host, hostname, sizeof(ut.ut_host)); in doutmpx() 71 (void)strncpy(ut.ut_line, tty, sizeof(ut.ut_line)); in doutmpx() 72 ut.ut_type = type; in doutmpx() 73 ut.ut_pid = pid; in doutmpx() 75 if ((size_t)(t - tty) >= sizeof(ut.ut_id)) in doutmpx() 76 tty = t - sizeof(ut.ut_id); in doutmpx() [all …]
|
| /netbsd-src/lib/libc/gen/ |
| H A D | utmpx.c | 60 static struct utmpx ut; variable 97 (void)memset(&ut, 0, sizeof(ut)); in setutxent() 100 (void)fseeko(fp, (off_t)sizeof(ut), SEEK_SET); in setutxent() 108 (void)memset(&ut, 0, sizeof(ut)); in endutxent() 139 (void)memset(&ut, 0, sizeof(ut)); in getutxent() 140 ut.ut_type = SIGNATURE; in getutxent() 141 (void)memcpy(ut.ut_user, vers, sizeof(vers)); in getutxent() 142 if (fwrite(&ut, sizeof(ut), 1, fp) != 1) in getutxent() 146 if (fread(&ut, sizeof(ut), 1, fp) != 1) in getutxent() 148 if (memcmp(ut.ut_user, vers, 5) != 0 || in getutxent() [all …]
|
| H A D | utmp.c | 47 static FILE *ut; variable 53 if (ut == NULL) in setutent() 55 (void)fseeko(ut, (off_t)0, SEEK_SET); in setutent() 61 if (ut == NULL) { in getutent() 64 if ((ut = fopen(utfile, "re")) == NULL) in getutent() 66 if (fstat(fileno(ut), &st) == -1) in getutent() 75 if (fread(&utmp, sizeof(utmp), 1, ut) == 1) in getutent() 78 (void)fclose(ut); in getutent() 85 if (ut != NULL) { in endutent() 86 (void)fclose(ut); in endutent() [all …]
|
| /netbsd-src/lib/libc/compat/gen/ |
| H A D | compat_utmpx.c | 69 cvt(struct utmpx *ut) in cvt() argument 71 if (ut == NULL) in cvt() 73 timeval_to_timeval50(&ut->ut_tv, (void *)&ut->ut_tv); in cvt() 74 return (void *)ut; in cvt() 104 struct utmpx ut; in getutxid() local 105 utmpx50_to_utmpx(ut50, &ut); in getutxid() 106 return cvt(__getutxid50(&ut)); in getutxid() 112 struct utmpx ut; in getutxline() local 113 utmpx50_to_utmpx(ut50, &ut); in getutxline() 114 return cvt(__getutxline50(&ut)); in getutxline() [all …]
|
| H A D | compat_utmp.c | 53 cvt(struct utmp *ut) in cvt() argument 55 struct utmp50 *ut50 = (void *)ut; in cvt() 56 if (ut == NULL) in cvt() 58 ut50->ut_time = (int32_t)ut->ut_time; in cvt()
|
| /netbsd-src/lib/libutil/ |
| H A D | logwtmpx.c | 59 struct utmpx ut; in logwtmpx() local 65 (void)memset(&ut, 0, sizeof(ut)); in logwtmpx() 66 (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line)); in logwtmpx() 67 (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name)); in logwtmpx() 68 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host)); in logwtmpx() 69 ut.ut_type = type; in logwtmpx() 71 ut.ut_exit.e_exit = (uint16_t)WEXITSTATUS(status); in logwtmpx() 73 ut.ut_exit.e_termination = (uint16_t)WTERMSIG(status); in logwtmpx() 74 (void)gettimeofday(&ut.ut_tv, NULL); in logwtmpx() 75 (void)updwtmpx(_PATH_WTMPX, &ut); in logwtmpx()
|
| H A D | logout.c | 57 struct utmp ut; in logout() local 64 while (read(fd, &ut, sizeof(ut)) == sizeof(ut)) { in logout() 65 if (!ut.ut_name[0] || strncmp(ut.ut_line, line, in logout() 68 memset(ut.ut_name, 0, (size_t)UT_NAMESIZE); in logout() 69 memset(ut.ut_host, 0, (size_t)UT_HOSTSIZE); in logout() 70 (void)time(&ut.ut_time); in logout() 71 (void)lseek(fd, -(off_t)sizeof(ut), SEEK_CUR); in logout() 72 (void)write(fd, &ut, sizeof(ut)); in logout()
|
| H A D | logwtmp.c | 56 struct utmp ut; in logwtmp() local 67 (void) strncpy(ut.ut_line, line, sizeof(ut.ut_line)); in logwtmp() 68 (void) strncpy(ut.ut_name, name, sizeof(ut.ut_name)); in logwtmp() 69 (void) strncpy(ut.ut_host, host, sizeof(ut.ut_host)); in logwtmp() 70 (void) time(&ut.ut_time); in logwtmp() 71 if (write(fd, &ut, sizeof(struct utmp)) != sizeof(struct utmp)) in logwtmp()
|
| H A D | login.c | 53 login(const struct utmp *ut) in login() argument 58 _DIAGASSERT(ut != NULL); in login() 63 (void)write(fd, ut, sizeof(struct utmp)); in login() 67 (void)write(fd, ut, sizeof(struct utmp)); in login()
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
| H A D | copy-file.c | 91 struct utimbuf ut; in copy_file_preserving() local 93 ut.actime = statbuf.st_atime; in copy_file_preserving() 94 ut.modtime = statbuf.st_mtime; in copy_file_preserving() 95 utime (dest_filename, &ut); in copy_file_preserving() 99 struct timeval ut[2]; in copy_file_preserving() local 101 ut[0].tv_sec = statbuf.st_atime; ut[0].tv_usec = 0; in copy_file_preserving() 102 ut[1].tv_sec = statbuf.st_mtime; ut[1].tv_usec = 0; in copy_file_preserving() 103 utimes (dest_filename, &ut); in copy_file_preserving()
|
| /netbsd-src/crypto/external/cpl/trousers/dist/src/tcsd/ |
| H A D | platform.c | 43 struct utmp ut, save, *next = NULL; in platform_get_runlevel() local 49 memset(&ut, 0, sizeof(struct utmp)); in platform_get_runlevel() 53 ut.ut_type = RUN_LVL; in platform_get_runlevel() 56 next = getutid(&ut); in platform_get_runlevel() 70 next = getutid(&ut); in platform_get_runlevel() 117 struct utmpx ut, *utp = NULL; in platform_get_runlevel() local 121 memset(&ut, 0, sizeof(ut)); in platform_get_runlevel() 122 ut.ut_type = RUN_LVL; in platform_get_runlevel() 125 utp = getutxid(&ut); in platform_get_runlevel()
|
| /netbsd-src/lib/libc/compat/include/ |
| H A D | utmp.h | 51 utmp_to_utmp50(const struct utmp *ut, struct utmp50 *ut50) in utmp_to_utmp50() argument 53 (void)memcpy(ut50, ut, sizeof(*ut50)); in utmp_to_utmp50() 54 ut50->ut_time = (int32_t)ut->ut_time; in utmp_to_utmp50() 58 utmp50_to_utmp(const struct utmp50 *ut50, struct utmp *ut) in utmp50_to_utmp() argument 60 (void)memcpy(ut, ut50, sizeof(*ut50)); in utmp50_to_utmp() 61 ut->ut_time = ut50->ut_time; in utmp50_to_utmp()
|
| H A D | utmpx.h | 63 utmpx50_to_utmpx(const struct utmpx50 *ut50, struct utmpx *ut) in utmpx50_to_utmpx() argument 65 (void)memcpy(ut, ut50, sizeof(*ut)); in utmpx50_to_utmpx() 66 timeval50_to_timeval(&ut50->ut_tv, &ut->ut_tv); in utmpx50_to_utmpx() 70 utmpx_to_utmpx50(const struct utmpx *ut, struct utmpx50 *ut50) in utmpx_to_utmpx50() argument 72 (void)memcpy(ut50, ut, sizeof(*ut50)); in utmpx_to_utmpx50() 73 timeval_to_timeval50(&ut->ut_tv, &ut50->ut_tv); in utmpx_to_utmpx50()
|
| /netbsd-src/lib/libutil/compat/ |
| H A D | compat_login.c | 64 struct utmp ut; in login() local 66 utmp50_to_utmp(ut50, &ut); in login() 71 (void)write(fd, &ut, sizeof(ut)); in login() 75 (void)write(fd, &ut, sizeof(ut)); in login()
|
| H A D | compat_loginx.c | 58 struct utmpx ut; in loginx() local 59 utmpx50_to_utmpx(ut50, &ut); in loginx() 60 (void)__pututxline50(&ut); in loginx() 61 (void)__updwtmpx50(_PATH_WTMPX, &ut); in loginx()
|
| /netbsd-src/libexec/rpc.rusersd/ |
| H A D | rusers_proc.c | 194 static utmp_array ut; in do_names_3() local 202 (void)memset(&ut, 0, sizeof(ut)); in do_names_3() 203 ut.utmp_array_val = utmps; in do_names_3() 217 ut.utmp_array_len = nu; in do_names_3() 219 return &ut; in do_names_3() 241 static struct utmpidlearr ut; in do_names_2() local 248 (void)memset(&ut, 0, sizeof(ut)); in do_names_2() 249 ut.uia_arr = utmp_idlep; in do_names_2() 250 ut.uia_cnt = 0; in do_names_2() 267 ut.uia_cnt = nu; in do_names_2() [all …]
|
| /netbsd-src/external/gpl2/groff/dist/contrib/mom/examples/ |
| H A D | sample_docs.mom | 58 nonumy eirmod tempor invidunt ut labore et do\%lo\%re magna ali\%quyam erat, 64 tempor invidunt ut labore et do\%lo\%re magna ali\%quyam erat, sed diam 68 ut labore et do\%lo\%re magna ali\%quyam erat, sed diam voluptua. At 75 kasd gubergren, no sea takimata sanctus est. Tempor invidunt ut 79 nonumy eirmod tempor invidunt ut labore et do\%lo\%re magna ali\%quyam erat, 81 eirmod tempor invidunt ut labore et do\%lo\%re magna. Tempor invidunt 82 ut labore et do\%lo\%re magna ali\%quyam erat, sed diam voluptua. 89 sed diam nonumy eirmod tempor invidunt ut labore et do\%lo\%re magna 96 invidunt ut labore et do\%lo\%re magna ali\%quyam erat, sed diam voluptua. 102 tempor invidunt ut labore et do\%lo\%re magna ali\%quyam erat, sed diam [all …]
|
| /netbsd-src/usr.bin/w/ |
| H A D | w.c | 143 struct utmp *ut; in main() local 277 while ((ut = getutent()) != NULL) { in main() 278 if (ut->ut_name[0] == '\0') in main() 282 strncmp(ut->ut_name, sel_user, sizeof(ut->ut_name)) != 0) in main() 287 if (strncmp(ep->line, ut->ut_line, in main() 288 sizeof(ut->ut_line)) == 0) in main() 301 (void)memcpy(ep->name, ut->ut_name, sizeof(ut->ut_name)); in main() 302 (void)memcpy(ep->line, ut->ut_line, sizeof(ut->ut_line)); in main() 303 (void)memcpy(ep->host, ut->ut_host, sizeof(ut->ut_host)); in main() 304 ep->name[sizeof(ut->ut_name)] = '\0'; in main() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/cleanup/ |
| H A D | loremipsum2 | 1 Sed ut perspiciatis unde omnis iste natus error sit voluptatem 8 velit, sed quia non numquam eius modi tempora incidunt ut labore 11 nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure 25 rerum necessitatibus saepe eveniet ut et voluptates repudiandae 27 sapiente delectus, ut aut reiciendis voluptatibus maiores alias 30 Sed ut perspiciatis unde omnis iste natus error sit voluptatem 37 velit, sed quia non numquam eius modi tempora incidunt ut labore 40 nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure 54 rerum necessitatibus saepe eveniet ut et voluptates repudiandae 56 sapiente delectus, ut aut reiciendis voluptatibus maiores alias
|
| /netbsd-src/sbin/init/ |
| H A D | init.c | 1345 struct utmpx ut; in make_utmpx() local 1348 (void)memset(&ut, 0, sizeof(ut)); in make_utmpx() 1349 (void)strlcpy(ut.ut_name, name, sizeof(ut.ut_name)); in make_utmpx() 1350 ut.ut_type = type; in make_utmpx() 1351 (void)strlcpy(ut.ut_line, line, sizeof(ut.ut_line)); in make_utmpx() 1352 ut.ut_pid = pid; in make_utmpx() 1354 ut.ut_tv = *tv; in make_utmpx() 1356 (void)gettimeofday(&ut.ut_tv, NULL); in make_utmpx() 1357 ut.ut_session = session; in make_utmpx() 1360 if ((size_t)(eline - line) >= sizeof(ut.ut_id)) in make_utmpx() [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/tests/ |
| H A D | refmpf.c | 31 mp_ptr ut, vt, wt; in refmpf_add() local 72 ut = TMP_ALLOC_LIMBS (size + 1); in refmpf_add() 75 MPN_ZERO (ut, size); in refmpf_add() 79 MPN_COPY (ut + off, PTR (u), ABSIZ (u)); in refmpf_add() 84 cy = mpn_add_n (wt, ut, vt, size); in refmpf_add() 203 mp_ptr ut, vt, wt; in refmpf_sub() local 245 ut = TMP_ALLOC_LIMBS (size + 1); in refmpf_sub() 248 MPN_ZERO (ut, size); in refmpf_sub() 252 MPN_COPY (ut + off, PTR (u), ABSIZ (u)); in refmpf_sub() 257 if (mpn_cmp (ut, vt, size) >= 0) in refmpf_sub() [all …]
|
| /netbsd-src/distrib/utils/libhack/ |
| H A D | utmp.c | 14 login(ut) in login() argument 15 const struct utmp *ut; in login() 20 loginx(ut) in loginx() argument 21 const struct utmpx *ut; in loginx()
|
| /netbsd-src/external/bsd/unbound/dist/testdata/ |
| H A D | test_ldnsrr.c5 | 104 …ut varius pulvinar," "mauris ante bibendum est," "vel pretium turpis massa auctor sem." "Cum socii…
|