commit 752ddb3633585022f6542dd5ba7ef6c34432d6fa
parent 494ad19401db718a4806e5cf65f6bb6916927bc0
Author: sin <sin@2f30.org>
Date: Mon, 20 May 2019 14:01:09 +0300
Rename bcompat to compat
This file will be used to implement more compat interfaces in the
future (pledge and unveil).
Diffstat:
5 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -7,6 +7,7 @@ HDR = \
arg.h \
block.h \
chunker.h \
+ compat.h \
config.h \
key.h \
lock.h \
@@ -17,12 +18,12 @@ HDR = \
tree.h \
COMMOBJ = \
- bcompat.o \
bcompress.o \
bencrypt.o \
block.o \
bstorage.o \
chunker.o \
+ compat.o \
key.o \
lock.o \
misc.o \
diff --git a/block.h b/block.h
@@ -36,9 +36,6 @@ extern int bcheck(struct bctx *, unsigned char *);
extern int bsync(struct bctx *);
extern int bclose(struct bctx *);
-/* bcompat.c */
-extern int punchhole(int, off_t, off_t);
-
/* bcompress.c */
extern struct bops *bcompressops(void);
diff --git a/bstorage.c b/bstorage.c
@@ -23,6 +23,7 @@
#include <unistd.h>
#include "block.h"
+#include "compat.h"
#include "config.h"
#include "misc.h"
#include "queue.h"
diff --git a/bcompat.c b/compat.c
diff --git a/compat.h b/compat.h
@@ -0,0 +1 @@
+extern int punchhole(int, off_t, off_t);