1 // license:BSD-3-Clause 2 // copyright-holders:Olivier Galibert, R. Belmont, Vas Crabb 3 //============================================================ 4 // 5 // sdlfile.h - SDL file access functions 6 // 7 // SDLMAME by Olivier Galibert and R. Belmont 8 // 9 //============================================================ 10 11 12 #include "osdcore.h" 13 14 #include <cstdint> 15 #include <string> 16 17 18 //============================================================ 19 // PROTOTYPES 20 //============================================================ 21 22 bool posix_check_socket_path(std::string const &path); 23 osd_file::error posix_open_socket(std::string const &path, std::uint32_t openflags, osd_file::ptr &file, std::uint64_t &filesize); 24 25 bool posix_check_domain_path(std::string const &path); 26 osd_file::error posix_open_domain(std::string const &path, std::uint32_t openflags, osd_file::ptr &file, std::uint64_t &filesize); 27 28 bool posix_check_ptty_path(std::string const &path); 29 osd_file::error posix_open_ptty(std::uint32_t openflags, osd_file::ptr &file, std::uint64_t &filesize, std::string &name); 30 31 osd_file::error errno_to_file_error(int error); 32