This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add utmp.h defines for cygwin.


002-11-06  Sergey Okhapkin  <sos@prospect.com.ru>

	* include/utmp.h: Define WTMP_FILE.  Define and use UT_IDLEN.

Index: libc/sys/cygwin/sys/utmp.h
===================================================================
RCS file: /cvs/uberbaum/newlib/libc/sys/cygwin/sys/utmp.h,v
retrieving revision 1.5
diff -u -p -r1.5 utmp.h
--- libc/sys/cygwin/sys/utmp.h	2 May 2002 00:59:39 -0000	1.5
+++ libc/sys/cygwin/sys/utmp.h	7 Nov 2002 02:48:28 -0000
@@ -14,6 +14,7 @@
 #include <paths.h>
 
 #define UTMP_FILE _PATH_UTMP
+#define WTMP_FILE _PATH_WTMP
 
 #ifdef __cplusplus
 extern "C" {
@@ -22,6 +23,7 @@ extern "C" {
 #define UT_LINESIZE	16
 #define UT_NAMESIZE	16
 #define UT_HOSTSIZE	256
+#define UT_IDLEN	2
 #define ut_name ut_user
 
 struct utmp 
@@ -29,7 +31,7 @@ struct utmp 
  short	ut_type;	
  pid_t	ut_pid;		
  char	ut_line[UT_LINESIZE];
- char	ut_id[2];
+ char  ut_id[UT_IDLEN];
  time_t ut_time;	
  char	ut_user[UT_NAMESIZE];	
  char	ut_host[UT_HOSTSIZE];	


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]