Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com Message-ID: <003a01c28cfc$27ba1930$0201a8c0@sos> From: "Sergey Okhapkin" To: References: <002201c28cf5$861c8f50$0201a8c0 AT sos> <20021115223146 DOT GC28250 AT redhat DOT com> <002d01c28cf8$c729f930$0201a8c0 AT sos> <20021115225201 DOT GG28250 AT redhat DOT com> Subject: Re: Want to release 1.3.16 Date: Fri, 15 Nov 2002 18:10:12 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) That means "don't touch utmp code". At least for a now... Sergey Okhapkin Somerset, NJ ----- Original Message ----- From: "Christopher Faylor" To: Sent: Friday, November 15, 2002 5:52 PM Subject: Re: Want to release 1.3.16 > On Fri, Nov 15, 2002 at 05:46:01PM -0500, Sergey Okhapkin wrote: > >Which linux version?-) > > > >GETUTENT(3) Library functions GETUTENT(3) > > > >NAME > > getutent, getutid, getutline, pututline, setutent, endu­ > > tent, utmpname - access utmp file entries > > > >SYNOPSIS > > #include > > > > struct utmp *getutent(void); > > struct utmp *getutid(struct utmp *ut); > > struct utmp *getutline(struct utmp *ut); > > > > void pututline(struct utmp *ut); > > > >[sos AT router sos]$ uname -a > >Linux router.home 2.4.9-34 #1 Sat Jun 1 06:23:33 EDT 2002 i586 unknown > > > >It's RedHat 7.2 > > Red Hat 8. > > CONFORMING TO > XPG 2, SVID 2, Linux FSSTND 1.2 > > In XPG2 and SVID2 the function pututline() is documented to return > void, and that is what it does on many systems (AIX, HPUX, Linux > libc5). HPUX introduces a new function _pututline() with the prototype > given above for pututline() (also found in Linux libc5). > > All these functions are obsolete now on non-Linux systems. POSIX > 1003.1-2001, following XPG4.2, does not have any of these functions, > but instead uses > > #include > > struct utmpx *getutxent(void); > struct utmpx *getutxid(const struct utmpx *); > struct utmpx *getutxline(const struct utmpx *); > struct utmpx *pututxline(const struct utmpx *); > void setutxent(void); > void endutxent(void); > > The utmpx structure is a superset of the utmp structure, with addi- > tional fields, and larger versions of the existing fields. The corre- > sponding files are often /var/*/utmpx and /var/*/wtmpx. > > Linux glibc on the other hand does not use utmpx since its utmp struc- > ture is already large enough. The functions getutxent etc. are aliases > for getutent etc. > > cgf