Re: Xephyr (on Linux host) and VMS keyboard

Liste des GroupesRevenir à co vms 
Sujet : Re: Xephyr (on Linux host) and VMS keyboard
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vms
Date : 16. Jun 2025, 00:42:46
Autres entêtes
Organisation : SunSITE.dk - Supporting Open source
Message-ID : <684f5a76$0$689$14726298@news.sunsite.dk>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird
On 6/14/2025 10:01 AM, Arne Vajhøj wrote:
On 6/13/2025 10:49 PM, Lawrence D'Oliveiro wrote:
On Fri, 13 Jun 2025 22:31:37 -0400, Arne Vajhøj wrote:
      if(acctrec.type.type == AcctRecType.ACR$K_IMGDEL) {
          tim = acctrec.systime
          for(pack in acctrec.packs) {
              if(pack.type.type == AcctPackType.ACR$K_RESOURCE) {
                 stat = pack.status
              }
              if(pack.type.type == AcctPackType.ACR$K_IMAGENAME) {
                  img = pack.imagename
              }
          }
          println("$tim : $img status=$stat")
>
Shouldn’t “stat” and “img” be initialized to something like “null” or
“undef” (or whatever the Groovy equivalent is)? Unless you’re assuming
they’ll always be defined for that record type.
 They should (Groovy uses null).
 An image activation record should always have a resource
and imagename pack. But good defensive programming style
say to initialize anyway.
import dk.vajhoej.vms.acct.*
acctfile = new AcctFile("sys\$manager:accountng.dat")
while(acctfile.more()) {
     acctrec = acctfile.read()
     if(acctrec.type.type == AcctRecType.ACR$K_IMGDEL) {
         tim = acctrec.systime
         stat = ">>>> no resource packet found <<<<"
         img = ">>>> no imagename packet found <<<<"
         for(pack in acctrec.packs) {
             if(pack.type.type == AcctPackType.ACR$K_RESOURCE) {
                stat = pack.status
             }
             if(pack.type.type == AcctPackType.ACR$K_IMAGENAME) {
                 img = pack.imagename
             }
         }
         println("$tim : $img status=$stat")
     }
}
acctfile.close()
Arne

Date Sujet#  Auteur
10 Jun 25 * Xephyr (on Linux host) and VMS keyboard35JKB
10 Jun 25 +* Re: Xephyr (on Linux host) and VMS keyboard33Simon Clubley
13 Jun 25 i`* Re: Xephyr (on Linux host) and VMS keyboard32JKB
13 Jun 25 i `* Re: Xephyr (on Linux host) and VMS keyboard31Simon Clubley
13 Jun 25 i  +* Re: Xephyr (on Linux host) and VMS keyboard6Robert A. Brooks
14 Jun 25 i  i`* Re: Xephyr (on Linux host) and VMS keyboard5Arne Vajhøj
14 Jun 25 i  i `* Re: Xephyr (on Linux host) and VMS keyboard4Arne Vajhøj
14 Jun 25 i  i  `* Re: Xephyr (on Linux host) and VMS keyboard3Lawrence D'Oliveiro
14 Jun 25 i  i   `* Re: Xephyr (on Linux host) and VMS keyboard2Arne Vajhøj
16 Jun 25 i  i    `- Re: Xephyr (on Linux host) and VMS keyboard1Arne Vajhøj
14 Jun 25 i  `* Re: Xephyr (on Linux host) and VMS keyboard24JKB
14 Jun 25 i   +- Re: Xephyr (on Linux host) and VMS keyboard1hb0815
14 Jun 25 i   `* Re: Xephyr (on Linux host) and VMS keyboard22hb0815
15 Jun 25 i    +- Re: Xephyr (on Linux host) and VMS keyboard1Lawrence D'Oliveiro
16 Jun 25 i    `* Re: Xephyr (on Linux host) and VMS keyboard20JKB
16 Jun 25 i     +* Re: Xephyr (on Linux host) and VMS keyboard2Craig A. Berry
16 Jun 25 i     i`- Re: Xephyr (on Linux host) and VMS keyboard1Craig A. Berry
16 Jun 25 i     `* Re: Xephyr (on Linux host) and VMS keyboard17hb0815
17 Jun 25 i      `* Re: Xephyr (on Linux host) and VMS keyboard16JKB
17 Jun 25 i       +* Re: Xephyr (on Linux host) and VMS keyboard7Volker Halle
17 Jun 25 i       i`* Re: Xephyr (on Linux host) and VMS keyboard6JKB
17 Jun 25 i       i `* Re: Xephyr (on Linux host) and VMS keyboard5JKB
17 Jun 25 i       i  `* Re: Xephyr (on Linux host) and VMS keyboard4Volker Halle
17 Jun 25 i       i   `* Re: Xephyr (on Linux host) and VMS keyboard3JKB
17 Jun 25 i       i    `* Re: Xephyr (on Linux host) and VMS keyboard2Volker Halle
17 Jun 25 i       i     `- Re: Xephyr (on Linux host) and VMS keyboard1JKB
17 Jun 25 i       `* Re: Xephyr (on Linux host) and VMS keyboard8Lawrence D'Oliveiro
18 Jun 25 i        `* Re: Xephyr (on Linux host) and VMS keyboard7JKB
18 Jun 25 i         `* Re: Xephyr (on Linux host) and VMS keyboard6Volker Halle
18 Jun 25 i          `* Re: Xephyr (on Linux host) and VMS keyboard5JKB
19 Jun 25 i           +* Re: Xephyr (on Linux host) and VMS keyboard2hb0815
19 Jun 25 i           i`- Re: Xephyr (on Linux host) and VMS keyboard1JKB
19 Jun 25 i           `* Re: Xephyr (on Linux host) and VMS keyboard2Simon Clubley
19 Jun 25 i            `- Re: Xephyr (on Linux host) and VMS keyboard1JKB
11 Jun 25 `- Re: Xephyr (on Linux host) and VMS keyboard1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal