#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    48
    Rep Power
    1

    What can return EINTR?


    What functions can return EINTR?
  2. #2
  3. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,091
    Rep Power
    2222
    RTFM!

    And usually the question is "what errors could this function that I'm using throw?"

    And out of curiosity, did you mean "Baal" instead of "ball"?
  4. #3
  5. Contributing User

    Join Date
    Aug 2003
    Location
    UK
    Posts
    5,075
    Rep Power
    1802
    Normally no standard or system specific function would return this value, rather when a function fails errno may be set to this value.

    I cannot see any advantage in enumerating all the functions that might result in errno = EINTR, a more useful approach would be to read the documentation for any function you choose to use and if it throws EINTR you might want to handle it.

    However if you really must, the method I would use to generate such a list is to use a Google site search of a site that documents the POSIX API; for example EINTR SYNOPSIS site:opengroup.org
    Last edited by clifford; September 12th, 2013 at 03:25 PM.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    48
    Rep Power
    1
    I'm making fun of the name baal (he was a gould on stargate.)
    I was just confused why some functions returned EINTR and some did not (and a couple of other points.)

    Thanks.
  8. #5
  9. Contributing User

    Join Date
    Aug 2003
    Location
    UK
    Posts
    5,075
    Rep Power
    1802
    Originally Posted by ballsystemlord
    I was just confused why some functions returned EINTR and some did not
    That is not what you asked; rather you asked for a list of functions. I am not sure haow that would help. The answer to the question you should have asked perhaps is here.

IMN logo majestic logo threadwatch logo seochat tools logo