diff options
author | Roland McGrath <roland@gnu.org> | 1996-06-21 21:01:27 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-06-21 21:01:27 +0000 |
commit | 4f54cdb1dd4b8929231f42e22b79a0d5c7600cba (patch) | |
tree | 7780b1282b5f0849339424c2c94fc278f2dd8767 /sysdeps/gnu | |
parent | 51fbd1f60a5c43fc5bde04952bc88b5545a83d13 (diff) | |
download | glibc-4f54cdb1dd4b8929231f42e22b79a0d5c7600cba.tar.gz glibc-4f54cdb1dd4b8929231f42e22b79a0d5c7600cba.tar.xz glibc-4f54cdb1dd4b8929231f42e22b79a0d5c7600cba.zip |
* sysdeps/sparc/elf/start.S: New file.
* sysdeps/sparc/dl-machine.h: New file. * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr only for ?s, not for *s. Fix from Chet Ramey. Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>: * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}. Use __{BEGIN,END}_DECLS. (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros. * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME): New macros, moved here from sysdeps/gnu/utmpbits.h. * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it. * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise. * login/logout.c: Use ut_host only #if _HAVE_UT_HOST. Use sizeof instead of UT_*SIZE. * login/logwtmp.c: Likewise. * misc/tsearch.c (tdelete): Define as weak alias to __tdelete. * version.c (banner): Add trailing newline.
Diffstat (limited to 'sysdeps/gnu')
-rw-r--r-- | sysdeps/gnu/utmpbits.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sysdeps/gnu/utmpbits.h b/sysdeps/gnu/utmpbits.h index 2244ecbf75..4749fdd3fe 100644 --- a/sysdeps/gnu/utmpbits.h +++ b/sysdeps/gnu/utmpbits.h @@ -28,11 +28,6 @@ Boston, MA 02111-1307, USA. */ #define _PATH_WTMP "/var/log/wtmp" #define _PATH_LASTLOG "/var/log/lastlog" -#define UTMP_FILE _PATH_UTMP -#define WTMP_FILE _PATH_WTMP -#define UTMP_FILENAME UTMP_FILE -#define WTMP_FILENAME WTMP_FILE - #define UT_UNKNOWN 0 /* for ut_type field */ #define RUN_LVL 1 @@ -45,8 +40,6 @@ Boston, MA 02111-1307, USA. */ #define USER_PROCESS 7 #define DEAD_PROCESS 8 -#define ut_name ut_user - #define UT_LINESIZE 32 #define UT_NAMESIZE 32 #define UT_HOSTSIZE 256 @@ -67,6 +60,7 @@ struct utmp char ut_line[UT_LINESIZE]; /* NUL-terminated devicename of tty. */ char ut_id[4]; /* Inittab id. */ char ut_user[UT_NAMESIZE]; /* Username (not NUL terminated). */ +#define ut_name ut_user /* Compatible field name for same. */ char ut_host[UT_HOSTSIZE]; /* Hostname for remote login. */ int ut_exit; /* Process termination/exit status. */ long ut_session; /* Session ID, used for windowing. */ @@ -77,11 +71,12 @@ struct utmp #define ut_time ut_tv.tv_sec /* Backwards compatibility. */ -/* Tell the user that we have a modern system with UT_TYPE, UT_ID +/* Tell the user that we have a modern system with UT_HOST, UT_TYPE, UT_ID and UT_TV fields. */ #define _HAVE_UT_TYPE 1 #define _HAVE_UT_ID 1 #define _HAVE_UT_TV 1 +#define _HAVE_UT_HOST 1 __END_DECLS |