forked from e2tools/e2tools
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathe2tools.h
85 lines (76 loc) · 1.83 KB
/
e2tools.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef E2TOOLS_H
#define E2TOOLS_H
/* $Header: /home/ksheff/src/e2tools/RCS/e2tools.h,v 0.7 2004/04/07 01:15:55 ksheff Exp $ */
/* Copyright 2002 Keith W. Sheffield */
/* Description */
/*
* $Log: e2tools.h,v $
* Revision 0.7 2004/04/07 01:15:55 ksheff
* Added the parameter struct stat *def_stat to put_file().
*
* Revision 0.6 2002/08/08 07:57:04 ksheff
* Added new routine do_tail() from tail.c
* Added new routine read_to_eof() from read.c
* Made retrieve_data() from read.c a public routine
*
* Revision 0.5 2002/04/10 10:43:27 ksheff
* Added e2rm().
*
* Revision 0.4 2002/04/10 09:33:26 ksheff
* Modified prototypes for functions involved with setting directory
* attributes.
*
* Revision 0.3 2002/03/21 09:05:16 ksheff
* Added function prototypes from mv.c and altered do_ln() slightly.
*
* Revision 0.2 2002/03/07 07:26:02 ksheff
* Added function prototypes and defined the macros E2T_FORCE and E2T_DO_MV
*
* Revision 0.1 2002/02/27 04:47:44 ksheff
* initial revision
*
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <time.h>
#include <utime.h>
/*
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#else
#endif
*/
#ifdef HAVE_OPTRESET
extern int optreset; /* defined by BSD, but not others */
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <regex.h>
#include "ext2fs/ext2_fs.h"
#include "ext2fs/ext2fs.h"
#define E2T_FORCE 1
#define E2T_DO_MV 2
#include "copy.h"
#include "util.h"
#include "write.h"
#include "mkdir.h"
#include "progress.h"
#include "read.h"
#include "ln.h"
#include "mv.h"
#include "rm.h"
#include "tail.h"
#include "ls.h"
#if __GNUC__ >= 4
# define UNUSED_PARM(foo) foo __attribute__((unused))
#else
# define UNUSED_PARM(foo) foo ## __UNUSED
#endif
#endif