Home | History | Annotate | Download | only in mac

Lines Matching refs:close

8 // When the default version of close used on Mac OS X fails with EINTR, the
11 // from the error. If the close is retried after the FD has been closed, the
12 // subsequent close can report EBADF, or worse, it can close an unrelated FD
13 // opened by another thread. If the close is not retried after the FD has been
16 // Mac OS X provides an alternate version of close, close$NOCANCEL. This
18 // this version, it is thus safe to call close without checking for EINTR (as
20 // this verison of close with HANDLE_EINTR is hazardous.
25 // file implements an alternative: to use the $NOCANCEL variant of close (thus
29 // This file operates by providing a close function with the non-$NOCANCEL
33 // version of close prior to the libsyscall version, close's implementation is
48 #define close_interface close$UNIX2003
49 #define close_implementation close$NOCANCEL$UNIX2003
54 // has been chosen. There's no close$NOCANCEL symbol in this case, so use
55 // close$NOCANCEL$UNIX2003 as the implementation. It does the same thing
56 // that close$NOCANCEL would do.
57 #define close_interface close
58 #define close_implementation close$NOCANCEL$UNIX2003
63 #define close_interface close
64 #define close_implementation close$NOCANCEL