Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Imitation is the sincerest form of plagiarism.


computers / comp.os.vms / Re: Suppressing DCL exit status messages

SubjectAuthor
* Suppressing DCL exit status messagesSimon Clubley
+* Re: Suppressing DCL exit status messagesIan Miller
|`- Re: Suppressing DCL exit status messagesSteven Schweda
+- Re: Suppressing DCL exit status messagesBrian Schenkenberger
`* Re: Suppressing DCL exit status messagesArne Vajhøj
 `* Re: Suppressing DCL exit status messagesSimon Clubley
  `- Re: Suppressing DCL exit status messagesIan Miller

1
Suppressing DCL exit status messages

<udplst$1ia70$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29905&group=comp.os.vms#29905

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Suppressing DCL exit status messages
Date: Tue, 12 Sep 2023 12:34:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <udplst$1ia70$1@dont-email.me>
Injection-Date: Tue, 12 Sep 2023 12:34:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b0f9032281107eb11eb5d2ad8af81d08";
logging-data="1648864"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+u6ABP4mg+u9ocyC5sRj8t1cZY+fWVpCo="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:b4eDsaC/06NjyUx8FxQK5nR4a1s=
 by: Simon Clubley - Tue, 12 Sep 2023 12:34 UTC

On 2023-09-11, gah4 <gah4@u.washington.edu> wrote:
>
> It was a C program that I wrote, and that had exit(8); in it.
>
> There was no access violation.
>

I am surprised nobody told you the error message could be suppressed
if you set the right bit in the exit status you return to DCL:

$ exit 8
%SYSTEM-W-ACCVIO, access violation, reason mask=00, virtual address=0000000000000008, PC=000000007AF0D9F0, PS=00000000
$ write sys$output $status
%X00000008

$ exit %x10000008
$ write sys$output $status
%X10000008

Note that it's that specific bit which needs setting as you still get
the message in this case:

$ exit %x40000008
%SYSTEM-W-ACCVIO, access violation, reason mask=00, virtual address=0000000040000008, PC=000000007AF0D9F0, PS=00000000
$ write sys$output $status
%X40000008

You can mask off the top 4 bits (the internal control flags) to
extract out the actual number your program returned to your DCL script.

Not sure where I found this out because it's not in the manuals
I just checked.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Suppressing DCL exit status messages

<75f20585-ae91-4c11-897b-12b3de3efe51n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29910&group=comp.os.vms#29910

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:2b45:b0:76d:9ab3:2e2c with SMTP id dp5-20020a05620a2b4500b0076d9ab32e2cmr231950qkb.2.1694526423176;
Tue, 12 Sep 2023 06:47:03 -0700 (PDT)
X-Received: by 2002:a05:6a00:1821:b0:68f:c64a:5c53 with SMTP id
y33-20020a056a00182100b0068fc64a5c53mr1031722pfa.0.1694526422528; Tue, 12 Sep
2023 06:47:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Tue, 12 Sep 2023 06:47:01 -0700 (PDT)
In-Reply-To: <udplst$1ia70$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=92.4.178.21; posting-account=xnH4mQkAAADgGjKHSw0dMDzsXknFp5II
NNTP-Posting-Host: 92.4.178.21
References: <udplst$1ia70$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <75f20585-ae91-4c11-897b-12b3de3efe51n@googlegroups.com>
Subject: Re: Suppressing DCL exit status messages
From: gxy...@uk2.net (Ian Miller)
Injection-Date: Tue, 12 Sep 2023 13:47:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2752
 by: Ian Miller - Tue, 12 Sep 2023 13:47 UTC

On Tuesday, September 12, 2023 at 1:34:40 PM UTC+1, Simon Clubley wrote:
> On 2023-09-11, gah4 <ga...@u.washington.edu> wrote:
> >
> > It was a C program that I wrote, and that had exit(8); in it.
> >
> > There was no access violation.
> >
>
> I am surprised nobody told you the error message could be suppressed
> if you set the right bit in the exit status you return to DCL:
>
> $ exit 8
> %SYSTEM-W-ACCVIO, access violation, reason mask=00, virtual address=0000000000000008, PC=000000007AF0D9F0, PS=00000000
> $ write sys$output $status
> %X00000008
>
> $ exit %x10000008
> $ write sys$output $status
> %X10000008
>
> Note that it's that specific bit which needs setting as you still get
> the message in this case:
>
> $ exit %x40000008
> %SYSTEM-W-ACCVIO, access violation, reason mask=00, virtual address=0000000040000008, PC=000000007AF0D9F0, PS=00000000
> $ write sys$output $status
> %X40000008
>
> You can mask off the top 4 bits (the internal control flags) to
> extract out the actual number your program returned to your DCL script.
>
> Not sure where I found this out because it's not in the manuals
> I just checked.
>
> Simon.
>
> --
> Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
> Walking destinations on a map are further away than they appear.

See the OpenVMS Calling Standard chapter on OpenVMS Conditions where all this is documented https://docs.vmssoftware.com/vsi-openvms-calling-standard/#VMSCONDITIONS_CHAP

Re: Suppressing DCL exit status messages

<acbc7798-666c-4bc7-b162-a4110e7de01bn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29911&group=comp.os.vms#29911

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:600f:b0:76f:1531:aa32 with SMTP id dw15-20020a05620a600f00b0076f1531aa32mr64772qkb.7.1694529400782;
Tue, 12 Sep 2023 07:36:40 -0700 (PDT)
X-Received: by 2002:a17:903:64f:b0:1bc:7c69:925c with SMTP id
kh15-20020a170903064f00b001bc7c69925cmr4335967plb.10.1694529400535; Tue, 12
Sep 2023 07:36:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Tue, 12 Sep 2023 07:36:39 -0700 (PDT)
In-Reply-To: <75f20585-ae91-4c11-897b-12b3de3efe51n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=76.76.60.100; posting-account=OjKUgAkAAAAXAqdVEKd-Gc8RltEUx3Xq
NNTP-Posting-Host: 76.76.60.100
References: <udplst$1ia70$1@dont-email.me> <75f20585-ae91-4c11-897b-12b3de3efe51n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <acbc7798-666c-4bc7-b162-a4110e7de01bn@googlegroups.com>
Subject: Re: Suppressing DCL exit status messages
From: sms.anti...@gmail.com (Steven Schweda)
Injection-Date: Tue, 12 Sep 2023 14:36:40 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1884
 by: Steven Schweda - Tue, 12 Sep 2023 14:36 UTC

> See the OpenVMS Calling Standard chapter on OpenVMS Conditions [...]

Also: HELP CRTL exit

its $ type exit8.c
#include <stdlib.h>

int main( int argc, char **argv)
{ exit( 8);
} its $

its $ cc exit8
its $ link exit8
its $ run exit8
%SYSTEM-W-ACCVIO, access violation, reason mask=00, virtual address=000000000000
0008, PC=FFFFFFFFFF561663, PS=0000000F

its $ cc exit8 /define = _POSIX_EXIT /obj=exit8p
its $ link exit8p
its $ run exit8p
its $ write sys$output $status
%X0035A041
its $ write sys$output f$message( %X0035A041)
%C-S-EXIT8, exit value 8

> [...] it's not in the manuals I just checked.

Valuable info for the psychics who know which "the manuals" those
might be.

Re: Suppressing DCL exit status messages

<udq3t1$1ksp5$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29913&group=comp.os.vms#29913

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mai...@SendSpamHere.ORG (Brian Schenkenberger)
Newsgroups: comp.os.vms
Subject: Re: Suppressing DCL exit status messages
Date: Tue, 12 Sep 2023 12:33:37 -0400
Organization: Tmesis Software
Lines: 43
Message-ID: <udq3t1$1ksp5$1@dont-email.me>
References: <udplst$1ia70$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="efce425faf2b5ece969535c4f460b133";
logging-data="1733413"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180qzPvW5+V9BrlKLjxJDH8"
User-Agent: Unison/2.2
Cancel-Lock: sha1:rk3K9ZhLAIXkChh20HeU24TH3lU=
 by: Brian Schenkenberger - Tue, 12 Sep 2023 16:33 UTC

On 2023-09-12 12:34:37 +0000, Simon Clubley said:

> On 2023-09-11, gah4 <gah4@u.washington.edu> wrote:
>>
>> It was a C program that I wrote, and that had exit(8); in it.
>>
>> There was no access violation.
>>
>
> I am surprised nobody told you the error message could be suppressed
> if you set the right bit in the exit status you return to DCL:
>
> $ exit 8
> %SYSTEM-W-ACCVIO, access violation, reason mask=00, virtual
> address=0000000000000008, PC=000000007AF0D9F0, PS=00000000
> $ write sys$output $status
> %X00000008
>
> $ exit %x10000008
> $ write sys$output $status
> %X10000008
>
> Note that it's that specific bit which needs setting as you still get
> the message in this case:
>
> $ exit %x40000008
> %SYSTEM-W-ACCVIO, access violation, reason mask=00, virtual
> address=0000000040000008, PC=000000007AF0D9F0, PS=00000000
> $ write sys$output $status
> %X40000008
>
> You can mask off the top 4 bits (the internal control flags) to
> extract out the actual number your program returned to your DCL script.
>
> Not sure where I found this out because it's not in the manuals
> I just checked.
>
> Simon.

See $STSDEF ;)

— VAXman

Re: Suppressing DCL exit status messages

<udqfhe$1n3eh$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29918&group=comp.os.vms#29918

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Suppressing DCL exit status messages
Date: Tue, 12 Sep 2023 15:52:16 -0400
Organization: A noiseless patient Spider
Lines: 66
Message-ID: <udqfhe$1n3eh$1@dont-email.me>
References: <udplst$1ia70$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 12 Sep 2023 19:52:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="83cecb55b9567afbbda3b6e0c12c17da";
logging-data="1805777"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193YjNj+5yZHhlORKCrYHEHZqogsYlMRSg="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Cancel-Lock: sha1:plhqHZBZE3ySGpKDiLKK8oVVQdM=
In-Reply-To: <udplst$1ia70$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Tue, 12 Sep 2023 19:52 UTC

On 9/12/2023 8:34 AM, Simon Clubley wrote:
> On 2023-09-11, gah4 <gah4@u.washington.edu> wrote:
>> It was a C program that I wrote, and that had exit(8); in it.
>>
>> There was no access violation.
>
> I am surprised nobody told you the error message could be suppressed
> if you set the right bit in the exit status you return to DCL:
>
> $ exit 8
> %SYSTEM-W-ACCVIO, access violation, reason mask=00, virtual address=0000000000000008, PC=000000007AF0D9F0, PS=00000000
> $ write sys$output $status
> %X00000008
>
> $ exit %x10000008
> $ write sys$output $status
> %X10000008
>
> Note that it's that specific bit which needs setting as you still get
> the message in this case:
>
> $ exit %x40000008
> %SYSTEM-W-ACCVIO, access violation, reason mask=00, virtual address=0000000040000008, PC=000000007AF0D9F0, PS=00000000
> $ write sys$output $status
> %X40000008
>
> You can mask off the top 4 bits (the internal control flags) to
> extract out the actual number your program returned to your DCL script.
>
> Not sure where I found this out because it's not in the manuals
> I just checked.

It is documented and has been as long as I can remember.

$ type simon.c
#include <string.h>

#include <stsdef.h>
#include <starlet.h>

int main(int argc, char *argv[])
{ if(argc > 1 && strcasecmp(argv[1], "simonsaysquiet") == 0)
{
sys$exit(STS$M_INHIB_MSG | 8);
}
else
{
sys$exit(8);
}
} $ cc simon
$ link simon
$ simon :== $sys$disk:[]simon.exe
$ simon
%SYSTEM-W-ACCVIO, access violation, reason mask=00, virtual
address=0000000000000008, PC=0000000000000012, PS=00000003
$ sh symb $status
$STATUS == "%X00000008"
$ simon SimonSaysQuiet
$ sh symb $status
$STATUS == "%X10000008"

Arne

Re: Suppressing DCL exit status messages

<uds90t$246hv$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29932&group=comp.os.vms#29932

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: Suppressing DCL exit status messages
Date: Wed, 13 Sep 2023 12:13:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <uds90t$246hv$2@dont-email.me>
References: <udplst$1ia70$1@dont-email.me> <udqfhe$1n3eh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 Sep 2023 12:13:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a6ec5b8778bd0ca3a6921408dbcab8d1";
logging-data="2234943"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+yWI7SaDTfHw9dpQ1/yXp2mBoWqERno4g="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:fw1SXOT8gu/ky3Rd71XqVGkRzZ0=
 by: Simon Clubley - Wed, 13 Sep 2023 12:13 UTC

On 2023-09-12, Arne Vajhøj <arne@vajhoej.dk> wrote:
>
> It is documented and has been as long as I can remember.
>

Yes, but I couldn't remember where. It's one of things you read about,
file the knowledge away for later use and then forget many years later
where you read it.

I thought it was in the message manual, but the status breakdown in
that manual didn't cover the top 4 bits when I looked. Ian ended up
posting the answer. Thanks Ian.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: Suppressing DCL exit status messages

<affd915f-667a-4609-8b14-5c2a53055fd8n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29935&group=comp.os.vms#29935

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:19a1:b0:407:2c52:2861 with SMTP id u33-20020a05622a19a100b004072c522861mr56134qtc.8.1694610596595;
Wed, 13 Sep 2023 06:09:56 -0700 (PDT)
X-Received: by 2002:a05:6808:2082:b0:3a9:d030:5023 with SMTP id
s2-20020a056808208200b003a9d0305023mr1023418oiw.3.1694610596393; Wed, 13 Sep
2023 06:09:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Wed, 13 Sep 2023 06:09:55 -0700 (PDT)
In-Reply-To: <uds90t$246hv$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=92.4.178.21; posting-account=xnH4mQkAAADgGjKHSw0dMDzsXknFp5II
NNTP-Posting-Host: 92.4.178.21
References: <udplst$1ia70$1@dont-email.me> <udqfhe$1n3eh$1@dont-email.me> <uds90t$246hv$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <affd915f-667a-4609-8b14-5c2a53055fd8n@googlegroups.com>
Subject: Re: Suppressing DCL exit status messages
From: gxy...@uk2.net (Ian Miller)
Injection-Date: Wed, 13 Sep 2023 13:09:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2051
 by: Ian Miller - Wed, 13 Sep 2023 13:09 UTC

On Wednesday, September 13, 2023 at 1:13:21 PM UTC+1, Simon Clubley wrote:
> On 2023-09-12, Arne Vajhøj <ar...@vajhoej.dk> wrote:
> >
> > It is documented and has been as long as I can remember.
> >
> Yes, but I couldn't remember where. It's one of things you read about,
> file the knowledge away for later use and then forget many years later
> where you read it.
>
> I thought it was in the message manual, but the status breakdown in
> that manual didn't cover the top 4 bits when I looked. Ian ended up
> posting the answer. Thanks Ian.
> Simon.
>
> --
> Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
> Walking destinations on a map are further away than they appear.

The key thing to remember is that they are called Condition Values then one can search the manuals for the details :-)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor