Discussion:
higher level files
(too old to reply)
muta...@gmail.com
2021-04-25 18:43:51 UTC
Permalink
I was thinking that an application doing
fopen("fred.txt", "r");
will access the local file known by the OS,
but ":fred.txt" will go one level up, whoever
that is. And "::fred.txt" will go two levels up,
etc.

You may go ":::dd:fred" because that level up
is an MVS mainframe.

An application is not expected to hardcode any
of these names. The user or some other method
will inform that.

Speaking of which.

I was thinking fopen of ":harddisks" would return
(via fgets()) a list of hard disks, perhaps ":0x81"
etc, which can then be opened as raw devices,
suitable for fdisk to be implemented.

BFN. Paul.
Melzzzzz
2021-04-26 00:21:01 UTC
Permalink
Post by ***@gmail.com
I was thinking that an application doing
fopen("fred.txt", "r");
will access the local file known by the OS,
but ":fred.txt" will go one level up, whoever
that is. And "::fred.txt" will go two levels up,
etc.
You may go ":::dd:fred" because that level up
is an MVS mainframe.
An application is not expected to hardcode any
of these names. The user or some other method
will inform that.
Speaking of which.
I was thinking fopen of ":harddisks" would return
(via fgets()) a list of hard disks, perhaps ":0x81"
etc, which can then be opened as raw devices,
suitable for fdisk to be implemented.
BFN. Paul.
What are you on?
--
current job title: senior software engineer
skills: x86 aasembler,c++,c,rust,go,nim,haskell...

press any key to continue or any other to quit...
muta...@gmail.com
2021-04-27 07:37:17 UTC
Permalink
Post by Melzzzzz
Post by ***@gmail.com
I was thinking that an application doing
fopen("fred.txt", "r");
will access the local file known by the OS,
but ":fred.txt" will go one level up, whoever
that is. And "::fred.txt" will go two levels up,
etc.
You may go ":::dd:fred" because that level up
is an MVS mainframe.
An application is not expected to hardcode any
of these names. The user or some other method
will inform that.
Speaking of which.
I was thinking fopen of ":harddisks" would return
(via fgets()) a list of hard disks, perhaps ":0x81"
etc, which can then be opened as raw devices,
suitable for fdisk to be implemented.
What are you on?
Which particular bit of that do you object to? It looks
like a very neat BIOS/OS interface to me.

BFN. Paul.

Continue reading on narkive:
Loading...