<?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: lib$create_vm_zone in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244562#M27355</link>
    <description>Hi Rusian,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Can I ask you using the has been attached VMZ.c to try to confirm that&lt;BR /&gt;&amp;gt;&amp;gt; in your case all works as described in the docs ?&lt;BR /&gt;Let me know what problem you are facing.&lt;BR /&gt;In your program, there is a piece of code within the "#if 0 ....".&lt;BR /&gt;Looks like, that portion of the code is not working as expected.&lt;BR /&gt;Is that correct ?&lt;BR /&gt;&lt;BR /&gt;Is there a access violation with the program&lt;BR /&gt;or &lt;BR /&gt;extend size not getting set properly ?&lt;BR /&gt;&lt;BR /&gt;I will try using your program.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
    <pubDate>Mon, 21 Jun 2010 06:59:37 GMT</pubDate>
    <dc:creator>P Muralidhar Kini</dc:creator>
    <dc:date>2010-06-21T06:59:37Z</dc:date>
    <item>
      <title>lib$create_vm_zone</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244559#M27352</link>
      <description>Hello, All!&lt;BR /&gt;&lt;BR /&gt; I have used the piece of code to creating VM Zones. It works as expected if:&lt;BR /&gt;[flags] = 0&lt;BR /&gt;and [extend-size] = 'Zone flags'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;May be some one can help me to resolve this puzzle ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2010 05:32:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244559#M27352</guid>
      <dc:creator>Ruslan R. Laishev</dc:creator>
      <dc:date>2010-06-21T05:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: lib$create_vm_zone</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244560#M27353</link>
      <description>Hi Ruslan,&lt;BR /&gt;&lt;BR /&gt;If you look at the argument of LIB$CREATE_VM_ZONE as per documentation,&lt;BR /&gt;Parameter1 = Zone-id&lt;BR /&gt;Parameter2 = algorithm&lt;BR /&gt;Parameter3 = algorithm-argument&lt;BR /&gt;Parameter4 = flags&lt;BR /&gt;Parameter5 = extend-size&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;In your program, you are passing,&lt;BR /&gt;VMZoneFlags as 3rd parameter (it should be 4th parameter)&lt;BR /&gt;VMZsz as 4th parameter (it should be 3rd parameter).&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;check the following link for LIB$CREATE_VM_ZONE documentation -&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82final/5932/5932pro_005.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/82final/5932/5932pro_005.html&lt;/A&gt;&lt;BR /&gt;-&amp;gt; Section "LIB$CREATE_VM_ZONE"&lt;BR /&gt;&lt;BR /&gt;You need to have a look at the documentation of LIB$CREATE_VM_ZONE and&lt;BR /&gt;ensure that you are passing the parameters correctly.&lt;BR /&gt;Do these changes and let us know if the problem is solved.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Mon, 21 Jun 2010 06:33:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244560#M27353</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-21T06:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: lib$create_vm_zone</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244561#M27354</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;Can I ask you using the has been attached VMZ.c to try to confirm that in your case all works as described in the docs ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2010 06:47:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244561#M27354</guid>
      <dc:creator>Ruslan R. Laishev</dc:creator>
      <dc:date>2010-06-21T06:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: lib$create_vm_zone</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244562#M27355</link>
      <description>Hi Rusian,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Can I ask you using the has been attached VMZ.c to try to confirm that&lt;BR /&gt;&amp;gt;&amp;gt; in your case all works as described in the docs ?&lt;BR /&gt;Let me know what problem you are facing.&lt;BR /&gt;In your program, there is a piece of code within the "#if 0 ....".&lt;BR /&gt;Looks like, that portion of the code is not working as expected.&lt;BR /&gt;Is that correct ?&lt;BR /&gt;&lt;BR /&gt;Is there a access violation with the program&lt;BR /&gt;or &lt;BR /&gt;extend size not getting set properly ?&lt;BR /&gt;&lt;BR /&gt;I will try using your program.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Mon, 21 Jun 2010 06:59:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244562#M27355</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-21T06:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: lib$create_vm_zone</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244563#M27356</link>
      <description>Hi Ruslan,&lt;BR /&gt;&lt;BR /&gt;I compiled and run your program on V8.3 IA64 with and without the flags and extend-size. But did not see any difference in output. Not sure, if I am doing anything wrong here. Please refer the attachment for the output.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ketan&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2010 07:01:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244563#M27356</guid>
      <dc:creator>Shriniketan Bhagwat</dc:creator>
      <dc:date>2010-06-21T07:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: lib$create_vm_zone</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244564#M27357</link>
      <description>&lt;!--!*#--&gt;&lt;BR /&gt;        if ( !(1 &amp;amp; (status = lib$create_vm_zone(&amp;amp;VMZid, /* zone-id      */&lt;BR /&gt;                        &amp;amp;VMZoneAlg,                     /* algorithm    *&lt;BR /&gt;                        0,                              /* algorithm-argument */&lt;BR /&gt;                        &amp;amp;VMZsz,                         /* flags        */&lt;BR /&gt;                        &amp;amp;VMZoneFlags,                   /* extend-size  */&lt;BR /&gt;                        0,                              /* initial-size */&lt;BR /&gt;                        0,                              /* block-size   */&lt;BR /&gt;                        0,                              /* alignment    */&lt;BR /&gt;                        0,                              /* page-limit   */&lt;BR /&gt;                        0,                              /* smallest-block-size */&lt;BR /&gt;                        0,                              /* zone-name    */&lt;BR /&gt;                        0,                              /* get-page     */&lt;BR /&gt;                        0))) )                          /* free-page    */&lt;BR /&gt;                lib$signal(status);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ run vmz&lt;BR /&gt;Zone Id = 00046800,  Zone name = ""&lt;BR /&gt;&lt;BR /&gt;        Algorithm = LIB$K_VM_FIXED  with block size of 117&lt;BR /&gt;&lt;BR /&gt;        Flags = 00000022&lt;BR /&gt;                     LIB$M_VM_GET_FILL0&lt;BR /&gt;                     LIB$M_VM_EXTEND_AREA&lt;BR /&gt;&lt;BR /&gt;        Initial size =      16 pages     Current size = 0 pages in 0 areas&lt;BR /&gt;        Extend size  =      16 pages     Page limit   = None&lt;BR /&gt;&lt;BR /&gt;        Requests are rounded up to a multiple of 8 bytes,&lt;BR /&gt;        naturally aligned on 8 byte boundaries&lt;BR /&gt;&lt;BR /&gt;        0 bytes have been freed and not yet reallocated&lt;BR /&gt;&lt;BR /&gt;        88 bytes are used for zone and area control blocks, or 100.0% overhea&lt;BR /&gt;---------------------------------&lt;BR /&gt;        if ( !(1 &amp;amp; (status = lib$create_vm_zone(&amp;amp;VMZid, /* zone-id      */&lt;BR /&gt;                        &amp;amp;VMZoneAlg,                     /* algorithm    *&lt;BR /&gt;                        &amp;amp;VMZsz,                         /* algorithm-argument */&lt;BR /&gt;                        &amp;amp;VMZoneFlags,                   /* flags        */&lt;BR /&gt;                        0,                              /* extend-size  */&lt;BR /&gt;                        0,                              /* initial-size */&lt;BR /&gt;                        0,                      /* block-size   */&lt;BR /&gt;                        0,                              /* alignment    */&lt;BR /&gt;                        0,                              /* page-limit   */&lt;BR /&gt;                        0,                              /* smallest-block-size */&lt;BR /&gt;                        0,                       /* zone-name    */&lt;BR /&gt;                        0,                              /* get-page     */&lt;BR /&gt;                        0))) )                          /* free-page    */&lt;BR /&gt;                lib$signal(status);&lt;BR /&gt;$ run vmz&lt;BR /&gt;Zone Id = 00046800,  Zone name = ""&lt;BR /&gt;&lt;BR /&gt;        Algorithm = LIB$K_VM_FIXED  with block size of 34&lt;BR /&gt;&lt;BR /&gt;        Flags = 00000000&lt;BR /&gt;&lt;BR /&gt;        Initial size =      16 pages     Current size = 0 pages in 0 areas&lt;BR /&gt;        Extend size  =      16 pages     Page limit   = None&lt;BR /&gt;&lt;BR /&gt;        Requests are rounded up to a multiple of 8 bytes,&lt;BR /&gt;        naturally aligned on 8 byte boundaries&lt;BR /&gt;&lt;BR /&gt;        0 bytes have been freed and not yet reallocated&lt;BR /&gt;&lt;BR /&gt;        88 bytes are used for zone and area control blocks, or 100.0% overhead&lt;BR /&gt;&lt;BR /&gt;$&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2010 07:18:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244564#M27357</guid>
      <dc:creator>Ruslan R. Laishev</dc:creator>
      <dc:date>2010-06-21T07:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: lib$create_vm_zone</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244565#M27358</link>
      <description>Hi Rusian,&lt;BR /&gt;&lt;BR /&gt;Check the following link for sample program on LIB$CREATE_VM_ZONE -&lt;BR /&gt;&lt;A href="http://www.eight-cubed.com/examples/framework.php?file=lib_vm.c" target="_blank"&gt;http://www.eight-cubed.com/examples/framework.php?file=lib_vm.c&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Mon, 21 Jun 2010 07:55:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244565#M27358</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-21T07:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: lib$create_vm_zone</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244566#M27359</link>
      <description>Hello Ruslan,&lt;BR /&gt;&lt;BR /&gt;Here is the answer for you puzzle!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;        if ( !(1 &amp;amp; (status = lib$create_vm_zone(&amp;amp;VMZid, /* zone-id      */&lt;BR /&gt;                        &amp;amp;VMZoneAlg,                     /* algorithm    *            &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;                        &amp;amp;VMZsz,                         /* algorithm-argument */&lt;BR /&gt;&lt;BR /&gt;If you notice the above 3 lines carefully you will find &lt;BR /&gt;the character "/" missing after "*". So to solve your puzzle&lt;BR /&gt;you just have to put "/" after "*".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Sunil</description>
      <pubDate>Mon, 21 Jun 2010 12:34:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244566#M27359</guid>
      <dc:creator>Sunil Kumar H G</dc:creator>
      <dc:date>2010-06-21T12:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: lib$create_vm_zone</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244567#M27360</link>
      <description>Ruslan,&lt;BR /&gt;&lt;BR /&gt;  Reading your code in a colourising source editor, the bug stands out as the (inadvertently) commented out argument is a different colour from the rest. I'm using Notepad++ on a PC.&lt;BR /&gt;&lt;BR /&gt;  I thought C++ was capable of strong type checking arguments with appropriate template definitions? Doesn't HP provide them for LIB$ routines? That might also have helped detect the bug as it would have caused a mismatch between the VMZname string and another argument.&lt;BR /&gt;&lt;BR /&gt;  Language technology has progressed way beyond relying on eyeballing code for correctness of things like mismatched argument lists. For your own sanity, and the safety of your code, please use as much automated checking as possible!</description>
      <pubDate>Mon, 21 Jun 2010 20:29:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244567#M27360</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-06-21T20:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: lib$create_vm_zone</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244568#M27361</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Doesn't HP provide them for LIB$ routines?&lt;BR /&gt;&lt;BR /&gt;Around here [*], even defining __NEW_STARLET&lt;BR /&gt;doesn't buy you much in this case:&lt;BR /&gt;&lt;BR /&gt;SYS$COMMON:[DECC$LIB.REFERENCE.SYS$STARLET_C]LIB$ROUTINES.H:&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;#define  lib$create_vm_zone  LIB$CREATE_VM_ZONE&lt;BR /&gt;&lt;BR /&gt;#ifdef __NEW_STARLET&lt;BR /&gt;unsigned int lib$create_vm_zone(&lt;BR /&gt;        unsigned int *zone_id,&lt;BR /&gt;        __optional_params&lt;BR /&gt;        );&lt;BR /&gt;#else   /* __OLD_STARLET */&lt;BR /&gt;unsigned int lib$create_vm_zone(__unknown_params);&lt;BR /&gt;#endif  /* #ifdef __NEW_STARLET */&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[*]&lt;BR /&gt;alp $ cc /version&lt;BR /&gt;HP C V7.3-009 on OpenVMS Alpha V8.3</description>
      <pubDate>Mon, 21 Jun 2010 20:48:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244568#M27361</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-06-21T20:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: lib$create_vm_zone</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244569#M27362</link>
      <description>Thanks a lot Sunil!</description>
      <pubDate>Tue, 22 Jun 2010 06:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-create-vm-zone/m-p/5244569#M27362</guid>
      <dc:creator>Ruslan R. Laishev</dc:creator>
      <dc:date>2010-06-22T06:22:45Z</dc:date>
    </item>
  </channel>
</rss>

