Blender V5.0
BLI_fileops_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11
12#include <sys/stat.h>
13
14#if defined(WIN32)
15typedef unsigned int mode_t;
16#endif
17
18#define FILELIST_DIRENTRY_SIZE_LEN 16
19#define FILELIST_DIRENTRY_MODE_LEN 4
20#define FILELIST_DIRENTRY_OWNER_LEN 16
21#define FILELIST_DIRENTRY_TIME_LEN 8
22#define FILELIST_DIRENTRY_DATE_LEN 16
23
24struct direntry {
26 const char *relname;
27 const char *path;
28#ifdef WIN32 /* keep in sync with the definition of BLI_stat_t in BLI_fileops.h */
29# if defined(_MSC_VER)
30 struct _stat64 s;
31# else
32 struct _stat s;
33# endif
34#else
35 struct stat s;
36#endif
37};
38
39struct dirlink {
40 struct dirlink *next, *prev;
41 char *name;
42};
unsigned int mode_t
struct stat s
const char * relname
const char * path