<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: os version at compile time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903051#M839680</link>
    <description>uname -r &lt;BR /&gt;what you are looking for...</description>
    <pubDate>Fri, 20 May 2005 04:13:12 GMT</pubDate>
    <dc:creator>Cem Tugrul</dc:creator>
    <dc:date>2005-05-20T04:13:12Z</dc:date>
    <item>
      <title>os version at compile time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903049#M839678</link>
      <description>I've seen postings that describe how to get the os major version at compile time.  I would like to get the whole version (11.11 or 11.23 for example) at compile time.  Something akin to doing a uname -r.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rick</description>
      <pubDate>Thu, 19 May 2005 16:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903049#M839678</guid>
      <dc:creator>Rick Burge_3</dc:creator>
      <dc:date>2005-05-19T16:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: os version at compile time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903050#M839679</link>
      <description>uname -r &lt;BR /&gt;&lt;BR /&gt;DOES display the OS versoin.&lt;BR /&gt;&lt;BR /&gt;Okay, whats the question?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 19 May 2005 23:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903050#M839679</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-05-19T23:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: os version at compile time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903051#M839680</link>
      <description>uname -r &lt;BR /&gt;what you are looking for...</description>
      <pubDate>Fri, 20 May 2005 04:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903051#M839680</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-05-20T04:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: os version at compile time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903052#M839681</link>
      <description>Hi Rick,&lt;BR /&gt;&lt;BR /&gt;# swlist -v | grep HPUX&lt;BR /&gt;&lt;BR /&gt;software_spec          HPUXEng64RT,r=B.11.00,a=HP-UX_B.11.00_64,v=HP&lt;BR /&gt;control_directory      HPUXEng64RT&lt;BR /&gt;&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Fri, 20 May 2005 04:25:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903052#M839681</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2005-05-20T04:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: os version at compile time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903053#M839682</link>
      <description>Hi Robert,&lt;BR /&gt;&lt;BR /&gt;i have also recorded your command&lt;BR /&gt;and if i were the author then would like to&lt;BR /&gt;send points to you unfortunately i am not :-(&lt;BR /&gt;&lt;BR /&gt;Thank's...</description>
      <pubDate>Fri, 20 May 2005 04:34:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903053#M839682</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-05-20T04:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: os version at compile time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903054#M839683</link>
      <description>Sorry I was not clear.  When I compile some code I need for the code to be able to establish some compile time "defs" that describe the os platform.#ifdef hpux11.11 thenfoo = red#elseif hpux11.23 thenfoo = blue#endifI found a posting that that gets me hpux11 and hpux10.x and hpux11.x but is not specific enough to tell me hpux11.23 or 11.11.I mention uname because it does present the specific major and minor as an example of the information I am looking for.  I suppose if I could figure out where uname picks up its information (from some h file somewhere?) maybe I could use the same definition it uses.Rick</description>
      <pubDate>Fri, 20 May 2005 08:10:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903054#M839683</guid>
      <dc:creator>Rick Burge_3</dc:creator>
      <dc:date>2005-05-20T08:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: os version at compile time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903055#M839684</link>
      <description>I'm not sure why my last response was all bunched up I hope this one comes out better.Sorry I was not clear. When I compile some code I need for the code to be able to establish some compile time "defs" that describe the os platform.#ifdef hpux11.11 thenfoo = red#elseif hpux11.23 thenfoo = blue#endifI found a posting that that gets me hpux11 and hpux10.x and hpux11.x but is not specific enough to tell me hpux11.23 or 11.11.#include &lt;SYS&gt;#if defined(PRIV_PSET)#define _hpux_11i#elif defined(PRIV_SPUCTL)#define __hpux_11x#elif defined(PRIV_SERIALIZE)#define __hpux_10x#elif defined(PRIV_SETRUGID)#define __hpux_9x#endifI mention uname because it does present the specific major and minor as an example of the information I am looking for. I suppose if I could figure out where uname picks up its information (from some h file somewhere?) maybe I could use the same definition it uses.Rick&lt;/SYS&gt;</description>
      <pubDate>Fri, 20 May 2005 08:56:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903055#M839684</guid>
      <dc:creator>Rick Burge_3</dc:creator>
      <dc:date>2005-05-20T08:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: os version at compile time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903056#M839685</link>
      <description>Or you could have the Makefile stage for the program do the uname -r and pass a -DHPUX1111, -DHPUX1123, etc. based on what it finds so that your #defines work from there. Seems simpler to me.</description>
      <pubDate>Fri, 20 May 2005 09:03:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903056#M839685</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2005-05-20T09:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: os version at compile time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903057#M839686</link>
      <description>If possible, you'd be better off just doing&lt;BR /&gt;an #ifdef test for the actual features you&lt;BR /&gt;need instead of testing for 11.23 vs. 11.11&lt;BR /&gt;specifically.&lt;BR /&gt;&lt;BR /&gt;Otherwise, if a patch changes or removes&lt;BR /&gt;a feature but doesn't change the HP-UX&lt;BR /&gt;version, your hypothetical #ifdef HPUX1123&lt;BR /&gt;won't help you.&lt;BR /&gt;&lt;BR /&gt;What features from 11.23 are you looking&lt;BR /&gt;to test for?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 May 2005 12:44:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903057#M839686</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2005-05-20T12:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: os version at compile time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903058#M839687</link>
      <description>Thanks</description>
      <pubDate>Fri, 20 May 2005 14:39:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/os-version-at-compile-time/m-p/4903058#M839687</guid>
      <dc:creator>Rick Burge_3</dc:creator>
      <dc:date>2005-05-20T14:39:46Z</dc:date>
    </item>
  </channel>
</rss>

