31#ifdef fl_dirent_h_cyclic_include
32# include "/usr/include/dirent.h"
38# include "Fl_Export.H"
44# define FL_PATH_MAX 2048
69# if defined(__cplusplus) && !defined(FL_DOXYGEN)
82# if defined(WIN32) && !defined(__CYGWIN__) && !defined(__WATCOMC__)
84struct dirent {
char d_name[1];};
86# elif defined(__WATCOMC__)
87# include <sys/types.h>
105# include <sys/types.h>
106# define fl_dirent_h_cyclic_include
108# undef fl_dirent_h_cyclic_include
111# if defined (__cplusplus)
115# if !defined(FL_DOXYGEN)
116FL_EXPORT
int fl_alphasort(
struct dirent **,
struct dirent **);
117FL_EXPORT
int fl_casealphasort(
struct dirent **,
struct dirent **);
118FL_EXPORT
int fl_casenumericsort(
struct dirent **,
struct dirent **);
119FL_EXPORT
int fl_numericsort(
struct dirent **,
struct dirent **);
124# if defined(__cplusplus)
140FL_EXPORT
int fl_open_uri(
const char *uri,
char *msg = (
char *)0,
151int _fl_filename_isdir_quick(
const char *name);
160# ifdef FLTK_1_0_COMPAT
161# define filename_absolute fl_filename_absolute
162# define filename_expand fl_filename_expand
163# define filename_ext fl_filename_ext
164# define filename_isdir fl_filename_isdir
165# define filename_list fl_filename_list
166# define filename_match fl_filename_match
167# define filename_name fl_filename_name
168# define filename_relative fl_filename_relative
169# define filename_setext fl_filename_setext
170# define numericsort fl_numericsort
#define FL_PATH_MAX
all path buffers should use this length
Definition: filename.H:44
FL_EXPORT char * fl_filename_setext(char *to, int tolen, const char *ext)
Replaces the extension in buf of max.
Definition: filename_setext.cxx:49
FL_EXPORT int fl_filename_list(const char *d, struct dirent ***l, Fl_File_Sort_F *s=fl_numericsort)
Portable and const-correct wrapper for the scandir() function.
Definition: filename_list.cxx:82
FL_EXPORT const char * fl_filename_ext(const char *buf)
Gets the extensions of a filename.
Definition: filename_ext.cxx:43
FL_EXPORT int fl_filename_absolute(char *to, int tolen, const char *from)
Makes a filename absolute from a relative filename.
Definition: filename_absolute.cxx:65
FL_EXPORT const char * fl_filename_name(const char *filename)
Gets the file name from a path.
FL_EXPORT int fl_open_uri(const char *uri, char *msg=(char *) 0, int msglen=0)
Opens the specified Uniform Resource Identifier (URI).
Definition: fl_open_uri.cxx:95
int() Fl_File_Sort_F(struct dirent **, struct dirent **)
File sorting function.
Definition: filename.H:122
FL_EXPORT int fl_filename_expand(char *to, int tolen, const char *from)
Expands a filename containing shell variables and tilde (~).
Definition: filename_expand.cxx:72
FL_EXPORT int fl_filename_match(const char *name, const char *pattern)
Checks if a string s matches a pattern p.
Definition: filename_match.cxx:53
FL_EXPORT void fl_filename_free_list(struct dirent ***l, int n)
Free the list of filenames that is generated by fl_filename_list().
Definition: filename_list.cxx:190
FL_EXPORT int fl_filename_relative(char *to, int tolen, const char *from)
Makes a filename relative to the current working directory.
Definition: filename_absolute.cxx:137
FL_EXPORT int fl_filename_isdir(const char *name)
Determines if a file exists and is a directory from its filename.
Definition: filename_isdir.cxx:61