diff options
Diffstat (limited to 'src/osd/modules/file/posixfile.h')
-rw-r--r-- | src/osd/modules/file/posixfile.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/osd/modules/file/posixfile.h b/src/osd/modules/file/posixfile.h new file mode 100644 index 00000000000..2339a52ceec --- /dev/null +++ b/src/osd/modules/file/posixfile.h @@ -0,0 +1,28 @@ +// license:BSD-3-Clause +// copyright-holders:Olivier Galibert, R. Belmont, Vas Crabb +//============================================================ +// +// sdlfile.h - SDL file access functions +// +// SDLMAME by Olivier Galibert and R. Belmont +// +//============================================================ + + +#include "osdcore.h" + +#include <cstdint> +#include <string> + + +//============================================================ +// PROTOTYPES +//============================================================ + +bool posix_check_socket_path(std::string const &path); +osd_file::error posix_open_socket(std::string const &path, std::uint32_t openflags, osd_file::ptr &file, std::uint64_t &filesize); + +bool posix_check_ptty_path(std::string const &path); +osd_file::error posix_open_ptty(std::uint32_t openflags, osd_file::ptr &file, std::uint64_t &filesize, std::string &name); + +osd_file::error errno_to_file_error(int error); |