From: David Mosberger-Tang <davidm@AZStarNet.com>
Subject: Re: typo on /usr/include/sys/utsname.h
Date: Thu, 30 May 1996 09:19:00 -0700 [thread overview]
Message-ID: <199605301619.JAA10608@koala.azstarnet.com> (raw)
>>>>> On Thu, 30 May 1996 10:56:13 -0400, "Michael K. Johnson" <johnsonm@redhat.com> said:
Michael> With libc 0.43, I've found these two lines in
Michael> /usr/include/sys/utsname.h:
Michael> #ifndef __linux__ #include <linux/utsname.h>
Michael> That looks like a typo to me, since there is no domainname
Michael> element except in the new_utsname in <linux/utsname.h>, and
Michael> especially since if __linux__ isn't defined, it doesn't
Michael> make sense for <linux/*> to exist.
Well, it's broken all right, but it's not the "#ifndef" that's wrong.
I think it should read "#ifndef __alpha__". The definition in
<linux/utsname.h> is _wrong_ for the old libc since it uses the OSF/1
utsname syscall (which returns fields that are 32 bytes long).
glibc has this fixed. It uses the Linux uname syscall, so it can use
the declaration from <linux/utsname.h>.
Michael> If it's not a typo, there should probably be a comment
Michael> there explaining why not.
Changing it to "#ifndef __alpha__" would be the right thing to do.
I'm not sure it's worth bothering, though. glibc is making good
progress and it is what will be used with ELF. Even if ELF is not
ready by the time the next libc release happens, I'd like to see
people start using glibc (but the way things are moving, I struggle
just to keep up with the progress that Eric and Richard are making
with ELF... :-). The only reason I'm not just uploading a
pre-compiled glibc is that some of the external file formats changed
(e.g., timezone and the utmp file). Also, all other libraries have to
be recompiled (X libs, tcl/tk, etc.). I have done this on my system,
but to make this generally available it would be necessary to put
together an entire distribution based on glibc. If somebody wanted to
start working on this, I'd be very happy to lend as much support as I
can.
--david
next reply other threads:[~1996-05-30 16:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-30 16:19 David Mosberger-Tang [this message]
1996-05-31 2:56 ` typo on /usr/include/sys/utsname.h Michael K. Johnson
-- strict thread matches above, loose matches on Subject: below --
1996-05-31 15:04 Donnie Barnes
1996-05-31 7:16 David Mosberger-Tang
1996-05-31 9:54 ` Fred Roy
1996-05-31 3:22 David Mosberger-Tang
1996-05-30 14:56 Michael K. Johnson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox