X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=Kre7BVCjXzYnKuj5S+CqAdyWx71RW 6pY/BEMsRJ3KotLPWBY1qCUou2rqk3C07BHTjjKdvuKBrasXT0RUucnRxs3Lop6Z 2MdR8chVTxmP99NPHVH0WyC52s0Vnadiudgr4HU4bQTkRJ0eQhjaNATsHfHv72oF CFtsF49q2Vg0RQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=jQKyi5DPGTPa7T8cZ4C1dezTres=; b=FQP TLy/CC9CcdsWEGXZ3oZTFl5/C+ltrqaTn2ZE1UbGBvNy+7vwxEqo1KW0AyUrlgf+ Ldg9JbOdE+1h21nxz5jqNqtTeIfN2eVc75039Ql97Npf/U21nVXZeysz5Y8gbb1f BtY0B7oeayZV7N4TfWG0Z9+A0omg5nw387ys4Nnk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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) Date: Fri, 14 Aug 2015 15:56:01 +0200 Message-ID: Subject: Cygwin version detection at run time From: =?UTF-8?Q?V=C3=A1clav_Haisman?= To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 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