fopen extensions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jacob navia

    #1

    fopen extensions

    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
  • Eric Sosman

    #2
    Re: fopen extensions



    jacob navia wrote On 03/28/06 10:05,:[color=blue]
    > 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[/color]

    "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,ma xrec=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.

    --
    Eric.Sosman@sun .com

    Comment

    • Kenneth Brody

      #3
      Re: fopen extensions

      Eric Sosman wrote:[color=blue]
      >
      > jacob navia wrote On 03/28/06 10:05,:[color=green]
      > > Does anyone know here about any fopen argument extensions?[/color][/color]
      [...][color=blue]
      > What I've actually seen has been more human readable,
      > like "w,recfm=vfc,ma xrec=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.[/color]

      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:ThisIsA SpamTrap@gmail. com>

      Comment

      • Eric Sosman

        #4
        [OT] Re: fopen extensions



        Kenneth Brody wrote On 03/28/06 11:07,:[color=blue]
        > Eric Sosman wrote:
        >[color=green]
        >>jacob navia wrote On 03/28/06 10:05,:
        >>[color=darkred]
        >>>Does anyone know here about any fopen argument extensions?[/color][/color]
        >
        > [...]
        >[color=green]
        >> What I've actually seen has been more human readable,
        >>like "w,recfm=vfc,ma xrec=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.[/color]
        >
        >
        > I grok my copy of the DS-6000 manual. (Sorry, I don't have the funds
        > to upgrade to the DS-9000 yet.)[/color]

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

        --
        Eric.Sosman@sun .com

        Comment

        Working...