summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-07-01 11:57:30 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-07-26 21:52:22 -0700
commit5bd0a181871a99960ecf96e821dab6de4aa2136f (patch)
treed60529c76a301cf420a7dca75bd5fd655aa16271
parent4e442d7d7f91fb523714b0a955be4f4beb4f78b1 (diff)
downloadcygnal-5bd0a181871a99960ecf96e821dab6de4aa2136f.tar.gz
cygnal-5bd0a181871a99960ecf96e821dab6de4aa2136f.tar.bz2
cygnal-5bd0a181871a99960ecf96e821dab6de4aa2136f.zip
Report as CYGNAL in uname syscall.
This allows applications to distinguish whether they are running on the stock Cygwin or Cygnal. * winsup/cygwin/uname.cc (uname, uname_x): sysname is now filled in with CYGNAL_ prefix rather than CYGWIN_.
-rw-r--r--winsup/cygwin/uname.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/uname.cc b/winsup/cygwin/uname.cc
index 350216681..8a0f5dc81 100644
--- a/winsup/cygwin/uname.cc
+++ b/winsup/cygwin/uname.cc
@@ -36,7 +36,7 @@ uname_x (struct utsname *name)
memset (name, 0, sizeof (*name));
/* sysname */
- __small_sprintf (name->sysname, "CYGWIN_%s-%u%s",
+ __small_sprintf (name->sysname, "CYGNAL_%s-%u%s",
wincap.osname (), wincap.build_number (),
wincap.is_wow64 () ? "-WOW64" : "");
/* nodename */
@@ -98,7 +98,7 @@ uname (struct utsname *in_name)
char *snp = strstr (cygwin_version.dll_build_date, "SNP");
memset (name, 0, sizeof (*name));
- __small_sprintf (name->sysname, "CYGWIN_%s", wincap.osname ());
+ __small_sprintf (name->sysname, "CYGNAL_%s", wincap.osname ());
/* Add a hint to the sysname, that we're running under WOW64. This might
give an early clue if somebody encounters problems. */