library/src/filesystem/BP-FilesystemRegistry.cc
// flags indicating the directory crawl policy
flags indicating the directory crawl policy
flags indicating the directory crawl policy
BP_ERROR_T BP_FSRegDisplayDirectoryPolicy(BP_FSREG_DIRECTORY_POLICY directory_policy)
{
	if(BP_FLAG_IS_SET(directory_policy, BP_FS_DIRECTORY_POLICY_FLAG_IGNORE_ALL))
		printf("\n\t\t BP_FS_DIRECTORY_POLICY_FLAG_IGNORE_ALL ");
	if(BP_FLAG_IS_SET(directory_policy, BP_FS_DIRECTORY_POLICY_FLAG_ONLY))
		printf("\n\t\t BP_FS_DIRECTORY_POLICY_FLAG_ONLY ");
	if(BP_FLAG_IS_SET(directory_policy, BP_FS_DIRECTORY_POLICY_FLAG_READABLE_BY_CURRENT_USER))
		printf("\n\t\t BP_FS_DIRECTORY_POLICY_FLAG_READABLE_BY_CURRENT_USER ");
	if(BP_FLAG_IS_SET(directory_policy, BP_FS_DIRECTORY_POLICY_FLAG_WRITABLE_BY_CURRENT_USER))
		printf("\n\t\t BP_FS_DIRECTORY_POLICY_FLAG_WRITABLE_BY_CURRENT_USER ");
	if(BP_FLAG_IS_SET(directory_policy, BP_FS_DIRECTORY_POLICY_FLAG_EXECUTABLE_BY_CURRENT_USER))
		printf("\n\t\t BP_FS_DIRECTORY_POLICY_FLAG_EXECUTABLE_BY_CURRENT_USER ");
	if(BP_FLAG_IS_SET(directory_policy, BP_FS_DIRECTORY_POLICY_FLAG_SUID))
		printf("\n\t\t BP_FS_DIRECTORY_POLICY_FLAG_SUID ");
	if(BP_FLAG_IS_SET(directory_policy, BP_FS_DIRECTORY_POLICY_FLAG_SGID))
		printf("\n\t\t BP_FS_DIRECTORY_POLICY_FLAG_SGID ");
	return ERR_SUCCESS;
}
BP_ERROR_T BP_FSRegDisplayDirectoryPolicy ( BP_FSREG_DIRECTORY_POLICY directory_policy ) { if ( BP_FLAG_IS_SET ( directory_policy , BP_FS_DIRECTORY_POLICY_FLAG_IGNORE_ALL ) ) printf ( " \n \t \t " ) ; if ( BP_FLAG_IS_SET ( directory_policy , BP_FS_DIRECTORY_POLICY_FLAG_ONLY ) ) printf ( " \n \t \t " ) ; if ( BP_FLAG_IS_SET ( directory_policy , BP_FS_DIRECTORY_POLICY_FLAG_READABLE_BY_CURRENT_USER ) ) printf ( " \n \t \t " ) ; if ( BP_FLAG_IS_SET ( directory_policy , BP_FS_DIRECTORY_POLICY_FLAG_WRITABLE_BY_CURRENT_USER ) ) printf ( " \n \t \t " ) ; if ( BP_FLAG_IS_SET ( directory_policy , BP_FS_DIRECTORY_POLICY_FLAG_EXECUTABLE_BY_CURRENT_USER ) ) printf ( " \n \t \t " ) ; if ( BP_FLAG_IS_SET ( directory_policy , BP_FS_DIRECTORY_POLICY_FLAG_SUID ) ) printf ( " \n \t \t " ) ; if ( BP_FLAG_IS_SET ( directory_policy , BP_FS_DIRECTORY_POLICY_FLAG_SGID ) ) printf ( " \n \t \t " ) ; return ERR_SUCCESS ; }
flags indicating the directory crawl policy
flags indicating the directory crawl policy
// return indicating success