]>
Commit | Line | Data |
---|---|---|
35e0c2ec MK |
1 | .\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk |
2 | .\" <mtk.manpages@gmail.com> | |
3 | .\" | |
93015253 | 4 | .\" %%%LICENSE_START(VERBATIM) |
35e0c2ec MK |
5 | .\" Permission is granted to make and distribute verbatim copies of this |
6 | .\" manual provided the copyright notice and this permission notice are | |
7 | .\" preserved on all copies. | |
8 | .\" | |
9 | .\" Permission is granted to copy and distribute modified versions of this | |
10 | .\" manual under the conditions for verbatim copying, provided that the | |
11 | .\" entire resulting derived work is distributed under the terms of a | |
12 | .\" permission notice identical to this one. | |
13 | .\" | |
14 | .\" Since the Linux kernel and libraries are constantly changing, this | |
15 | .\" manual page may be incorrect or out-of-date. The author(s) assume no | |
16 | .\" responsibility for errors or omissions, or for damages resulting from | |
17 | .\" the use of the information contained herein. The author(s) may not | |
18 | .\" have taken the same level of care in the production of this manual, | |
19 | .\" which is licensed free of charge, as they might when working | |
20 | .\" professionally. | |
21 | .\" | |
22 | .\" Formatted or processed versions of this manual, if unaccompanied by | |
23 | .\" the source, must acknowledge the copyright and authors of this work. | |
4b72fb64 | 24 | .\" %%%LICENSE_END |
35e0c2ec | 25 | .\" |
fe0fefbf | 26 | .TH GETUTMP 3 2015-03-02 "Linux" "Linux Programmer's Manual" |
35e0c2ec MK |
27 | .SH NAME |
28 | getutmp, getutmpx \- copy utmp structure to utmpx, and vice versa | |
29 | .SH SYNOPSIS | |
30 | .nf | |
86b91fdf | 31 | .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" |
35e0c2ec | 32 | .B #include <utmpx.h> |
dbfe9c70 | 33 | .PP |
35e0c2ec MK |
34 | .BI " void getutmp(const struct utmpx *" ux ", struct utmp *" u ); |
35 | .BI " void getutmpx(const struct utmp *" u ", struct utmpx *" ux ); | |
36 | .fi | |
37 | .SH DESCRIPTION | |
38 | The | |
39 | .BR getutmp () | |
40 | function copies the fields of the | |
41 | .I utmpx | |
42 | structure pointed to by | |
43 | .I ux | |
44 | to the corresponding fields of the | |
45 | .I utmp | |
46 | structure pointed to by | |
47 | .IR u . | |
48 | The | |
49 | .BR getutmpx () | |
50 | function performs the converse operation. | |
6f65dd85 | 51 | .SH RETURN VALUE |
ca9484da | 52 | These functions do not return a value. |
35e0c2ec MK |
53 | .SH VERSIONS |
54 | These functions first appeared in glibc in version 2.1.1. | |
e511c66a | 55 | .SH ATTRIBUTES |
b09a42f1 MK |
56 | For an explanation of the terms used in this section, see |
57 | .BR attributes (7). | |
58 | .TS | |
59 | allbox; | |
60 | lbw21 lb lb | |
61 | l l l. | |
62 | Interface Attribute Value | |
63 | T{ | |
64 | .BR getutmp (), | |
e511c66a | 65 | .BR getutmpx () |
b09a42f1 MK |
66 | T} Thread safety MT-Safe |
67 | .TE | |
35e0c2ec | 68 | .SH CONFORMING TO |
c8f2dd47 | 69 | These functions are nonstandard, but appear on a few other systems, |
35e0c2ec MK |
70 | such as Solaris and NetBSD. |
71 | .SH NOTES | |
72 | These functions exist primarily for compatibility with other | |
73 | systems where the | |
74 | .I utmp | |
75 | and | |
76 | .I utmpx | |
77 | structures contain different fields, | |
78 | or the size of corresponding fields differs. | |
d957336e | 79 | .\" e.g., on Solaris, the utmpx structure is rather larger than utmp. |
35e0c2ec MK |
80 | On Linux, the two structures contain the same fields, |
81 | and the fields have the same sizes. | |
82 | .SH SEE ALSO | |
392a12b2 | 83 | .BR utmpdump (1), |
35e0c2ec MK |
84 | .BR getutent (3), |
85 | .BR utmp (5) |