/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright (c) 2014 by Delphix. All rights reserved.
*/
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <umem.h>
#include <stddef.h>
#include <string.h>
extern int errno;
typedef enum {
} seg_type_t;
typedef struct segment {
} seg_t;
static int
no_memory(void) {
return (UMEM_CALLBACK_EXIT(255));
}
static void
{
}
static char *
{
int rand_fd;
char *buf;
/*
* effects of compression.
*/
exit(1);
}
exit(1);
}
return (buf);
}
static void
{
}
int
{
int c, fd;
char *fname;
switch (c) {
case 'd':
break;
case 'h':
break;
}
}
00666)) < 0) {
perror("open failed");
exit(1);
}
perror("freesp failed");
exit(1);
}
while (bytes_read < len) {
if (bytes < 0) {
perror("pread hole failed");
exit(1);
}
"didn't match.\n");
exit(1);
}
bytes_read += bytes;
}
perror("pwrite failed");
exit(1);
}
perror("pread failed");
exit(1);
}
"match.\n");
exit(1);
}
}
}
return (0);
}