[PATCH 2/2] Cygwin: uname: add host machine tag to sysname.

Jeremy Drake cygwin@jdrake.com
Fri Nov 22 01:36:19 GMT 2024


On Thu, 21 Nov 2024, Jeremy Drake via Cygwin-patches wrote:

> @@ -38,6 +81,7 @@ uname_x (struct utsname *name)
>        /* sysname */
>        __small_sprintf (name->sysname, "CYGWIN_%s-%u",
>  		       wincap.osname (), wincap.build_number ());
> +      append_host_suffix (name->sysname + n);
>        /* nodename */
>        memset (buf, 0, sizeof buf);
>        cygwin_gethostname (buf, sizeof buf - 1);
>

I noticed while reading this patch that I lost the creation of an `int n;`
and assignment `n = __small_sprintf...` to the call above in the context,
due to the rebase from 3.3.6 to master...  That'll have to be in v2, as
well as the inevitable review comments.


More information about the Cygwin-patches mailing list