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

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jun 9 14:21:00 GMT 2008

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


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

More information about the Cygwin-developers mailing list