From 7d167b3cf1758f91f430379f40f816c28ebd0518 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 8 Jan 2023 19:43:31 +0100 Subject: FLUID: add drag'n'drop for images (#642) FLUID dnd for desktop images into the design Documentation for fl_access --- src/fl_utf8.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx index fcbb63ee0..72589c8e7 100644 --- a/src/fl_utf8.cxx +++ b/src/fl_utf8.cxx @@ -449,8 +449,14 @@ int fl_chmod(const char* f, int mode) { /** Cross-platform function to test a files access() with a UTF-8 encoded name or value. - This function is especially useful on the Windows platform where the - standard access() function fails with UTF-8 encoded non-ASCII filenames. + This function is especially useful on the Windows platform where the + standard access() function fails with UTF-8 encoded non-ASCII filenames. + + Windows defines the mode values 0 for existence, 2 for writable, 4 for + readable, and 6 of readable and writable. On other systems, the modes + `X_OK`, `W_OK`, and `R_OK` are usually defined as 1, 2, and 4. + + Upon successful completion, the value 0 is returned on all platforms. \param[in] f the UTF-8 encoded filename \param[in] mode the mode to test -- cgit v1.2.3