1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

* sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.

* sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
	also on platforms with !HAVE_UT_TYPE.
	(proc_utmp_eq): Remove function.
	(internal_getut_r, pututline_file): Call __utmp_equal instead.

2002-09-20  Bruno Haible  <bruno@clisp.org>

	* abi-tags: Add support for FreeBSD with ABI OS value 3.
	* elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
This commit is contained in:
Roland McGrath
2002-09-20 22:07:20 +00:00
parent 800a312a56
commit 82c261269b
5 changed files with 81 additions and 32 deletions

View File

@ -101,12 +101,14 @@ print_entry (const char *lib, int flag, unsigned int osversion,
[0] = "Linux",
[1] = "Hurd",
[2] = "Solaris",
[3] = N_("Unknown OS")
[3] = "FreeBSD",
[4] = N_("Unknown OS")
};
#define MAXTAG (sizeof abi_tag_os / sizeof abi_tag_os[0] - 1)
unsigned int os = osversion >> 24;
printf (_(", OS ABI: %s %d.%d.%d"),
_(abi_tag_os[os > 3 ? 3 : os]),
_(abi_tag_os[os > MAXTAG ? MAXTAG : os]),
(osversion >> 16) & 0xff,
(osversion >> 8) & 0xff,
osversion & 0xff);