Lars Gullik Bjønnes wrote: > who is lyx::mkdir used. Do we every use any fancy mode values?
Well, we do use different mode values: src/support/filetools.C: if (tmpfl.empty() || lyx::mkdir(tmpfl, 0700)) { if (lyx::mkdir(tmpfl, 0777)) { if (lyx::mkdir(deflt, 0777)) { bool createDirectory(string const & path, int permission) { ... if (lyx::mkdir(temp, permission)) { src/lyx_main.C: if (!createDirectory(user_lyxdir, 0755)) { So, I guess that the interface should stay as-is. > | #include <sys/stat.h> > | #include <sys/types.h> >> > | int main() { > | int const success = mkdir("foo", 0777); > | return 0; > | } >> > | Is there an autotool-standard way to do this? > > Hmm... kindo I guess. Jean-Marc might have the answer close by :-) -- Angus