Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_fileops.h
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
| typedef struct _stat BLI_stat_t; | typedef struct _stat BLI_stat_t; | ||||
| # endif | # endif | ||||
| #else | #else | ||||
| typedef struct stat BLI_stat_t; | typedef struct stat BLI_stat_t; | ||||
| #endif | #endif | ||||
| int BLI_fstat(int fd, BLI_stat_t *buffer) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | int BLI_fstat(int fd, BLI_stat_t *buffer) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| int BLI_stat(const char *path, BLI_stat_t *buffer) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | int BLI_stat(const char *path, BLI_stat_t *buffer) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| int64_t BLI_ftell(FILE *stream) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | |||||
| int BLI_fseek(FILE *stream, int64_t offset, int whence) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | |||||
| int64_t BLI_lseek(int fd, int64_t offset, int whence) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | |||||
| #ifdef WIN32 | #ifdef WIN32 | ||||
| int BLI_wstat(const wchar_t *path, BLI_stat_t *buffer); | int BLI_wstat(const wchar_t *path, BLI_stat_t *buffer); | ||||
| #endif | #endif | ||||
| typedef enum eFileAttributes { | typedef enum eFileAttributes { | ||||
| FILE_ATTR_READONLY = 1 << 0, /* Read-only or Immutable. */ | FILE_ATTR_READONLY = 1 << 0, /* Read-only or Immutable. */ | ||||
| FILE_ATTR_HIDDEN = 1 << 1, /* Hidden or invisible. */ | FILE_ATTR_HIDDEN = 1 << 1, /* Hidden or invisible. */ | ||||
| FILE_ATTR_SYSTEM = 1 << 2, /* Used by the Operating System. */ | FILE_ATTR_SYSTEM = 1 << 2, /* Used by the Operating System. */ | ||||
| ▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines | |||||