errno 72

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eyalc1978@gmail.com

    #1

    errno 72

    Hi
    Does someone knows what does errno 72 means
    I got this error when fwriting a structure and still the file is being
    created.
    I saw something on the net saying that this is caused when trying to
    access different file system

  • Vladimir S. Oka

    #2
    Re: errno 72


    eyalc1...@gmail .com wrote:[color=blue]
    > Hi
    > Does someone knows what does errno 72 means
    > I got this error when fwriting a structure and still the file is being
    > created.
    > I saw something on the net saying that this is caused when trying to
    > access different file system[/color]

    You can try using `strerror()` and `perror()` functions, but the result
    is not guaranteed to be meaningful. You have to consult your
    implementation documentation, and hope it's defined there. Try asking
    in the group dedicated to your implementation/OS/whatever.

    --
    BR, Vladimir

    Comment

    • Keith Thompson

      #3
      Re: errno 72

      eyalc1978@gmail .com writes:[color=blue]
      > Does someone knows what does errno 72 means
      > I got this error when fwriting a structure and still the file is being
      > created.
      > I saw something on the net saying that this is caused when trying to
      > access different file system[/color]

      You can use perror or strerror to get a message related to the error.
      Specific errno values aren't portable. (On several systems I've just
      checked, it means "RPC structure is bad", "Multihop attempted",
      "Locked lock was unmapped", or "A connection is ended by software.".)

      But it won't necessarily be meaningful. The fwrite() function doesn't
      necessarily set errno on an error -- and any function can set errno to
      a non-zero value whether it fails or not. (errno might be set as a
      side effect of calling a lower-level function.) You can (sometimes)
      use errno to determine which error occurred, but not to find out
      whether an error occurred or not.

      If you set errno to 0 before calling fwrite(), *and* the value
      returned by fwrite() indicates that an error occurred, *and* error is
      non-zero after the call, then it's likely (but not guaranteed) that
      the value of errno will then be meaningful.

      --
      Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
      San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
      We must do something. This is something. Therefore, we must do this.

      Comment

      • Skarmander

        #4
        Re: errno 72

        Keith Thompson wrote:
        <snip>[color=blue]
        > If you set errno to 0 before calling fwrite(), *and* the value
        > returned by fwrite() indicates that an error occurred, *and* error is
        > non-zero after the call, then it's likely (but not guaranteed) that
        > the value of errno will then be meaningful.
        >[/color]
        <ot>For all the moaning people do about performance, exceptions really
        aren't that bad an idea, are they? :-)</ot>

        S.

        Comment

        Working...