2006-01-09 13:17:05 +03:00
|
|
|
/* $NetBSD: extern.h,v 1.17 2006/01/09 10:17:05 apb Exp $ */
|
1995-03-21 12:01:59 +03:00
|
|
|
|
1993-05-04 11:08:38 +04:00
|
|
|
/*-
|
1994-09-22 13:24:46 +04:00
|
|
|
* Copyright (c) 1991, 1993, 1994
|
|
|
|
* The Regents of the University of California. All rights reserved.
|
1993-05-04 11:08:38 +04:00
|
|
|
*
|
|
|
|
* This code is derived from software contributed to Berkeley by
|
|
|
|
* Keith Muller of the University of California, San Diego and Lance
|
|
|
|
* Visser of Convex Computer Corporation.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
2003-08-07 13:05:01 +04:00
|
|
|
* 3. Neither the name of the University nor the names of its contributors
|
1993-05-04 11:08:38 +04:00
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
1995-03-21 12:01:59 +03:00
|
|
|
* @(#)extern.h 8.3 (Berkeley) 4/2/94
|
1993-05-04 11:08:38 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
2001-11-25 09:53:48 +03:00
|
|
|
void block(void);
|
|
|
|
void block_close(void);
|
|
|
|
void dd_out(int);
|
|
|
|
void def(void);
|
|
|
|
void def_close(void);
|
|
|
|
void jcl(char **);
|
|
|
|
void pos_in(void);
|
|
|
|
void pos_out(void);
|
|
|
|
void summary(void);
|
|
|
|
void summaryx(int);
|
|
|
|
void terminate(int);
|
|
|
|
void unblock(void);
|
|
|
|
void unblock_close(void);
|
|
|
|
ssize_t bwrite(int, const void *, size_t);
|
1993-05-04 11:08:38 +04:00
|
|
|
|
- Use u_longlong_t instead of u_quad_t, u_long, or int for various buffer sizes
- Add strsuftoull(), which parses a number into a u_longlong_t, with
multiplication support, and support for 'g' (GB) and 't' (TB) suffices.
If an error occurs, print to stderr and exit.
Based on get_blk() from args.c and strsufto*() (in other programs)
- Add strsuftoullx(), which acts as per strsuftoull() but returns the
error in the supplied buffer instead (if the returned buffer != "", an
error occurred)
- Replace get_bsz() use with strsuftoull()
- Remove (now) unnecessary argument validation
- Remove unused {f,p,s,t}_stats fields in struct IO
2001-11-25 13:50:06 +03:00
|
|
|
extern IO in, out;
|
|
|
|
extern STAT st;
|
|
|
|
extern void (*cfunc)(void);
|
2001-11-26 03:13:23 +03:00
|
|
|
extern uint64_t cpy_cnt;
|
|
|
|
extern uint64_t cbsz;
|
- Use u_longlong_t instead of u_quad_t, u_long, or int for various buffer sizes
- Add strsuftoull(), which parses a number into a u_longlong_t, with
multiplication support, and support for 'g' (GB) and 't' (TB) suffices.
If an error occurs, print to stderr and exit.
Based on get_blk() from args.c and strsufto*() (in other programs)
- Add strsuftoullx(), which acts as per strsuftoull() but returns the
error in the supplied buffer instead (if the returned buffer != "", an
error occurred)
- Replace get_bsz() use with strsuftoull()
- Remove (now) unnecessary argument validation
- Remove unused {f,p,s,t}_stats fields in struct IO
2001-11-25 13:50:06 +03:00
|
|
|
extern u_int ddflags;
|
|
|
|
extern u_int files_cnt;
|
2006-01-09 13:17:05 +03:00
|
|
|
extern uint64_t progress;
|
- Use u_longlong_t instead of u_quad_t, u_long, or int for various buffer sizes
- Add strsuftoull(), which parses a number into a u_longlong_t, with
multiplication support, and support for 'g' (GB) and 't' (TB) suffices.
If an error occurs, print to stderr and exit.
Based on get_blk() from args.c and strsufto*() (in other programs)
- Add strsuftoullx(), which acts as per strsuftoull() but returns the
error in the supplied buffer instead (if the returned buffer != "", an
error occurred)
- Replace get_bsz() use with strsuftoull()
- Remove (now) unnecessary argument validation
- Remove unused {f,p,s,t}_stats fields in struct IO
2001-11-25 13:50:06 +03:00
|
|
|
extern const u_char *ctab;
|
|
|
|
extern const u_char a2e_32V[], a2e_POSIX[];
|
|
|
|
extern const u_char e2a_32V[], e2a_POSIX[];
|
|
|
|
extern const u_char a2ibm_32V[], a2ibm_POSIX[];
|
|
|
|
extern u_char casetab[];
|