Skip to content

Commit 129f5ae

Browse files
committed
Move hsfile to common.h
1 parent 735b283 commit 129f5ae

5 files changed

Lines changed: 6 additions & 33 deletions

File tree

lib/common.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,11 @@ extern int UdpStXn;
10281028
extern int UdpNstates;
10291029
extern char **UdpSt;
10301030

1031+
struct hsfile {
1032+
struct sfile *s; /* the Sfile table address */
1033+
struct hsfile *next; /* the next hash bucket entry */
1034+
};
1035+
10311036
typedef struct znhash {
10321037
char *zn; /* zone name */
10331038
int f; /* "find" flag (used only in ZoneArg) */

lib/dialects/aix/dfile.c

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,13 @@ static char copyright[] =
3939
* Local structures
4040
*/
4141

42-
struct hsfile {
43-
struct sfile *s; /* the Sfile table address */
44-
struct hsfile *next; /* the next hash bucket entry */
45-
};
46-
4742
/*
4843
* Local static variables
4944
*/
5045

51-
static struct hsfile *HbyFdi = /* hash by file buckets */
52-
(struct hsfile *)NULL;
53-
static int HbyFdiCt = 0; /* HbyFdi entry count */
54-
static struct hsfile *HbyFrd = /* hash by file raw device buckets */
55-
(struct hsfile *)NULL;
56-
static int HbyFrdCt = 0; /* HbyFrd entry count */
57-
static struct hsfile *HbyFsd = /* hash by file system buckets */
58-
(struct hsfile *)NULL;
59-
static int HbyFsdCt = 0; /* HbyFsd entry count */
6046
static struct hsfile *HbyMPC = /* hash by MPC file buckets */
6147
(struct hsfile *)NULL;
62-
static int HbyMPCCt = 0; /* HbyMPC entry count */
63-
static struct hsfile *HbyNm = /* hash by name buckets */
64-
(struct hsfile *)NULL;
65-
static int HbyNmCt = 0; /* HbyNm entry count */
48+
static int HbyMPCCt = 0; /* HbyMPC entry count */
6649

6750
/*
6851
* Local definitions

lib/dialects/linux/dfile.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@
3434
* Local structures
3535
*/
3636

37-
struct hsfile {
38-
struct sfile *s; /* the Sfile table address */
39-
struct hsfile *next; /* the next hash bucket entry */
40-
};
41-
4237
/*
4338
* Local static variables
4439
*/

lib/dialects/sun/dfile.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ static char copyright[] =
3939
* Local structures
4040
*/
4141

42-
struct hsfile {
43-
struct sfile *s; /* the Sfile table address */
44-
struct hsfile *next; /* the next hash bucket entry */
45-
};
46-
4742
/*
4843
* Local static variables
4944
*/

lib/isfn.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@
6060
* Local structures
6161
*/
6262

63-
struct hsfile {
64-
struct sfile *s; /* the Sfile table address */
65-
struct hsfile *next; /* the next hash bucket entry */
66-
};
67-
6863
/*
6964
* Local static variables
7065
*/

0 commit comments

Comments
 (0)