X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d2651fcd0809db517807aab2e259d07ad0878f4e..4a1a62fae847eab4e83fdd61a5c801e9ec99529e:/stglibs/common.lib/include/stg/common.h diff --git a/stglibs/common.lib/include/stg/common.h b/stglibs/common.lib/include/stg/common.h index 8e82d2a8..d404e013 100644 --- a/stglibs/common.lib/include/stg/common.h +++ b/stglibs/common.lib/include/stg/common.h @@ -27,17 +27,16 @@ #ifndef common_h #define common_h -#ifdef __BORLANDC__ -#include -#else -#include -#include // NAME_MAX -#endif +#include "stg/os_int.h" +#include "stg/const.h" + #include #include +#include +#include // NAME_MAX -#include "stg/os_int.h" -#include "stg/const.h" +#include // uid_t, gid_t +#include // mode_t #define STAT_TIME_3 (1) #define STAT_TIME_2 (2) @@ -303,4 +302,8 @@ const std::string & unsigned2str(varT x, std::string & s) char * stg_strptime(const char *, const char *, struct tm *); time_t stg_timegm(struct tm *); +uid_t str2uid(const std::string& name); +gid_t str2gid(const std::string& name); +mode_t str2mode(const std::string& mode); + #endif