summaryrefslogtreecommitdiff
path: root/FL/fl_utf8.h
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-11-10 12:56:00 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-11-10 12:56:00 +0000
commit4a088d28f5607ee2713069de71b497eef335e9fd (patch)
treeafb49c2d5c08e5b1ed1c4046be237e0b031f1cdb /FL/fl_utf8.h
parentff1e508e5d3462c2da910fedfa442b0f2b9b3617 (diff)
Add missing platform wrapper fl_chdir() for chdir().
Tested under Windows and Linux, but not yet used in library code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/fl_utf8.h')
-rw-r--r--FL/fl_utf8.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/FL/fl_utf8.h b/FL/fl_utf8.h
index 68ebf3f05..f855f977f 100644
--- a/FL/fl_utf8.h
+++ b/FL/fl_utf8.h
@@ -160,10 +160,13 @@ FL_EXPORT int fl_chmod(const char* f, int mode);
FL_EXPORT int fl_access(const char* f, int mode);
/* OD: Portable UTF-8 aware stat wrapper */
-FL_EXPORT int fl_stat( const char *path, struct stat *buffer );
+FL_EXPORT int fl_stat(const char *path, struct stat *buffer);
/* OD: Portable UTF-8 aware getcwd wrapper */
-FL_EXPORT char* fl_getcwd( char *buf, int maxlen);
+FL_EXPORT char *fl_getcwd(char *buf, int len);
+
+/* Portable UTF-8 aware chdir wrapper */
+FL_EXPORT int fl_chdir(const char *path);
/* OD: Portable UTF-8 aware fopen wrapper */
FL_EXPORT FILE *fl_fopen(const char *f, const char *mode);
@@ -175,9 +178,9 @@ FL_EXPORT int fl_system(const char* f);
FL_EXPORT int fl_execvp(const char *file, char *const *argv);
/* OD: Portable UTF-8 aware open wrapper */
-FL_EXPORT int fl_open(const char* f, int o, ...);
+FL_EXPORT int fl_open(const char *fname, int oflags, ...);
-FL_EXPORT int fl_open_ext(const char* fname, int binary, int oflags, ...);
+FL_EXPORT int fl_open_ext(const char *fname, int binary, int oflags, ...);
/* OD: Portable UTF-8 aware unlink wrapper */
FL_EXPORT int fl_unlink(const char *fname);