¡@

Home 

c++ Programming Glossary: mode_t

C++ - How to set file permissions (cross platform)

http://stackoverflow.com/questions/592448/c-how-to-set-file-permissions-cross-platform

sys types.h #ifdef _WIN32 # include io.h typedef int mode_t @Note If STRICT_UGO_PERMISSIONS is not defined then setting.. use the POSIX values left shifted 16 bits. static const mode_t S_ISUID 0x08000000 does nothing static const mode_t S_ISGID.. const mode_t S_ISUID 0x08000000 does nothing static const mode_t S_ISGID 0x04000000 does nothing static const mode_t S_ISVTX..

How can I create directory tree in C++/Linux?

http://stackoverflow.com/questions/675039/how-can-i-create-directory-tree-in-c-linux

string.h #include sysstat.h Fix up for Windows inc mode_t typedef struct stat Stat #ifndef lint Prevent over aggressive.. Exp #endif lint static int do_mkdir const char path mode_t mode Stat st int status 0 if stat path st 0 Directory does.. element and working backwards. int mkpath const char path mode_t mode char pp char sp int status char copypath STRDUP path status..