From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69910 invoked by alias); 14 Aug 2015 13:56:05 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 69899 invoked by uid 89); 14 Aug 2015 13:56:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f52.google.com Received: from mail-la0-f52.google.com (HELO mail-la0-f52.google.com) (209.85.215.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 14 Aug 2015 13:56:04 +0000 Received: by lagz9 with SMTP id z9so44331869lag.3 for ; Fri, 14 Aug 2015 06:56:01 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.219.172 with SMTP id pp12mr20665152lac.17.1439560561105; Fri, 14 Aug 2015 06:56:01 -0700 (PDT) Received: by 10.25.215.99 with HTTP; Fri, 14 Aug 2015 06:56:01 -0700 (PDT) Date: Fri, 14 Aug 2015 13:56:00 -0000 Message-ID: Subject: Cygwin version detection at run time From: =?UTF-8?Q?V=C3=A1clav_Haisman?= To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00212.txt.bz2 Hi. I am trying to find out Cygwin version at run time. I have noticed that there is `cygwin_internal (CW_GETVERSIONINFO)` API for this. However, it seems that the `cygwin_version_info` structure this call is supposed to fill in is not publicly available and is only declared internally in `winsup/cygwin/cygwin_version.h`. Am I right that my only option is either to copy the internal declaration of the structure or to use `/proc/version` and parse the version string out of that? -- VH -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple