Path: blob/main/tests/sys/cddl/zfs/bin/file_common.h
39536 views
/*1* CDDL HEADER START2*3* The contents of this file are subject to the terms of the4* Common Development and Distribution License (the "License").5* You may not use this file except in compliance with the License.6*7* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE8* or http://www.opensolaris.org/os/licensing.9* See the License for the specific language governing permissions10* and limitations under the License.11*12* When distributing Covered Code, include this CDDL HEADER in each13* file and include the License file at usr/src/OPENSOLARIS.LICENSE.14* If applicable, add the following below this CDDL HEADER, with the15* fields enclosed by brackets "[]" replaced with your own identifying16* information: Portions Copyright [yyyy] [name of copyright owner]17*18* CDDL HEADER END19*/2021/*22* Copyright 2007 Sun Microsystems, Inc. All rights reserved.23* Use is subject to license terms.24*/2526#ifndef FILE_COMMON_H27#define FILE_COMMON_H282930/*31* header file for file_* utilities. These utilities32* are used by the test cases to perform various file33* operations (append writes, for example).34*/3536#ifdef __cplusplus37extern "C" {38#endif3940#include <sys/types.h>41#include <sys/stat.h>42#include <errno.h>43#include <fcntl.h>44#include <stdio.h>45#include <unistd.h>46#include <stdlib.h>47#include <string.h>4849#define BLOCKSZ 819250#define DATA 0xa551#define DATA_RANGE 12052#define BIGBUFFERSIZE 0x80000053#define BIGFILESIZE 205455extern char *optarg;56extern int optind, opterr, optopt;5758#ifdef __cplusplus59}60#endif6162#endif /* FILE_COMMON_H */636465