server: Implemented the open_file method for named pipe and mailslot devices.