fopen extensions

J

jacob navia

Does anyone know here about any fopen argument extensions?

I mean ways of specifying to fopen that the file should be shareable, or
similar flags in the fopen argument. For instance:
fopen("foo.txt","rsb");
would mean shareable file with "rb" flags.

I would like to know the "previous art" in this domain

thanks
 
E

Eric Sosman

jacob navia wrote On 03/28/06 10:05,:
Does anyone know here about any fopen argument extensions?

I mean ways of specifying to fopen that the file should be shareable, or
similar flags in the fopen argument. For instance:
fopen("foo.txt","rsb");
would mean shareable file with "rb" flags.

I would like to know the "previous art" in this domain

"rbs" is probably better than "rsb" (7.19.5.3/3 and
footnote 228).

Some implementations are said to support a "text"
flag as in "rt", but I don't see much use in it (the
"textness" is implied anyhow by the lack of a "b").

What I've actually seen has been more human readable,
like "w,recfm=vfc,maxrec=510". It seems to me this sort
of thing offers greater transparency; somebody reading
a piece of code ported from the DS-9000 may have no
idea what the "s" flag means (all the DS-9000 documents
are classified Top Secret and written in Martian), but
may be able to make reasonable guesses about ",share".
Brevity is not the only virtue.
 
K

Kenneth Brody

Eric said:
jacob navia wrote On 03/28/06 10:05,:
Does anyone know here about any fopen argument extensions?
[...]
What I've actually seen has been more human readable,
like "w,recfm=vfc,maxrec=510". It seems to me this sort
of thing offers greater transparency; somebody reading
a piece of code ported from the DS-9000 may have no
idea what the "s" flag means (all the DS-9000 documents
are classified Top Secret and written in Martian), but
may be able to make reasonable guesses about ",share".
Brevity is not the only virtue.

I grok my copy of the DS-6000 manual. (Sorry, I don't have the funds
to upgrade to the DS-9000 yet.)

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:[email protected]>
 
E

Eric Sosman

Kenneth Brody wrote On 03/28/06 11:07,:
Eric said:
jacob navia wrote On 03/28/06 10:05,:
Does anyone know here about any fopen argument extensions?
[...]

What I've actually seen has been more human readable,
like "w,recfm=vfc,maxrec=510". It seems to me this sort
of thing offers greater transparency; somebody reading
a piece of code ported from the DS-9000 may have no
idea what the "s" flag means (all the DS-9000 documents
are classified Top Secret and written in Martian), but
may be able to make reasonable guesses about ",share".
Brevity is not the only virtue.


I grok my copy of the DS-6000 manual. (Sorry, I don't have the funds
to upgrade to the DS-9000 yet.)

It's actually the same model number: Martians count
in base 11.44714...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,947
Members
47,501
Latest member
Ledmyplace

Latest Threads

Top