core/linux/os.c
/* created directory will be owned by effective uid,
 * Note a symbolic link will never be followed.
 */
created directory will be owned by effective uid,
Note a symbolic link will never be followed.
created directory will be owned by effective uid Note a symbolic link will never be followed .
bool
os_create_dir(const char *fname, create_directory_flags_t create_dir_flags)
{
    bool require_new = TEST(CREATE_DIR_REQUIRE_NEW, create_dir_flags);
    int rc = dynamorio_syscall(SYS_mkdir, 2, fname, S_IRWXU|S_IRWXG);
    ASSERT(create_dir_flags == CREATE_DIR_REQUIRE_NEW || 
           create_dir_flags == CREATE_DIR_ALLOW_EXISTING);
    return (rc == 0 || (!require_new && rc == -EEXIST));
}
bool os_create_dir ( const char * fname , create_directory_flags_t create_dir_flags ) { bool require_new = TEST ( CREATE_DIR_REQUIRE_NEW , create_dir_flags ) ; int rc = dynamorio_syscall ( SYS_mkdir , 2 , fname , S_IRWXU | S_IRWXG ) ; ASSERT ( create_dir_flags == CREATE_DIR_REQUIRE_NEW || create_dir_flags == CREATE_DIR_ALLOW_EXISTING ) ; return ( rc == 0 || ( ! require_new && rc == - EEXIST ) ) ; }
created directory will be owned by effective uid,
 Note a symbolic link will never be followed.
created directory will be owned by effective uid Note a symbolic link will never be followed .