1*2fae26bdSAlan Somers /* 2*2fae26bdSAlan Somers * CDDL HEADER START 3*2fae26bdSAlan Somers * 4*2fae26bdSAlan Somers * The contents of this file are subject to the terms of the 5*2fae26bdSAlan Somers * Common Development and Distribution License (the "License"). 6*2fae26bdSAlan Somers * You may not use this file except in compliance with the License. 7*2fae26bdSAlan Somers * 8*2fae26bdSAlan Somers * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*2fae26bdSAlan Somers * or http://www.opensolaris.org/os/licensing. 10*2fae26bdSAlan Somers * See the License for the specific language governing permissions 11*2fae26bdSAlan Somers * and limitations under the License. 12*2fae26bdSAlan Somers * 13*2fae26bdSAlan Somers * When distributing Covered Code, include this CDDL HEADER in each 14*2fae26bdSAlan Somers * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*2fae26bdSAlan Somers * If applicable, add the following below this CDDL HEADER, with the 16*2fae26bdSAlan Somers * fields enclosed by brackets "[]" replaced with your own identifying 17*2fae26bdSAlan Somers * information: Portions Copyright [yyyy] [name of copyright owner] 18*2fae26bdSAlan Somers * 19*2fae26bdSAlan Somers * CDDL HEADER END 20*2fae26bdSAlan Somers */ 21*2fae26bdSAlan Somers 22*2fae26bdSAlan Somers /* 23*2fae26bdSAlan Somers * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*2fae26bdSAlan Somers * Use is subject to license terms. 25*2fae26bdSAlan Somers */ 26*2fae26bdSAlan Somers 27*2fae26bdSAlan Somers #ifndef FILE_COMMON_H 28*2fae26bdSAlan Somers #define FILE_COMMON_H 29*2fae26bdSAlan Somers 30*2fae26bdSAlan Somers 31*2fae26bdSAlan Somers /* 32*2fae26bdSAlan Somers * header file for file_* utilities. These utilities 33*2fae26bdSAlan Somers * are used by the test cases to perform various file 34*2fae26bdSAlan Somers * operations (append writes, for example). 35*2fae26bdSAlan Somers */ 36*2fae26bdSAlan Somers 37*2fae26bdSAlan Somers #ifdef __cplusplus 38*2fae26bdSAlan Somers extern "C" { 39*2fae26bdSAlan Somers #endif 40*2fae26bdSAlan Somers 41*2fae26bdSAlan Somers #include <sys/types.h> 42*2fae26bdSAlan Somers #include <sys/stat.h> 43*2fae26bdSAlan Somers #include <errno.h> 44*2fae26bdSAlan Somers #include <fcntl.h> 45*2fae26bdSAlan Somers #include <stdio.h> 46*2fae26bdSAlan Somers #include <unistd.h> 47*2fae26bdSAlan Somers #include <stdlib.h> 48*2fae26bdSAlan Somers #include <string.h> 49*2fae26bdSAlan Somers 50*2fae26bdSAlan Somers #define BLOCKSZ 8192 51*2fae26bdSAlan Somers #define DATA 0xa5 52*2fae26bdSAlan Somers #define DATA_RANGE 120 53*2fae26bdSAlan Somers #define BIGBUFFERSIZE 0x800000 54*2fae26bdSAlan Somers #define BIGFILESIZE 20 55*2fae26bdSAlan Somers 56*2fae26bdSAlan Somers extern char *optarg; 57*2fae26bdSAlan Somers extern int optind, opterr, optopt; 58*2fae26bdSAlan Somers 59*2fae26bdSAlan Somers #ifdef __cplusplus 60*2fae26bdSAlan Somers } 61*2fae26bdSAlan Somers #endif 62*2fae26bdSAlan Somers 63*2fae26bdSAlan Somers #endif /* FILE_COMMON_H */ 64