delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/17/22:33:17

X-Spam-Check-By: sourceware.org
Message-ID: <45860BAA.6080505@cwilson.fastmail.fm>
Date: Sun, 17 Dec 2006 22:31:54 -0500
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: wtmpx support
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I think that winsup/cygwin/include/utmpx.h should include the following 
definition, similar to the existing one for UTMPX_FILE:

#define WTMPX_FILE _PATH_WTMP

I'm hitting a compile error in rxvt-unicode:

# if defined(HAVE_STRUCT_UTMPX) && defined(HAVE_UPDWTMPX)
       updwtmpx (WTMPX_FILE, utx);
# endif


Both HAVE_STRUCT_UTMPX and HAVE_UPDWTMPX are true, so I think we ought 
also to have WTMPX_FILE.  Since cygwin's utmp/wtmp file formats seem to 
be arranged so that they can be opened and used without error by 
functions that expect to populate either struct utmp OR struct utmpx, we 
can use _PATH_UTMP for UTMP_FILE and UTMPX_FILE interchangeably -- that 
part is already in cygwin's code.  The same logic, I think, holds for 
_PATH_WTMP, WTMP_FILE, and WTMPX_FILE.

Hence the requested #define, above.

--
Chuck



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019