Print this page
3124 Remove any existing references to utmp, use utmpx instead
*** 1,11 ****
'\" te
.\" Copyright 1989 AT&T. Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
! .TH GETUTXENT 3C "Jul 27, 2004"
.SH NAME
getutxent, getutxid, getutxline, pututxline, setutxent, endutxent, utmpxname,
getutmp, getutmpx, updwtmp, updwtmpx \- user accounting database functions
.SH SYNOPSIS
.LP
--- 1,11 ----
'\" te
.\" Copyright 1989 AT&T. Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
! .TH GETUTXENT 3C "Nov 21, 2014"
.SH NAME
getutxent, getutxid, getutxline, pututxline, setutxent, endutxent, utmpxname,
getutmp, getutmpx, updwtmp, updwtmpx \- user accounting database functions
.SH SYNOPSIS
.LP
*** 233,250 ****
.LP
The \fBut_session\fR member is not acted upon by the operating system. It is
used by applications interested in creating \fButmpx\fR entries.
.sp
.LP
! For records of type \fBUSER_PROCESS\fR, the \fBnonuser()\fR and
! \fBnonuserx()\fR macros use the value of the \fBut_exit.e_exit\fR member to
! mark \fButmpx\fR entries as real logins (as opposed to multiple xterms started
! by the same user on a window system). This allows the system utilities that
! display users to obtain an accurate indication of the number of actual users,
! while still permitting each \fBpty\fR to have a \fButmpx\fR record (as most
! applications expect.). The \fBNONROOT_USER\fR macro defines the value that
! \fBlogin\fR places in the \fBut_exit.e_exit\fR member.
.SH RETURN VALUES
.sp
.LP
Upon successful completion, \fBgetutxent()\fR, \fBgetutxid()\fR, and
\fBgetutxline()\fR each return a pointer to a \fButmpx\fR structure containing
--- 233,250 ----
.LP
The \fBut_session\fR member is not acted upon by the operating system. It is
used by applications interested in creating \fButmpx\fR entries.
.sp
.LP
! For records of type \fBUSER_PROCESS\fR, the \fBnonuserx()\fR macro uses
! value of the \fBut_exit.e_exit\fR member to mark \fButmpx\fR entries as real
! logins (as opposed to multiple xterms started by the same user on a window
! system). This allows the system utilities that display users to obtain an
! accurate indication of the number of actual users, while still permitting each
! \fBpty\fR to have a \fButmpx\fR record (as most applications expect). The
! \fBNONROOT_USRX\fR macro defines the value that \fBlogin\fR places in the
! \fBut_exit.e_exit\fR member.
.SH RETURN VALUES
.sp
.LP
Upon successful completion, \fBgetutxent()\fR, \fBgetutxid()\fR, and
\fBgetutxline()\fR each return a pointer to a \fButmpx\fR structure containing