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 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029
00030
00031 #include <dirent.h>
00032
00042 EDELIB_API int edelib_setenv(const char* name, const char* value, int overwrite);
00043
00048 EDELIB_API int edelib_unsetenv(const char* name);
00049
00053 EDELIB_API unsigned int edelib_strnlen(const char* str, unsigned int maxlen);
00054
00059 EDELIB_API char* edelib_strndup(const char* str, unsigned int maxlen);
00060
00067 EDELIB_API unsigned long edelib_strlcpy(char* dst, const char* src, unsigned long sz);
00068
00075 EDELIB_API unsigned long edelib_strlcat(char* dst, const char* src, unsigned long sz);
00076
00081 EDELIB_API int edelib_scandir(const char* dir, struct dirent*** namelist,
00082 int (*filter)(const struct dirent* name),
00083 int (*compar)(struct dirent** n1, struct dirent** n2));
00084
00089 EDELIB_API int edelib_alphasort(struct dirent **n1, struct dirent **n2);
00090
00095 EDELIB_API int edelib_daemon(int nochdir, int noclose);
00096
00097 #ifdef __cplusplus
00098 }
00099 #endif
00100
00101 #endif