         let res = fcntl(self.descriptor, F_SETFL, O_NONBLOCK)
         
         guard res >= 0 else {
-            throw IOError(errno: errno, reason: "fcntl(...) failed")
+            throw IOError(errno: errno, reason: reasonForError(function: "fcntl"))
         }
         
     }

    public func close() throws {
        let res = sysClose(self.descriptor)
        guard res >= 0 else {
            throw IOError(errno: errno, reason: "close(...) failed")
        }
        self.open = false
    }
}

        }
        
        guard res >= 0 else {
            throw IOError(errno: errno, reason: reasonForError(function: "bind"))
        }
    }
    
