PostgreSQL Source Code
git master
dirent.h
Go to the documentation of this file.
1
/*
2
* Headers for port/dirent.c, win32 native implementation of dirent functions
3
*
4
* src/include/port/win32_msvc/dirent.h
5
*/
6
7
#ifndef _WIN32VC_DIRENT_H
8
#define _WIN32VC_DIRENT_H
9
struct
dirent
10
{
11
long
d_ino
;
12
unsigned
short
d_reclen
;
13
unsigned
char
d_type
;
14
unsigned
short
d_namlen
;
15
char
d_name
[MAX_PATH];
16
};
17
18
typedef
struct
DIR
DIR
;
19
20
DIR
*
opendir
(
const
char
*);
21
struct
dirent
*
readdir
(
DIR
*);
22
int
closedir
(
DIR
*);
23
24
/* File types for 'd_type'. */
25
#define DT_UNKNOWN 0
26
#define DT_FIFO 1
27
#define DT_CHR 2
28
#define DT_DIR 4
29
#define DT_BLK 6
30
#define DT_REG 8
31
#define DT_LNK 10
32
#define DT_SOCK 12
33
#define DT_WHT 14
34
#endif
closedir
int closedir(DIR *)
Definition:
dirent.c:127
readdir
struct dirent * readdir(DIR *)
Definition:
dirent.c:78
opendir
DIR * opendir(const char *)
Definition:
dirent.c:33
DIR
Definition:
dirent.c:26
dirent
Definition:
dirent.h:10
dirent::d_name
char d_name[MAX_PATH]
Definition:
dirent.h:15
dirent::d_namlen
unsigned short d_namlen
Definition:
dirent.h:14
dirent::d_reclen
unsigned short d_reclen
Definition:
dirent.h:12
dirent::d_ino
long d_ino
Definition:
dirent.h:11
dirent::d_type
unsigned char d_type
Definition:
dirent.h:13
src
include
port
win32_msvc
dirent.h
Generated on Tue Dec 3 2024 06:13:26 for PostgreSQL Source Code by
1.9.1