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