Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Space is to place as eternity is to time. -- Joseph Joubert


computers / comp.os.vms / Re: shm_open to sys$mgblsc

SubjectAuthor
* shm_open to sys$mgblscArne Vajhøj
+* Re: shm_open to sys$mgblscStephen Hoffman
|+- Re: shm_open to sys$mgblscArne Vajhøj
|`* Re: shm_open to sys$mgblscRoger Ivie
| `- Re: shm_open to sys$mgblscStephen Hoffman
`* Re: shm_open to sys$mgblscVitaly Pustovetov
 `* Re: shm_open to sys$mgblscArne Vajhøj
  `- Re: shm_open to sys$mgblscVitaly Pustovetov

1
shm_open to sys$mgblsc

<6306b4d2$0$702$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 24 Aug 2022 19:31:28 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.0
Newsgroups: comp.os.vms
Content-Language: en-US
From: arn...@vajhoej.dk (Arne Vajhøj)
Subject: shm_open to sys$mgblsc
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 8
Message-ID: <6306b4d2$0$702$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 8993cc6d.news.sunsite.dk
X-Trace: 1661383890 news.sunsite.dk 702 arne@vajhoej.dk/68.9.63.232:57638
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 24 Aug 2022 23:31 UTC

I assume that shm_open end up calling sys$mgblsc, but how does
the arguments for sys$mgblsc get constructed?

Is the name just used as-is or is it changed?

And what about flags? Just S_IWUSR to SEC$M_WRT or?

Arne

Re: shm_open to sys$mgblsc

<te6efa$3esom$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: shm_open to sys$mgblsc
Date: Wed, 24 Aug 2022 20:07:06 -0400
Organization: HoffmanLabs LLC
Lines: 25
Message-ID: <te6efa$3esom$1@dont-email.me>
References: <6306b4d2$0$702$14726298@news.sunsite.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="48916b2d4e30e94c6ac3ab8f35f78500";
logging-data="3633942"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UrTNPqVGush4GYtNvnocrxjoZ+b5fbA8="
User-Agent: Unison/2.2
Cancel-Lock: sha1:LuooYOh6CMnK7Yuzg3HMpkozpaY=
 by: Stephen Hoffman - Thu, 25 Aug 2022 00:07 UTC

On 2022-08-24 23:31:28 +0000, Arne Vajhj said:

> I assume that shm_open end up calling sys$mgblsc, but how does the
> arguments for sys$mgblsc get constructed?
>
> Is the name just used as-is or is it changed?
>
> And what about flags? Just S_IWUSR to SEC$M_WRT or?

I don't think any of that is officially documented.

Which means...

ANALYZE /SYSTEM with the SDA> SHOW GST and SHOW GSD and related
commands, and have a look.

Oh, hey, look, it's another bit of the 32-/64-bit address-space "fun":
"If the application passes its own valid non-zero address, the current
implementation requires this address to be 32 bit; a 64 bit virtual
address is not supported."

--
Pure Personal Opinion | HoffmanLabs LLC

Re: shm_open to sys$mgblsc

<6306ca3d$0$704$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 24 Aug 2022 21:02:51 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.0
Subject: Re: shm_open to sys$mgblsc
Content-Language: en-US
Newsgroups: comp.os.vms
References: <6306b4d2$0$702$14726298@news.sunsite.dk>
<te6efa$3esom$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <te6efa$3esom$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 32
Message-ID: <6306ca3d$0$704$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 3be1d58c.news.sunsite.dk
X-Trace: 1661389373 news.sunsite.dk 704 arne@vajhoej.dk/68.9.63.232:61038
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 25 Aug 2022 01:02 UTC

On 8/24/2022 8:07 PM, Stephen Hoffman wrote:
> On 2022-08-24 23:31:28 +0000, Arne Vajhj said:
>> I assume that shm_open end up calling sys$mgblsc, but how does the
>> arguments for sys$mgblsc get constructed?
>>
>> Is the name just used as-is or is it changed?
>>
>> And what about flags? Just S_IWUSR to SEC$M_WRT or?
>
> I don't think any of that is officially documented.

:-(

> Which means...
>
> ANALYZE /SYSTEM with the SDA> SHOW GST and SHOW GSD and related
> commands, and have a look.

I did some looking.

And now I am even more confused.

I did not see anything with those commands.

But I did notice a file:

SYS$LOGIN:DECC$SHM_<name specified to shm_open>.;1

????

Arne

Re: shm_open to sys$mgblsc

<dc361670-44d4-4499-838b-4e3746d6fb9cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:4691:b0:6bb:297e:279 with SMTP id bq17-20020a05620a469100b006bb297e0279mr1664260qkb.35.1661395158748;
Wed, 24 Aug 2022 19:39:18 -0700 (PDT)
X-Received: by 2002:a05:620a:6086:b0:6bb:b892:70a4 with SMTP id
dx6-20020a05620a608600b006bbb89270a4mr1735925qkb.70.1661395158574; Wed, 24
Aug 2022 19:39:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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, 24 Aug 2022 19:39:18 -0700 (PDT)
In-Reply-To: <te6efa$3esom$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2604:2d80:f100:1600:0:0:0:237c;
posting-account=zvIpTQoAAABQJtJR1phhrQImju0wTmq2
NNTP-Posting-Host: 2604:2d80:f100:1600:0:0:0:237c
References: <6306b4d2$0$702$14726298@news.sunsite.dk> <te6efa$3esom$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dc361670-44d4-4499-838b-4e3746d6fb9cn@googlegroups.com>
Subject: Re: shm_open to sys$mgblsc
From: roger.i...@gmail.com (Roger Ivie)
Injection-Date: Thu, 25 Aug 2022 02:39:18 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1955
 by: Roger Ivie - Thu, 25 Aug 2022 02:39 UTC

On Wednesday, August 24, 2022 at 5:07:09 PM UTC-7, Stephen Hoffman wrote:
> On 2022-08-24 23:31:28 +0000, Arne Vajh j said:
>
> > I assume that shm_open end up calling sys$mgblsc, but how does the
> > arguments for sys$mgblsc get constructed?
> >
>
> Oh, hey, look, it's another bit of the 32-/64-bit address-space "fun":
> "If the application passes its own valid non-zero address, the current
> implementation requires this address to be 32 bit; a 64 bit virtual
> address is not supported."

well, yeah. there's also sys$mgblsc_64 for 64-bit addresses. and
sys$mgblsc_pfn_64 for pfn-mapped sections with 64-bit addresses.
just don't accidentally use sys$mgblsc_64 for your pfn-mapped section,
because the system *will* crash (ask me how i know).
--
roger ivie
roger.ivie@gmail.com

Re: shm_open to sys$mgblsc

<bb6361f6-4fcf-4324-ad39-a8ba20a6044fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:622a:48c:b0:344:9d12:db79 with SMTP id p12-20020a05622a048c00b003449d12db79mr2467666qtx.351.1661412003244;
Thu, 25 Aug 2022 00:20:03 -0700 (PDT)
X-Received: by 2002:ac8:5dcf:0:b0:343:7ded:7b with SMTP id e15-20020ac85dcf000000b003437ded007bmr2495366qtx.492.1661412003097;
Thu, 25 Aug 2022 00:20:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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: Thu, 25 Aug 2022 00:20:02 -0700 (PDT)
In-Reply-To: <6306b4d2$0$702$14726298@news.sunsite.dk>
Injection-Info: google-groups.googlegroups.com; posting-host=188.242.128.41; posting-account=MdFUXgoAAAA4RFSe0GdwtymAGVxcBpnA
NNTP-Posting-Host: 188.242.128.41
References: <6306b4d2$0$702$14726298@news.sunsite.dk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bb6361f6-4fcf-4324-ad39-a8ba20a6044fn@googlegroups.com>
Subject: Re: shm_open to sys$mgblsc
From: pustove...@gmail.com (Vitaly Pustovetov)
Injection-Date: Thu, 25 Aug 2022 07:20:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1921
 by: Vitaly Pustovetov - Thu, 25 Aug 2022 07:20 UTC

четверг, 25 августа 2022 г. в 02:31:33 UTC+3, Arne Vajhøj:
> I assume that shm_open end up calling sys$mgblsc, but how does
> the arguments for sys$mgblsc get constructed?
shmp_open only opens/creates a file i.e. fd = open(name, oflag, mode, "shr=del,get,put,upd");
In the next step, you can use mmap and sys$crmpsc/sys$crmpsc_file/sys$crmpsc_file_64/etc are called here.

> Is the name just used as-is or is it changed?
It changes, of course. SYS$SCRATCH:DECC$SHM_ + name

> And what about flags? Just S_IWUSR to SEC$M_WRT or?
Yes, depending on how you need to create the mapping, the SEC$M_GBL, SEC$M_WRT, SEC$M_PAGFIL, SEC$M_CRF, etc. flags are used.

Vitaly

Re: shm_open to sys$mgblsc

<63077401$0$694$14726298@news.sunsite.dk>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Thu, 25 Aug 2022 09:07:10 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.0
Subject: Re: shm_open to sys$mgblsc
Content-Language: en-US
Newsgroups: comp.os.vms
References: <6306b4d2$0$702$14726298@news.sunsite.dk>
<bb6361f6-4fcf-4324-ad39-a8ba20a6044fn@googlegroups.com>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <bb6361f6-4fcf-4324-ad39-a8ba20a6044fn@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 23
Message-ID: <63077401$0$694$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 9d67cefe.news.sunsite.dk
X-Trace: 1661432833 news.sunsite.dk 694 arne@vajhoej.dk/68.9.63.232:49691
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 25 Aug 2022 13:07 UTC

On 8/25/2022 3:20 AM, Vitaly Pustovetov wrote:
> четверг, 25 августа 2022 г. в 02:31:33 UTC+3, Arne Vajhøj:
>> I assume that shm_open end up calling sys$mgblsc, but how does
>> the arguments for sys$mgblsc get constructed?
> shmp_open only opens/creates a file i.e. fd = open(name, oflag, mode, "shr=del,get,put,upd");
> In the next step, you can use mmap and sys$crmpsc/sys$crmpsc_file/sys$crmpsc_file_64/etc are called here.

OK.

No way to open a global section mapped to page file?

>> Is the name just used as-is or is it changed?
> It changes, of course. SYS$SCRATCH:DECC$SHM_ + name

I found that file.

>> And what about flags? Just S_IWUSR to SEC$M_WRT or?
> Yes, depending on how you need to create the mapping, the SEC$M_GBL, SEC$M_WRT, SEC$M_PAGFIL, SEC$M_CRF, etc. flags are used.

What triggers SEC$M_PAGFIL to be set?

Arne

Re: shm_open to sys$mgblsc

<c6a1ddb1-2461-4928-b949-4ab7d1ba24e1n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ad4:5bad:0:b0:476:e202:32eb with SMTP id 13-20020ad45bad000000b00476e20232ebmr4552470qvq.3.1661449264366;
Thu, 25 Aug 2022 10:41:04 -0700 (PDT)
X-Received: by 2002:a05:620a:125b:b0:6ba:f2b3:ed0b with SMTP id
a27-20020a05620a125b00b006baf2b3ed0bmr3744355qkl.563.1661449264217; Thu, 25
Aug 2022 10:41:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.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: Thu, 25 Aug 2022 10:41:03 -0700 (PDT)
In-Reply-To: <63077401$0$694$14726298@news.sunsite.dk>
Injection-Info: google-groups.googlegroups.com; posting-host=188.242.128.41; posting-account=MdFUXgoAAAA4RFSe0GdwtymAGVxcBpnA
NNTP-Posting-Host: 188.242.128.41
References: <6306b4d2$0$702$14726298@news.sunsite.dk> <bb6361f6-4fcf-4324-ad39-a8ba20a6044fn@googlegroups.com>
<63077401$0$694$14726298@news.sunsite.dk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c6a1ddb1-2461-4928-b949-4ab7d1ba24e1n@googlegroups.com>
Subject: Re: shm_open to sys$mgblsc
From: pustove...@gmail.com (Vitaly Pustovetov)
Injection-Date: Thu, 25 Aug 2022 17:41:04 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1620
 by: Vitaly Pustovetov - Thu, 25 Aug 2022 17:41 UTC

четверг, 25 августа 2022 г. в 16:07:16 UTC+3, Arne Vajhøj:
> No way to open a global section mapped to page file?

I'm not sure but IMHO, no way. I'm going to remake to work with page file the shmget/shmat functions

> What triggers SEC$M_PAGFIL to be set?

MAP_ANON flag

Vitaly

Re: shm_open to sys$mgblsc

<tealtm$9br$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: shm_open to sys$mgblsc
Date: Fri, 26 Aug 2022 10:38:46 -0400
Organization: HoffmanLabs LLC
Lines: 31
Message-ID: <tealtm$9br$1@dont-email.me>
References: <6306b4d2$0$702$14726298@news.sunsite.dk> <te6efa$3esom$1@dont-email.me> <dc361670-44d4-4499-838b-4e3746d6fb9cn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="d4fdea4bf60ad24389a6f8d26afc05b6";
logging-data="9595"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EuUnOJpL44RK3aOLpWa4z8sXbbVjG468="
User-Agent: Unison/2.2
Cancel-Lock: sha1:3EYk1faQBsFuUcKx4ax0na3W4cw=
 by: Stephen Hoffman - Fri, 26 Aug 2022 14:38 UTC

On 2022-08-25 02:39:18 +0000, Roger Ivie said:

> On Wednesday, August 24, 2022 at 5:07:09 PM UTC-7, Stephen Hoffman wrote:
>> On 2022-08-24 23:31:28 +0000, Arne Vajh j said:
>>
>>> I assume that shm_open end up calling sys$mgblsc, but how does the
>>> arguments for sys$mgblsc get constructed?
>>
>> Oh, hey, look, it's another bit of the 32-/64-bit address-space "fun":
>> "If the application passes its own valid non-zero address, the current
>> implementation requires this address to be 32 bit; a 64 bit virtual
>> address is not supported."
>
> well, yeah. there's also sys$mgblsc_64 for 64-bit addresses. and
> sys$mgblsc_pfn_64 for pfn-mapped sections with 64-bit addresses. just
> don't accidentally use sys$mgblsc_64 for your pfn-mapped section,
> because the system *will* crash (ask me how i know).

Short term, and for upward-compatibility with minimal changes, the
current 32-/64-bit design wins.

Longer term, this addressing hybrid only adds to API chaos.

Everytime I see this design,
On the street in the hollow in the bend,
I see it in my mind and then
I go down the road not taken...again

--
Pure Personal Opinion | HoffmanLabs LLC

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor