-VERSION=2.0
+VERSION=2.1
DESTDIR=/usr/local
BINDIR=$(DESTDIR)/bin/
DATADIR=./
CC = gcc
-CFLAGS = -O2 -Wall
-CPPFLAGS = -DVERSION=\"$(VERSION)\" -DDATADIR=\"$(DATADIR)\"
+CFLAGS = -O2 -Wall -DVERSION=\"$(VERSION)\" -DDATADIR=\"$(DATADIR)\"
DB_OBJS = fileio.o util.o dbench.o child.o
TB_OBJS = sockio.o util.o dbench.o child.o socklib.o
/*
- dbench version 1
+ dbench version 2
Copyright (C) Andrew Tridgell 1999
This program is free software; you can redistribute it and/or modify
/*
- dbench version 1
+ dbench version 2
Copyright (C) Andrew Tridgell 1999
This program is free software; you can redistribute it and/or modify
#include <sys/types.h>
#include <sys/socket.h>
#include <fcntl.h>
-#include <sys/fcntl.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/mman.h>
/*
- dbench version 1.2
+ dbench version 2
Copyright (C) 1999 by Andrew Tridgell <tridge@samba.org>
Copyright (C) 2001 by Martin Pool <mbp@samba.org>
/*
- dbench version 1.01
+ dbench version 2
Copyright (C) by Andrew Tridgell <tridge@samba.org> 1999, 2001
Copyright (C) 2001 by Martin Pool <mbp@samba.org>
/*
- dbench version 1
+ dbench version 2
Copyright (C) Andrew Tridgell 1999
This program is free software; you can redistribute it and/or modify
/*
- dbench version 1
+ dbench version 2
Copyright (C) Andrew Tridgell 1999
This program is free software; you can redistribute it and/or modify
/*
- dbench version 1
+ dbench version 2
Copyright (C) Andrew Tridgell 1999
This program is free software; you can redistribute it and/or modify
/*
- dbench version 1
+ dbench version 2
Copyright (C) Andrew Tridgell 1999
This program is free software; you can redistribute it and/or modify
#include "dbench.h"
+#ifndef SHM_W
+#define SHM_W 0000200
+#endif
+
+#ifndef SHM_R
+#define SHM_R 0000400
+#endif
+
static struct timeval tp1,tp2;
void start_timer(void)