1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

FIO: Add relative path support to translate raw filenames to relative paths

Default to ./ when no directory separator is mentioned in the path provided.
This commit is contained in:
Mark Pizzolato
2022-06-11 17:18:18 -07:00
parent 42beb777d9
commit 33ef5b9ef2
2 changed files with 135 additions and 4 deletions

View File

@@ -79,6 +79,7 @@ int sim_mkdir(const char *path);
int sim_rmdir(const char *path);
t_stat sim_copyfile (const char *source_file, const char *dest_file, t_bool overwrite_existing);
char *sim_filepath_parts (const char *pathname, const char *parts);
const char *sim_relative_path (const char *filepath);
char *sim_getcwd (char *buf, size_t buf_size);
#include <sys/stat.h>
typedef void (*DIR_ENTRY_CALLBACK)(const char *directory,