Home
last modified time | relevance | path

Searched refs:utmp (Results 1 – 25 of 64) sorted by relevance

123

/glibc-2.36/login/
Dutmp_file.c42 static struct utmp last_entry;
47 matches_last_entry (const struct utmp *data) in matches_last_entry()
170 struct utmp buffer; in read_last_entry()
187 __libc_getutent_r (struct utmp *buffer, struct utmp **result) in __libc_getutent_r()
215 memcpy (buffer, &last_entry, sizeof (struct utmp)); in __libc_getutent_r()
226 internal_getut_nolock (const struct utmp *id) in internal_getut_nolock()
251 internal_getut_r (const struct utmp *id, bool *lock_failed) in internal_getut_r()
267 __libc_getutid_r (const struct utmp *id, struct utmp *buffer, in __libc_getutid_r()
268 struct utmp **result) in __libc_getutid_r()
285 memcpy (buffer, &last_entry, sizeof (struct utmp)); in __libc_getutid_r()
[all …]
Dutmp.h45 extern void login (const struct utmp *__entry) __THROW;
55 extern void updwtmp (const char *__wtmp_file, const struct utmp *__utmp)
62 extern struct utmp *getutent (void) __THROW;
72 extern struct utmp *getutid (const struct utmp *__id) __THROW;
76 extern struct utmp *getutline (const struct utmp *__line) __THROW;
79 extern struct utmp *pututline (const struct utmp *__utmp_ptr) __THROW;
84 extern int getutent_r (struct utmp *__buffer, struct utmp **__result) __THROW;
86 extern int getutid_r (const struct utmp *__id, struct utmp *__buffer,
87 struct utmp **__result) __THROW;
89 extern int getutline_r (const struct utmp *__line,
[all …]
Dgetutmp.c24 getutmp (const struct utmpx *utmpx, struct utmp *utmp) in getutmp() argument
26 utmp->ut_type = utmpx->ut_type; in getutmp()
27 utmp->ut_pid = utmpx->ut_pid; in getutmp()
28 memcpy (utmp->ut_line, utmpx->ut_line, sizeof (utmp->ut_line)); in getutmp()
29 memcpy (utmp->ut_user, utmpx->ut_user, sizeof (utmp->ut_user)); in getutmp()
30 memcpy (utmp->ut_id, utmpx->ut_id, sizeof (utmp->ut_id)); in getutmp()
31 memcpy (utmp->ut_host, utmpx->ut_host, sizeof (utmp->ut_host)); in getutmp()
32 utmp->ut_tv = utmpx->ut_tv; in getutmp()
Dgetutmpx.c24 getutmpx (const struct utmp *utmp, struct utmpx *utmpx) in getutmpx() argument
27 utmpx->ut_type = utmp->ut_type; in getutmpx()
28 utmpx->ut_pid = utmp->ut_pid; in getutmpx()
29 memcpy (utmpx->ut_line, utmp->ut_line, sizeof (utmp->ut_line)); in getutmpx()
30 memcpy (utmpx->ut_user, utmp->ut_user, sizeof (utmp->ut_user)); in getutmpx()
31 memcpy (utmpx->ut_id, utmp->ut_id, sizeof (utmp->ut_id)); in getutmpx()
32 memcpy (utmpx->ut_host, utmp->ut_host, sizeof (utmp->ut_host)); in getutmpx()
33 utmpx->ut_tv = utmp->ut_tv; in getutmpx()
Dutmp-private.h28 int __libc_getutent_r (struct utmp *, struct utmp **) attribute_hidden;
29 int __libc_getutid_r (const struct utmp *, struct utmp *, struct utmp **)
31 int __libc_getutline_r (const struct utmp *, struct utmp *, struct utmp **)
33 struct utmp *__libc_pututline (const struct utmp *) attribute_hidden;
35 int __libc_updwtmp (const char *, const struct utmp *) attribute_hidden;
Dtst-utmp.c28 # define utmp utmpx macro
73 struct utmp entry[] =
90 int num_entries = sizeof entry / sizeof (struct utmp);
120 struct utmp *ut; in do_check()
129 && memcmp (ut, &entry[n], sizeof (struct utmp))) in do_check()
215 struct utmp *up; in check_login()
216 struct utmp ut; in check_login()
235 if (memcmp (up, &entry[n], sizeof (struct utmp))) in check_login()
252 struct utmp ut; in check_logout()
271 struct utmp *up; in check_id()
[all …]
Dgetutid.c23 libc_freeres_ptr (static struct utmp *buffer);
25 struct utmp *
26 __getutid (const struct utmp *id) in __getutid()
28 struct utmp *result; in __getutid()
32 buffer = (struct utmp *) malloc (sizeof (struct utmp)); in __getutid()
Dgetutline.c23 libc_freeres_ptr (static struct utmp *buffer);
26 struct utmp *
27 __getutline (const struct utmp *line) in __getutline()
29 struct utmp *result; in __getutline()
33 buffer = (struct utmp *) malloc (sizeof (struct utmp)); in __getutline()
Dgetutent.c23 libc_freeres_ptr (static struct utmp *buffer);
26 struct utmp *
29 struct utmp *result; in __getutent()
33 buffer = (struct utmp *) malloc (sizeof (struct utmp)); in __getutent()
Dgetutent_r.c42 __getutent_r (struct utmp *buffer, struct utmp **result) in weak_alias()
58 struct utmp * in weak_alias()
59 __pututline (const struct utmp *data) in weak_alias()
61 struct utmp *buffer; in weak_alias()
Dupdwtmp.c27 __updwtmp (const char *wtmp_file, const struct utmp *utmp) in __updwtmp() argument
31 __libc_updwtmp (file_name, utmp); in __updwtmp()
Dgetutline_r.c30 __getutline_r (const struct utmp *line, struct utmp *buffer, in __libc_lock_define()
31 struct utmp **result) in __libc_lock_define()
Dgetutid_r.c31 __getutid_r (const struct utmp *id, struct utmp *buffer, struct utmp **result) in __libc_lock_define()
DMakefile26 headers := utmp.h bits/utmp.h lastlog.h pty.h
46 tests := tst-utmp tst-utmpx tst-grantpt tst-ptsname tst-getlogin tst-updwtmpx \
Dlogout.c28 struct utmp tmp, utbuf; in __logout()
29 struct utmp *ut; in __logout()
/glibc-2.36/include/
Dutmp.h7 extern void __updwtmp (const char *__wtmp_file, const struct utmp *__utmp);
11 extern struct utmp *__getutent (void);
17 extern struct utmp *__getutid (const struct utmp *__id);
19 extern struct utmp *__getutline (const struct utmp *__line);
21 extern struct utmp *__pututline (const struct utmp *__utmp_ptr);
23 extern int __getutent_r (struct utmp *__buffer, struct utmp **__result);
25 extern int __getutid_r (const struct utmp *__id, struct utmp *__buffer,
26 struct utmp **__result);
28 extern int __getutline_r (const struct utmp *__line,
29 struct utmp *__buffer, struct utmp **__result);
/glibc-2.36/sysdeps/unix/sysv/linux/s390/s390-32/
Dutmp32.c44 struct utmp in64; \
45 struct utmp *out64; \
88 struct utmp *out64; in getutent32()
105 struct utmp out64; in getutent32_r()
106 struct utmp *out64p; in getutent32_r()
127 struct utmp in64; in getutid32_r()
128 struct utmp out64; in getutid32_r()
129 struct utmp *out64p; in getutid32_r()
152 struct utmp in64; in getutline32_r()
153 struct utmp out64; in getutline32_r()
[all …]
Dutmpx32.c116 getutmp32 (const struct utmpx32 *utmpx, struct utmp32 *utmp) in getutmp32() argument
119 struct utmp out64; in getutmp32()
123 utmp_convert64to32 (&out64, utmp); in getutmp32()
129 getutmpx32 (const struct utmp32 *utmp, struct utmpx32 *utmpx) in getutmpx32() argument
131 struct utmp in64; in getutmpx32()
134 utmp_convert32to64 (utmp, &in64); in getutmpx32()
Dutmpx32.h56 extern void __getutmp (const struct utmpx *__utmpx, struct utmp *__utmp);
57 extern void __getutmpx (const struct utmp *__utmp, struct utmpx *__utmpx);
/glibc-2.36/sysdeps/gnu/
Dgetutmp.c29 getutmp (const struct utmpx *utmpx, struct utmp *utmp) in getutmp() argument
31 assert (sizeof (struct utmp) == sizeof (struct utmpx)); in getutmp()
32 memcpy (utmp, utmpx, sizeof (struct utmp)); in getutmp()
Dutmpx.h43 struct utmp;
112 struct utmp *__utmp);
120 extern void getutmpx (const struct utmp *__utmp, struct utmpx *__utmpx);
/glibc-2.36/sysdeps/generic/
Dunwind-dw2.c252 _Unwind_Word utmp; in extract_cie_info() local
275 p = read_uleb128 (p, &utmp); in extract_cie_info()
276 ret = p + utmp; in extract_cie_info()
334 _Unwind_Word result, reg, utmp; in execute_stack_op() local
592 op_ptr = read_uleb128 (op_ptr, &utmp); in execute_stack_op()
593 result += utmp; in execute_stack_op()
744 _Unwind_Word reg, utmp; in execute_cfa_program() local
752 insn_ptr = read_uleb128 (insn_ptr, &utmp); in execute_cfa_program()
753 offset = (_Unwind_Sword) utmp * fs->data_align; in execute_cfa_program()
788 insn_ptr = read_uleb128 (insn_ptr, &utmp); in execute_cfa_program()
[all …]
Dutmp-equal.h26 __utmp_equal (const struct utmp *entry, const struct utmp *match) in __utmp_equal()
/glibc-2.36/manual/
Dusers.texi959 The user accounting database typically lives in @file{/etc/utmp},
960 @file{/var/adm/utmp} or @file{/var/run/utmp}. However, these files
978 the header file @file{utmp.h}.
979 @pindex utmp.h
982 @standards{SVID, utmp.h}
996 @deftp {Data Type} {struct utmp}
997 The @code{utmp} data structure is used to hold information about entries
1042 do this the @file{utmp.h} header provides macros
1049 @code{ut_type} member of the @code{utmp} structure. The values are
1054 @standards{SVID, utmp.h}
[all …]
/glibc-2.36/login/programs/
Dutmpdump.c26 print_entry (struct utmp *up) in print_entry()
49 struct utmp *up; in main()

123