summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/uname.cc
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-07-01 11:57:30 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-07-01 11:57:30 -0700
commit8a2e3542b55be5bc068a9260bb3373eb564a371c (patch)
tree3963ef36ab6b639362cdda5ef9ec656f9918a82f /winsup/cygwin/uname.cc
parentb596ffa6159ddab85dcd182559775c1e84379dee (diff)
downloadcygnal-8a2e3542b55be5bc068a9260bb3373eb564a371c.tar.gz
cygnal-8a2e3542b55be5bc068a9260bb3373eb564a371c.tar.bz2
cygnal-8a2e3542b55be5bc068a9260bb3373eb564a371c.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): sysname is now filled in with CYGNAL_ prefix rather than CYGWIN_.
Diffstat (limited to 'winsup/cygwin/uname.cc')
-rw-r--r--winsup/cygwin/uname.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/uname.cc b/winsup/cygwin/uname.cc
index 479cc442a..25d8d6268 100644
--- a/winsup/cygwin/uname.cc
+++ b/winsup/cygwin/uname.cc
@@ -26,7 +26,7 @@ uname (struct utsname *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. */