diff options
Diffstat (limited to 'usr/src/cmd/filebench/common/filebench.h')
-rw-r--r-- | usr/src/cmd/filebench/common/filebench.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/usr/src/cmd/filebench/common/filebench.h b/usr/src/cmd/filebench/common/filebench.h index 2dda765234..ae710b587b 100644 --- a/usr/src/cmd/filebench/common/filebench.h +++ b/usr/src/cmd/filebench/common/filebench.h @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -66,7 +66,8 @@ extern "C" { #endif -extern pid_t pid; +extern pid_t my_pid; /* this process' process id */ +extern procflow_t *my_procflow; /* if slave process, procflow pointer */ extern int errno; extern char *execname; extern int noproc; @@ -102,11 +103,17 @@ int filebench_randomno64(uint64_t *, uint64_t, uint64_t); #define MIN(x, y) ((x) < (y) ? (x) : (y)) #endif -#define FILEBENCH_VERSION "1.1.0" +#define FILEBENCH_VERSION "1.1.1" #define FILEBENCHDIR "/usr/benchmarks/filebench" #define FILEBENCH_PROMPT "filebench> " #define MAX_LINE_LEN 1024 #define MAX_CMD_HIST 128 +#define SHUTDOWN_WAIT_SECONDS 5 /* time to wait for proc / thrd to quit */ + +#define FILEBENCH_DONE 1 +#define FILEBENCH_OK 0 +#define FILEBENCH_ERROR -1 +#define FILEBENCH_NORSC -2 /* For MacOSX */ #ifndef HAVE_OFF64_T |