Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Entropy isn't what it used to be.


devel / comp.unix.programmer / fu2 is fne (Was: Memory mapping: MAP_PRIVATE and msync())

SubjectAuthor
* Re: Memory mapping: MAP_PRIVATE and msync()pehache
`* Re: Memory mapping: MAP_PRIVATE and msync()James Kuyper
 +* Re: Memory mapping: MAP_PRIVATE and msync()Keith Thompson
 |`* Re: Memory mapping: MAP_PRIVATE and msync()pehache
 | `- fu2 is fne (Was: Memory mapping: MAP_PRIVATE and msync())Kenny McCormack
 `- Re: Memory mapping: MAP_PRIVATE and msync()pehache

1
Re: Memory mapping: MAP_PRIVATE and msync()

<3SRfxOJmmxW4o_baSf1Air4dZWk@jntp>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11682&group=comp.unix.programmer#11682

  copy link   Newsgroups: comp.lang.c comp.unix.programmer
Followup: comp.unix.programmer
Path: i2pn2.org!i2pn.org!news.niel.me!pasdenom.info!from-devjntp
Message-ID: <3SRfxOJmmxW4o_baSf1Air4dZWk@jntp>
JNTP-Route: news2.nemoweb.net
JNTP-DataType: Article
Subject: Re: Memory mapping: MAP_PRIVATE and msync()
References: <osGzrqwQ8DBTJ8mCFoPEiv6Pn0M@jntp> <uuufai$2rdn1$1@dont-email.me>
Newsgroups: comp.lang.c,comp.unix.programmer
Followup-To: comp.unix.programmer
JNTP-HashClient: IhEw_Vx2Ze5kfw7O-zQ_M0nXgpI
JNTP-ThreadID: Xt4PvXwVS7RUVBYIv4ru98146Os
JNTP-Uri: http://news2.nemoweb.net/?DataID=3SRfxOJmmxW4o_baSf1Air4dZWk@jntp
User-Agent: Nemo/0.999a
JNTP-OriginServer: news2.nemoweb.net
Date: Sun, 07 Apr 24 19:09:17 +0000
Organization: Nemoweb
JNTP-Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:109.0) Gecko/20100101 Firefox/115.0
Injection-Info: news2.nemoweb.net; posting-host="516ee13c1e79fa65aedf115a32aee346f9289ca9"; logging-data="2024-04-07T19:09:17Z/8809100"; posting-account="44@news2.nemoweb.net"; mail-complaints-to="julien.arlandis@gmail.com"
JNTP-ProtocolVersion: 0.21.1
JNTP-Server: PhpNemoServer/0.94.5
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-JNTP-JsonNewsGateway: 0.96
From: pehach...@gmail.com (pehache)
 by: pehache - Sun, 7 Apr 2024 19:09 UTC

Le 07/04/2024 à 15:49, Lew Pitcher a écrit :
> On Sun, 07 Apr 2024 13:34:43 +0000, pehache wrote:
>
>> Hello,
>
> Hi, pehache
>
>> When memory mapping a file with the MAP_PRIVATE flag, the modifications
>> (writes) only exist in memory and are not written back to the file.
> [snip]
>> So: is there a way to write the changes back to the file?
> [snip]
>
> The comp.unix.programmer newsgroup will be of better help for this sort
> of question (it's not really on-topic for comp.lang.c).
>
> But, of the top of my head; with my limited understanding of the unix
> mmap() kernel call, the only ways to "write the changes" are to either
> 1) mmap(MAP_SHARED) and modify the mapped area, or
> 2) write() the mapped area back to the file.

I'm currenly using the first option in my code. Either way, the whole
mapped area is written back, even if there were only a few changes. I was
hoping there could be another way to wrtite back only the modified pages.

> But, as I said, comp.unix.programmer will be of better help.

fu2

Re: Memory mapping: MAP_PRIVATE and msync()

<uuvb5d$32kd4$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11685&group=comp.unix.programmer#11685

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jameskuy...@alumni.caltech.edu (James Kuyper)
Newsgroups: comp.unix.programmer
Subject: Re: Memory mapping: MAP_PRIVATE and msync()
Date: Sun, 7 Apr 2024 19:44:44 -0400
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <uuvb5d$32kd4$1@dont-email.me>
References: <osGzrqwQ8DBTJ8mCFoPEiv6Pn0M@jntp> <uuufai$2rdn1$1@dont-email.me>
<3SRfxOJmmxW4o_baSf1Air4dZWk@jntp>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 07 Apr 2024 23:44:45 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="281aaa02f0139322e977270b9a416028";
logging-data="3232164"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GJf4VxUGXCUlEiz+LZCdrbknFXivSmik="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:SaEPOTdzvpsOE1QVAHK/Cgu4Emw=
Content-Language: en-US
In-Reply-To: <3SRfxOJmmxW4o_baSf1Air4dZWk@jntp>
 by: James Kuyper - Sun, 7 Apr 2024 23:44 UTC

On 4/7/24 15:09, pehache wrote:
> Le 07/04/2024 à 15:49, Lew Pitcher a écrit :
....
>> But, as I said, comp.unix.programmer will be of better help.
>
> fu2

Why does that advice annoy you? Why wouldn't you want to take your
question to the forum where people are best qualified to answer it?

Re: Memory mapping: MAP_PRIVATE and msync()

<871q7ghgww.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11686&group=comp.unix.programmer#11686

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.programmer
Subject: Re: Memory mapping: MAP_PRIVATE and msync()
Date: Sun, 07 Apr 2024 16:49:51 -0700
Organization: None to speak of
Lines: 21
Message-ID: <871q7ghgww.fsf@nosuchdomain.example.com>
References: <osGzrqwQ8DBTJ8mCFoPEiv6Pn0M@jntp> <uuufai$2rdn1$1@dont-email.me>
<3SRfxOJmmxW4o_baSf1Air4dZWk@jntp> <uuvb5d$32kd4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 07 Apr 2024 23:49:52 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="37e0361043d8ad7d1ca108f2e4a66c79";
logging-data="3232679"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18h5VX+uL27kqYAhe4PU/Wr"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:LkfxF9rxl6k/1y83xKyHWphMESY=
sha1:JEINsU3WJiv/4bmvMKgAXyj17PQ=
 by: Keith Thompson - Sun, 7 Apr 2024 23:49 UTC

James Kuyper <jameskuyper@alumni.caltech.edu> writes:
> On 4/7/24 15:09, pehache wrote:
>> Le 07/04/2024 à 15:49, Lew Pitcher a écrit :
> ...
>>> But, as I said, comp.unix.programmer will be of better help.
>>
>> fu2
>
> Why does that advice annoy you? Why wouldn't you want to take your
> question to the forum where people are best qualified to answer it?

I believe "fu2" refers to this header line in the article you're
replying to :
Followup-To: comp.unix.programmer

pehache: Apparently James thought "fu2" meant ... something else.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

Re: Memory mapping: MAP_PRIVATE and msync()

<kK9MQ-KwXTZBAcvr_18sOGcGyOg@jntp>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11687&group=comp.unix.programmer#11687

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!news.nntp4.net!pasdenom.info!from-devjntp
Message-ID: <kK9MQ-KwXTZBAcvr_18sOGcGyOg@jntp>
JNTP-Route: news2.nemoweb.net
JNTP-DataType: Article
Subject: Re: Memory mapping: MAP_PRIVATE and msync()
References: <osGzrqwQ8DBTJ8mCFoPEiv6Pn0M@jntp> <uuufai$2rdn1$1@dont-email.me> <3SRfxOJmmxW4o_baSf1Air4dZWk@jntp>
<uuvb5d$32kd4$1@dont-email.me>
Newsgroups: comp.unix.programmer
JNTP-HashClient: Um5B1zzl6lXapMGxD2pVl9Zq2uY
JNTP-ThreadID: Xt4PvXwVS7RUVBYIv4ru98146Os
JNTP-Uri: http://news2.nemoweb.net/?DataID=kK9MQ-KwXTZBAcvr_18sOGcGyOg@jntp
User-Agent: Nemo/0.999a
JNTP-OriginServer: news2.nemoweb.net
Date: Sun, 07 Apr 24 23:54:17 +0000
Organization: Nemoweb
JNTP-Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:109.0) Gecko/20100101 Firefox/115.0
Injection-Info: news2.nemoweb.net; posting-host="516ee13c1e79fa65aedf115a32aee346f9289ca9"; logging-data="2024-04-07T23:54:17Z/8809363"; posting-account="44@news2.nemoweb.net"; mail-complaints-to="julien.arlandis@gmail.com"
JNTP-ProtocolVersion: 0.21.1
JNTP-Server: PhpNemoServer/0.94.5
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-JNTP-JsonNewsGateway: 0.96
From: pehach...@gmail.com (pehache)
 by: pehache - Sun, 7 Apr 2024 23:54 UTC

Le 07/04/2024 à 23:44, James Kuyper a écrit :
> On 4/7/24 15:09, pehache wrote:
>> Le 07/04/2024 à 15:49, Lew Pitcher a écrit :
> ...
>>> But, as I said, comp.unix.programmer will be of better help.
>>
>> fu2
>
> Why does that advice annoy you? Why wouldn't you want to take your
> question to the forum where people are best qualified to answer it?

Uh? Following the advice is exactly what I've done: I have crossposted my
answer to c.u.p, with a fu2 positionned on it.

Re: Memory mapping: MAP_PRIVATE and msync()

<PgZyW9oCgOxERNyTFwXvTAzcfig@jntp>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11699&group=comp.unix.programmer#11699

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Followup: comp.unix.programmer
Path: i2pn2.org!i2pn.org!news.hispagatos.org!news.nntp4.net!pasdenom.info!from-devjntp
Message-ID: <PgZyW9oCgOxERNyTFwXvTAzcfig@jntp>
JNTP-Route: news2.nemoweb.net
JNTP-DataType: Article
Subject: Re: Memory mapping: MAP_PRIVATE and msync()
References: <osGzrqwQ8DBTJ8mCFoPEiv6Pn0M@jntp> <uuufai$2rdn1$1@dont-email.me> <3SRfxOJmmxW4o_baSf1Air4dZWk@jntp>
<uuvb5d$32kd4$1@dont-email.me> <871q7ghgww.fsf@nosuchdomain.example.com>
Newsgroups: comp.unix.programmer,comp.lang.c
Followup-To: comp.unix.programmer
JNTP-HashClient: tyIxevUCNkRmmQoYR22_cxN72mU
JNTP-ThreadID: Xt4PvXwVS7RUVBYIv4ru98146Os
JNTP-Uri: http://news2.nemoweb.net/?DataID=PgZyW9oCgOxERNyTFwXvTAzcfig@jntp
User-Agent: Nemo/0.999a
JNTP-OriginServer: news2.nemoweb.net
Date: Mon, 08 Apr 24 16:00:02 +0000
Organization: Nemoweb
JNTP-Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Injection-Info: news2.nemoweb.net; posting-host="8c0d27be66314e02642b325213f4ebe9b2f8b48c"; logging-data="2024-04-08T16:00:02Z/8809955"; posting-account="44@news2.nemoweb.net"; mail-complaints-to="julien.arlandis@gmail.com"
JNTP-ProtocolVersion: 0.21.1
JNTP-Server: PhpNemoServer/0.94.5
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-JNTP-JsonNewsGateway: 0.96
From: pehach...@gmail.com (pehache)
 by: pehache - Mon, 8 Apr 2024 16:00 UTC

Le 07/04/2024 à 23:49, Keith Thompson a écrit :
> James Kuyper <jameskuyper@alumni.caltech.edu> writes:
>> On 4/7/24 15:09, pehache wrote:
>>> Le 07/04/2024 à 15:49, Lew Pitcher a écrit :
>> ...
>>>> But, as I said, comp.unix.programmer will be of better help.
>>>
>>> fu2
>>
>> Why does that advice annoy you? Why wouldn't you want to take your
>> question to the forum where people are best qualified to answer it?
>
> I believe "fu2" refers to this header line in the article you're
> replying to :
> Followup-To: comp.unix.programmer

That's correct.

>
> pehache: Apparently James thought "fu2" meant ... something else.

OK, sorry for the misunderstanding :( !

"fu2" is a routinely used abbreviation for "Followup-To" (and just that!)
on the fr.* hierarchy, and I thought it was kind of universal on all
hierarchies. Apparently it's not...

fu2 is fne (Was: Memory mapping: MAP_PRIVATE and msync())

<uv14sm$3hiq8$1@news.xmission.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=11700&group=comp.unix.programmer#11700

  copy link   Newsgroups: comp.unix.programmer comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer,comp.lang.c
Subject: fu2 is fne (Was: Memory mapping: MAP_PRIVATE and msync())
Date: Mon, 8 Apr 2024 16:09:58 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uv14sm$3hiq8$1@news.xmission.com>
References: <osGzrqwQ8DBTJ8mCFoPEiv6Pn0M@jntp> <uuvb5d$32kd4$1@dont-email.me> <871q7ghgww.fsf@nosuchdomain.example.com> <PgZyW9oCgOxERNyTFwXvTAzcfig@jntp>
Injection-Date: Mon, 8 Apr 2024 16:09:58 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3722056"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Mon, 8 Apr 2024 16:09 UTC

In article <PgZyW9oCgOxERNyTFwXvTAzcfig@jntp>,
pehache <pehache.7@gmail.com> wrote:
....
>OK, sorry for the misunderstanding :( !

Nothing to be sorry about.

>"fu2" is a routinely used abbreviation for "Followup-To" (and just that!)
>on the fr.* hierarchy, and I thought it was kind of universal on all
>hierarchies. Apparently it's not...

It is fine.

This poster (James whatever) has a long history of weirdly misunderstanding
things. I wouldn't worry about it.

--
Many people in the American South think that DJT is, and will be remembered
as, one of the best presidents in US history. They are absolutely correct.

He is currently at number 46 on the list. High praise, indeed!

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor