Blender V5.3
storage.cc File Reference
#include <cstdio>
#include <cstdlib>
#include <sys/types.h>
#include <sys/stat.h>
#include <cstring>
#include <fcntl.h>
#include <pwd.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include "MEM_guardedalloc.h"
#include "BLI_fileops.hh"
#include "BLI_linklist.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.hh"
#include "BLI_threads.hh"
#include "BLI_utildefines.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

bool blender::BLI_file_alias_target (const char *filepath, char r_targetpath[FILE_MAXDIR])
int blender::BLI_fstat (int fd, struct stat *buffer)
int blender::BLI_stat (const char *path, struct stat *buffer)
Directories
bool blender::BLI_change_working_dir (const char *dir)
char * blender::BLI_current_working_dir (char *dir, size_t maxncpy) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
const char * blender::BLI_dir_home ()
double blender::BLI_dir_free_space (const char *dir) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
eFileAttributes blender::BLI_file_attributes (const char *path)
bool blender::BLI_is_dir (const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool blender::BLI_is_file (const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Common
int64_t blender::BLI_ftell (FILE *stream) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
int blender::BLI_fseek (FILE *stream, int64_t offset, int whence)
int64_t blender::BLI_lseek (int fd, int64_t offset, int whence)
int blender::BLI_file_stat_mode (const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool blender::BLI_exists (const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Files
size_t blender::BLI_file_descriptor_size (int file) ATTR_WARN_UNUSED_RESULT
size_t blender::BLI_file_size (const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void * blender::BLI_file_read_data_as_mem_from_handle (FILE *fp, bool read_size_exact, size_t pad_bytes, size_t *r_size)
char * blender::BLI_file_read_text_as_mem (const char *filepath, size_t pad_bytes, size_t *r_size)
void * blender::BLI_file_read_binary_as_mem (const char *filepath, size_t pad_bytes, size_t *r_size)
char * blender::BLI_file_read_text_as_mem_with_newline_as_nil (const char *filepath, bool trim_trailing_space, size_t pad_bytes, size_t *r_size)
struct LinkNode * blender::BLI_file_read_as_lines (const char *filepath) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void blender::BLI_file_free_lines (struct LinkNode *lines)
bool blender::BLI_file_older (const char *file1, const char *file2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()

Detailed Description

Some really low-level file operations.

Definition in file storage.cc.