diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-07 02:48:59 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-07 02:48:59 +0000 |
commit | 503430d83b96c7d645a0c0f0e6c44e7a943b24a3 (patch) | |
tree | 1f6dc01028172ef14a72180d2613bb861e403e87 | |
parent | 4248a1d7f87624369b1d64eea620532d101b578d (diff) | |
download | cygnal-503430d83b96c7d645a0c0f0e6c44e7a943b24a3.tar.gz cygnal-503430d83b96c7d645a0c0f0e6c44e7a943b24a3.tar.bz2 cygnal-503430d83b96c7d645a0c0f0e6c44e7a943b24a3.zip |
* include/utmp.h: Define WTMP_FILE. Define and use UT_IDLEN.
-rw-r--r-- | newlib/ChangeLog | 4 | ||||
-rw-r--r-- | newlib/libc/sys/cygwin/sys/utmp.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 7b3c0ad97..946f21c6b 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +002-11-06 Sergey Okhapkin <sos@prospect.com.ru> + + * include/utmp.h: Define WTMP_FILE. Define and use UT_IDLEN. + 2002-11-06 Kazuhiro Fujieda <fujieda@jaist.ac.jp> * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C". diff --git a/newlib/libc/sys/cygwin/sys/utmp.h b/newlib/libc/sys/cygwin/sys/utmp.h index 494754bd6..2d959d806 100644 --- a/newlib/libc/sys/cygwin/sys/utmp.h +++ b/newlib/libc/sys/cygwin/sys/utmp.h @@ -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]; |