available if the close succeeded. (os_open): Pass 0644 as the mode of the file being created. Bring Bob's changes over from the mec branch.
(os_error): New function. (default_callback): Add os_error.