forked from miekg/rdup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry.h
31 lines (27 loc) · 1.02 KB
/
entry.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _ENTRY_H
#define _ENTRY_H
#include <fcntl.h>
#include <sys/stat.h>
#define PLUS 1
#define MINUS 0
/* almost the whole stat structure... */
struct rdup {
guint plusmin:1; /* '-' remove, '+' add. Added because of rdup-tr */
guint f_lnk:1; /* 0, 1 if hardlink */
gchar *f_name; /* filename or link src iff link */
gchar *f_target; /* in case of a link this holds the target name */
size_t f_name_size; /* size of filename */
uid_t f_uid; /* uid */
gchar *f_user; /* username */
gid_t f_gid; /* gid */
gchar *f_group; /* groupname */
mode_t f_mode; /* mode bits */
time_t f_ctime; /* change time of the inode */
time_t f_mtime; /* modification time of the inode */
time_t f_atime; /* modification time of the inode */
off_t f_size; /* file size */
dev_t f_dev; /* ID of device containing file */
dev_t f_rdev; /* device ID (if special file), we use this for major, minor */
ino_t f_ino; /* inode number */
};
#endif /* _ENTRY_H */