This is the mail archive of the cygwin-developers mailing list for the Cygwin 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]

Re: Output of "uname -s" and "uname -o"


On Jun  9 09:54, Igor Peshansky wrote:
> On Mon, 9 Jun 2008, Corinna Vinschen wrote:
> > I don't think we can change this.  The sysname field is the only one
> > which you can use to identify the system.  There's no other room for
> > this.
> 
> You're right, both release and version fields are pretty much filled to
> capacity.  I was somehow under the impression that the OS name was a field
> returned by Cygwin -- I now see from the sources that it's a coreutils
> invention.
> 
> Technically, the version field would be the right place to store the
> information about the underlying Windows version.
> 
> I just looked at the Linux utsname.h, and it defines the length of all the
> fields to be 65 characters.  Is there a compelling reason for Cygwin to be
> limited to 20?

Old header files plus backward compatibility.  The structure is exposed
to applications.  Every change here requires to check for the Cygwin
version under which the application has been built.  I cursed the short
field length myself at onepoint, but the added complexity looks a bit
questionable.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


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