mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
OpenZFS restructuring - libspl
Factor Linux specific pieces out of libspl. Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Sean Eric Fagan <sef@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9336
This commit is contained in:
committed by
Brian Behlendorf
parent
6360e2779e
commit
d31277abb1
@@ -34,10 +34,6 @@
|
||||
#include <time.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef unsigned char uchar_t;
|
||||
typedef long long longlong_t;
|
||||
typedef longlong_t offset_t;
|
||||
|
||||
static unsigned char bigbuffer[BIGBUFFERSIZE];
|
||||
|
||||
/*
|
||||
|
||||
@@ -33,12 +33,9 @@
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stdtypes.h>
|
||||
#include <unistd.h>
|
||||
|
||||
typedef long long offset_t;
|
||||
#define MAXOFFSET_T LLONG_MAX
|
||||
|
||||
/*
|
||||
* --------------------------------------------------------------
|
||||
*
|
||||
|
||||
@@ -2,10 +2,6 @@ include $(top_srcdir)/config/Rules.am
|
||||
|
||||
pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
|
||||
|
||||
DEFAULT_INCLUDES += \
|
||||
-I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/lib/libspl/include
|
||||
|
||||
pkgexec_PROGRAMS = libzfs_input_check
|
||||
|
||||
libzfs_input_check_SOURCES = libzfs_input_check.c
|
||||
|
||||
@@ -30,8 +30,6 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
typedef enum boolean { B_FALSE, B_TRUE } boolean_t;
|
||||
|
||||
static void
|
||||
usage(char *progname)
|
||||
{
|
||||
|
||||
@@ -35,17 +35,13 @@
|
||||
#include <libintl.h>
|
||||
#include <errno.h>
|
||||
|
||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
|
||||
#define BLOCK_SIZE 512 /* bytes */
|
||||
#define BLOCKSIZE 512 /* bytes */
|
||||
#define KILOBYTE 1024
|
||||
#define MEGABYTE (KILOBYTE * KILOBYTE)
|
||||
#define GIGABYTE (KILOBYTE * MEGABYTE)
|
||||
|
||||
#define FILE_MODE (S_ISVTX + S_IRUSR + S_IWUSR)
|
||||
|
||||
typedef long long offset_t;
|
||||
|
||||
static void usage(void);
|
||||
|
||||
int
|
||||
@@ -95,7 +91,7 @@ main(int argc, char **argv)
|
||||
break;
|
||||
case 'b':
|
||||
case 'B':
|
||||
mult = BLOCK_SIZE;
|
||||
mult = BLOCKSIZE;
|
||||
break;
|
||||
case 'm':
|
||||
case 'M':
|
||||
|
||||
@@ -2,10 +2,6 @@ include $(top_srcdir)/config/Rules.am
|
||||
|
||||
pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
|
||||
|
||||
DEFAULT_INCLUDES += \
|
||||
-I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/lib/libspl/include
|
||||
|
||||
pkgexec_PROGRAMS = nvlist_to_lua
|
||||
|
||||
nvlist_to_lua_SOURCES = nvlist_to_lua.c
|
||||
|
||||
Reference in New Issue
Block a user