00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __EDELIB_MISSING_H__
00022 #define __EDELIB_MISSING_H__
00023
00024 #include "edelib-global.h"
00025
00026
00027
00028
00029
00030
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034
00035
00036 #include <dirent.h>
00037
00042 EDELIB_API int edelib_setenv(const char* name, const char* value, int overwrite);
00043
00047 EDELIB_API int edelib_unsetenv(const char* name);
00048
00052 EDELIB_API unsigned int edelib_strnlen(const char* str, unsigned int maxlen);
00053
00057 EDELIB_API char* edelib_strndup(const char* str, unsigned int maxlen);
00058
00064 EDELIB_API unsigned long edelib_strlcpy(char* dst, const char* src, unsigned long sz);
00065
00071 EDELIB_API unsigned long edelib_strlcat(char* dst, const char* src, unsigned long sz);
00072
00076 EDELIB_API int edelib_scandir(const char* dir, struct dirent*** namelist,
00077 int (*filter)(const struct dirent* name),
00078 int (*compar)(struct dirent** n1, struct dirent** n2));
00079
00083 EDELIB_API int edelib_alphasort(struct dirent **n1, struct dirent **n2);
00084
00085 #ifdef __cplusplus
00086 }
00087 #endif
00088
00089 #endif