Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Adding features does not necessarily increase functionality -- it just makes the manuals thicker.


devel / comp.os.msdos.programmer / text mode for open

SubjectAuthor
* text mode for openmuta...@gmail.com
`* text mode for openSteve Nickolas
 `- text mode for openmuta...@gmail.com

1
text mode for open

<cd31413f-272f-4066-b824-f44cf66d8c17n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=657&group=comp.os.msdos.programmer#657

  copy link   Newsgroups: comp.os.msdos.programmer
X-Received: by 2002:a05:6214:19c9:b0:4b2:fe6f:90f9 with SMTP id j9-20020a05621419c900b004b2fe6f90f9mr19221424qvc.66.1666411455850;
Fri, 21 Oct 2022 21:04:15 -0700 (PDT)
X-Received: by 2002:a05:6902:305:b0:6c3:b4d6:7a04 with SMTP id
b5-20020a056902030500b006c3b4d67a04mr19039941ybs.93.1666411455521; Fri, 21
Oct 2022 21:04:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.programmer
Date: Fri, 21 Oct 2022 21:04:15 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=110.54.142.182; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 110.54.142.182
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cd31413f-272f-4066-b824-f44cf66d8c17n@googlegroups.com>
Subject: text mode for open
From: mutazilah@gmail.com (muta...@gmail.com)
Injection-Date: Sat, 22 Oct 2022 04:04:15 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 21
 by: muta...@gmail.com - Sat, 22 Oct 2022 04:04 UTC

I would like PDOS/86, a sort-of MSDOS clone, to have an
extension which is letting the OS know whether the file
being opened is being opened in text or binary mode.

Cygwin has an O_TEXT/O_BINARY extension to the
Unix open() basically doing the same thing.

The creat() call has 8 unused bits I could use:

http://www.ctyme.com/intr/rb-2778.htm

The open() call has a bit 3 in AL:

http://www.ctyme.com/intr/rb-2779.htm

which is reserved which I could use to indicate that
BX is populated with a fresh set of 16 bits, even
though I only need 1.

Any suggestions?

Thanks. Paul.

Re: text mode for open

<alpine.DEB.2.21.2210220144080.18533@sd-119843.dedibox.fr>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=658&group=comp.os.msdos.programmer#658

  copy link   Newsgroups: comp.os.msdos.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: usotsuki@buric.co (Steve Nickolas)
Newsgroups: comp.os.msdos.programmer
Subject: Re: text mode for open
Date: Sat, 22 Oct 2022 01:44:53 -0400
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <alpine.DEB.2.21.2210220144080.18533@sd-119843.dedibox.fr>
References: <cd31413f-272f-4066-b824-f44cf66d8c17n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Injection-Info: reader01.eternal-september.org; posting-host="2b031379b90b691ccbc1e56fe3cd5217";
logging-data="916389"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Aj1JQenNNkgsSHA4j0AhPRm5IVhobiSc="
User-Agent: Alpine 2.21 (DEB 202 2017-01-01)
Cancel-Lock: sha1:TVZrhBIkTHoMeBtzS82Niobob4w=
X-X-Sender: mary@sd-119843.dedibox.fr
In-Reply-To: <cd31413f-272f-4066-b824-f44cf66d8c17n@googlegroups.com>
 by: Steve Nickolas - Sat, 22 Oct 2022 05:44 UTC

On Fri, 21 Oct 2022, muta...@gmail.com wrote:

> I would like PDOS/86, a sort-of MSDOS clone, to have an
> extension which is letting the OS know whether the file
> being opened is being opened in text or binary mode.
>
> Cygwin has an O_TEXT/O_BINARY extension to the
> Unix open() basically doing the same thing.

I feel like this should be handled in the libc, for compatibility, as
existing MS-DOS compilers do (in exactly the same way you describe).

-uso.

Re: text mode for open

<eec6a41d-3877-4b74-b9a0-43b8277692dbn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=659&group=comp.os.msdos.programmer#659

  copy link   Newsgroups: comp.os.msdos.programmer
X-Received: by 2002:a05:622a:152:b0:39c:b772:290 with SMTP id v18-20020a05622a015200b0039cb7720290mr19027511qtw.35.1666418828814;
Fri, 21 Oct 2022 23:07:08 -0700 (PDT)
X-Received: by 2002:a05:6902:102e:b0:6ca:ada4:ce71 with SMTP id
x14-20020a056902102e00b006caada4ce71mr301186ybt.237.1666418828575; Fri, 21
Oct 2022 23:07:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.programmer
Date: Fri, 21 Oct 2022 23:07:08 -0700 (PDT)
In-Reply-To: <alpine.DEB.2.21.2210220144080.18533@sd-119843.dedibox.fr>
Injection-Info: google-groups.googlegroups.com; posting-host=110.54.142.182; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 110.54.142.182
References: <cd31413f-272f-4066-b824-f44cf66d8c17n@googlegroups.com> <alpine.DEB.2.21.2210220144080.18533@sd-119843.dedibox.fr>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <eec6a41d-3877-4b74-b9a0-43b8277692dbn@googlegroups.com>
Subject: Re: text mode for open
From: mutazilah@gmail.com (muta...@gmail.com)
Injection-Date: Sat, 22 Oct 2022 06:07:08 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 19
 by: muta...@gmail.com - Sat, 22 Oct 2022 06:07 UTC

On Saturday, October 22, 2022 at 1:43:20 PM UTC+8, Steve Nickolas wrote:
> On Fri, 21 Oct 2022, muta...@gmail.com wrote:
>
> > I would like PDOS/86, a sort-of MSDOS clone, to have an
> > extension which is letting the OS know whether the file
> > being opened is being opened in text or binary mode.
> >
> > Cygwin has an O_TEXT/O_BINARY extension to the
> > Unix open() basically doing the same thing.

> I feel like this should be handled in the libc, for compatibility, as
> existing MS-DOS compilers do (in exactly the same way you describe).

I can still get the libc to generate a CRLF when writing to
the OS. But once the OS knows that this is a text file, it
can choose to convert the CRLF into LF if the OS/user wishes.

Wouldn't that be the ideal?

BFN. Paul.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor