Commit eef6e474 authored by unknown's avatar unknown

introduced ndb_global.h/my_global.h to replace sytem lib includes e.g. stdio, stdlib

parent 789adced
...@@ -17,11 +17,10 @@ ...@@ -17,11 +17,10 @@
#ifndef SIGNAL_DATA_H #ifndef SIGNAL_DATA_H
#define SIGNAL_DATA_H #define SIGNAL_DATA_H
#include <ndb_global.h>
#include <ndb_limits.h> #include <ndb_limits.h>
#include <kernel_types.h> #include <kernel_types.h>
#include <NdbStdio.h>
#include <NdbConstant.hpp> #include <NdbConstant.hpp>
#include <stdlib.h>
#ifndef NDB_ASSERT #ifndef NDB_ASSERT
#ifdef VM_TRACE #ifdef VM_TRACE
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
//****************************************************************************** //******************************************************************************
#include <ndb_global.h> // exit
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <stdlib.h> // exit
#define REPORT_WARNING(message) \ #define REPORT_WARNING(message) \
ndbout << "WARNING: " << message << endl ndbout << "WARNING: " << message << endl
......
#include <my_global.h> #include <my_global.h>
/*#include <my_config.h>*/ #include <m_string.h>
#include <m_ctype.h>
#include <ndb_types.h>
#include <ctype.h>
#include <sys/param.h>
...@@ -21,8 +21,10 @@ ...@@ -21,8 +21,10 @@
#ifndef SYS_TYPES_H #ifndef SYS_TYPES_H
#define SYS_TYPES_H #define SYS_TYPES_H
#if 0
#include <sys/types.h> #include <sys/types.h>
#include <stddef.h> #include <stddef.h>
#endif
typedef char Int8; typedef char Int8;
typedef unsigned char Uint8; typedef unsigned char Uint8;
......
...@@ -17,9 +17,6 @@ ...@@ -17,9 +17,6 @@
#ifndef NDB_VERSION_H #ifndef NDB_VERSION_H
#define NDB_VERSION_H #define NDB_VERSION_H
#include <stdio.h>
#include <string.h>
#include <version.h> #include <version.h>
#define MAKE_VERSION(A,B,C) (((A) << 16) | ((B) << 8) | ((C) << 0)) #define MAKE_VERSION(A,B,C) (((A) << 16) | ((B) << 8) | ((C) << 0))
......
...@@ -860,9 +860,9 @@ ...@@ -860,9 +860,9 @@
#include <ndb_types.h> #include <ndb_types.h>
#include <ndbapi_limits.h> #include <ndbapi_limits.h>
#include "AttrType.hpp" #include <AttrType.hpp>
#include <NdbError.hpp> #include <NdbError.hpp>
#include "NdbDictionary.hpp" #include <NdbDictionary.hpp>
class NdbObjectIdMap; class NdbObjectIdMap;
class NdbOperation; class NdbOperation;
...@@ -1673,7 +1673,7 @@ private: ...@@ -1673,7 +1673,7 @@ private:
*/ */
struct StartTransactionNodeSelectionData { struct StartTransactionNodeSelectionData {
StartTransactionNodeSelectionData(): StartTransactionNodeSelectionData():
fragment2PrimaryNodeMap(NULL) {}; fragment2PrimaryNodeMap(0) {};
Uint32 kValue; Uint32 kValue;
Uint32 hashValueMask; Uint32 hashValueMask;
Uint32 hashpointerValue; Uint32 hashpointerValue;
......
...@@ -18,9 +18,8 @@ ...@@ -18,9 +18,8 @@
#define NdbConnection_H #define NdbConnection_H
#include <ndb_types.h> #include <ndb_types.h>
#include "AttrType.hpp" #include <AttrType.hpp>
#include <NdbError.hpp> #include <NdbError.hpp>
#include <stdlib.h>
class NdbConnection; class NdbConnection;
class NdbOperation; class NdbOperation;
......
...@@ -157,8 +157,8 @@ public: ...@@ -157,8 +157,8 @@ public:
* the attribute, or a NULL pointer * the attribute, or a NULL pointer
* (indicating error). * (indicating error).
*/ */
NdbRecAttr *getValue(const char *anAttrName, char *aValue = NULL); NdbRecAttr *getValue(const char *anAttrName, char *aValue = 0);
NdbRecAttr *getPreValue(const char *anAttrName, char *aValue = NULL); NdbRecAttr *getPreValue(const char *anAttrName, char *aValue = 0);
/** /**
* Retrieves event resultset if available, inserted into the NdbRecAttrs * Retrieves event resultset if available, inserted into the NdbRecAttrs
...@@ -172,7 +172,7 @@ public: ...@@ -172,7 +172,7 @@ public:
* overflow and *pOverRun will indicate the number of events that have * overflow and *pOverRun will indicate the number of events that have
* overwritten. * overwritten.
*/ */
int next(int *pOverRun=NULL); int next(int *pOverRun=0);
/** /**
* In the current implementation a nodefailiure may cause loss of events, * In the current implementation a nodefailiure may cause loss of events,
......
...@@ -17,14 +17,11 @@ ...@@ -17,14 +17,11 @@
#ifndef NdbOperation_H #ifndef NdbOperation_H
#define NdbOperation_H #define NdbOperation_H
#include <stdlib.h>
#include <assert.h>
#include <ndb_types.h> #include <ndb_types.h>
#include "AttrType.hpp"
#include "NdbError.hpp" #include <AttrType.hpp>
#include "NdbReceiver.hpp" #include <NdbError.hpp>
#include <stdlib.h> #include <NdbReceiver.hpp>
class Ndb; class Ndb;
class NdbApiSignal; class NdbApiSignal;
...@@ -480,8 +477,8 @@ public: ...@@ -480,8 +477,8 @@ public:
* the attribute, or a NULL pointer * the attribute, or a NULL pointer
* (indicating error). * (indicating error).
*/ */
NdbRecAttr* getValue(const char* anAttrName, char* aValue = NULL); NdbRecAttr* getValue(const char* anAttrName, char* aValue = 0);
NdbRecAttr* getValue(Uint32 anAttrId, char* aValue = NULL); NdbRecAttr* getValue(Uint32 anAttrId, char* aValue = 0);
/** /**
* Define an attribute to set or update in query. * Define an attribute to set or update in query.
...@@ -925,7 +922,7 @@ protected: ...@@ -925,7 +922,7 @@ protected:
virtual int equal_impl(const NdbColumnImpl* anAttrObject, virtual int equal_impl(const NdbColumnImpl* anAttrObject,
const char* aValue, const char* aValue,
Uint32 len); Uint32 len);
NdbRecAttr* getValue(const NdbColumnImpl* anAttrObject, char* aValue = NULL); NdbRecAttr* getValue(const NdbColumnImpl* anAttrObject, char* aValue = 0);
int setValue(const NdbColumnImpl* anAttrObject, const char* aValue, Uint32 len); int setValue(const NdbColumnImpl* anAttrObject, const char* aValue, Uint32 len);
int incValue(const NdbColumnImpl* anAttrObject, Uint32 aValue); int incValue(const NdbColumnImpl* anAttrObject, Uint32 aValue);
int incValue(const NdbColumnImpl* anAttrObject, Uint64 aValue); int incValue(const NdbColumnImpl* anAttrObject, Uint64 aValue);
......
...@@ -17,9 +17,6 @@ ...@@ -17,9 +17,6 @@
#ifndef NdbRecAttr_H #ifndef NdbRecAttr_H
#define NdbRecAttr_H #define NdbRecAttr_H
#include <stdlib.h>
#include <ndb_types.h>
#include <NdbDictionary.hpp> #include <NdbDictionary.hpp>
#include "AttrType.hpp" #include "AttrType.hpp"
...@@ -427,9 +424,9 @@ inline ...@@ -427,9 +424,9 @@ inline
void void
NdbRecAttr::release() NdbRecAttr::release()
{ {
if (theStorageX != NULL) { if (theStorageX != 0) {
delete [] theStorageX; delete [] theStorageX;
theStorageX = NULL; theStorageX = 0;
} }
} }
...@@ -437,10 +434,10 @@ inline ...@@ -437,10 +434,10 @@ inline
void void
NdbRecAttr::init() NdbRecAttr::init()
{ {
theStorageX = NULL; theStorageX = 0;
theValue = NULL; theValue = 0;
theRef = NULL; theRef = 0;
theNext = NULL; theNext = 0;
theAttrId = 0xFFFF; theAttrId = 0xFFFF;
theNULLind = -1; theNULLind = -1;
} }
...@@ -470,7 +467,7 @@ inline ...@@ -470,7 +467,7 @@ inline
bool bool
NdbRecAttr::copyoutRequired() const NdbRecAttr::copyoutRequired() const
{ {
return theRef != theValue && theValue != NULL; return theRef != theValue && theValue != 0;
} }
inline inline
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#define NdbReceiver_H #define NdbReceiver_H
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL // Not part of public interface #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL // Not part of public interface
#include <stdlib.h> #include <ndb_types.h>
class Ndb; class Ndb;
class NdbReceiver class NdbReceiver
......
...@@ -172,25 +172,6 @@ SetValueRec::SetValueRec() : ...@@ -172,25 +172,6 @@ SetValueRec::SetValueRec() :
{ {
} }
inline
SetValueRec::~SetValueRec()
{
if ((stype == SET_STRING_ATTR1) ||
(stype == SET_INT32_ATTR1) ||
(stype == SET_UINT32_ATTR1) ||
(stype == SET_INT64_ATTR1) ||
(stype == SET_UINT64_ATTR1) ||
(stype == SET_FLOAT_ATTR1) ||
(stype == SET_DOUBLE_ATTR1))
free(anAttrName);
if ((stype == SET_STRING_ATTR1) ||
(stype == SET_STRING_ATTR2))
free(stringStruct.aStringValue);
if (next) delete next;
next = 0;
}
class SetValueRecList { class SetValueRecList {
public: public:
SetValueRecList(); SetValueRecList();
......
...@@ -18,11 +18,9 @@ ...@@ -18,11 +18,9 @@
#define NdbSchemaOp_H #define NdbSchemaOp_H
#ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED #ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED
#include <ndb_types.h> #include "NdbDictionary.hpp"
#include "AttrType.hpp" #include "AttrType.hpp"
#include "NdbSchemaCon.hpp" #include "NdbSchemaCon.hpp"
#include <stdlib.h>
#include "NdbDictionary.hpp"
class NdbApiSignal; class NdbApiSignal;
class Ndb; class Ndb;
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
#ifndef NDBERROR_H #ifndef NDBERROR_H
#define NDBERROR_H #define NDBERROR_H
#include <stdlib.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
...@@ -91,7 +89,7 @@ typedef ndberror_classification_enum ndberror_classification; ...@@ -91,7 +89,7 @@ typedef ndberror_classification_enum ndberror_classification;
const char *ndberror_status_message(ndberror_status); const char *ndberror_status_message(ndberror_status);
const char *ndberror_classification_message(ndberror_classification); const char *ndberror_classification_message(ndberror_classification);
void ndberror_update(ndberror_struct *); void ndberror_update(ndberror_struct *);
int ndb_error_string(int err_no, char *str, size_t size); int ndb_error_string(int err_no, char *str, unsigned int size);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
...@@ -102,11 +102,9 @@ ...@@ -102,11 +102,9 @@
/* --- Include files ---- */ /* --- Include files ---- */
#include <ndb_global.h>
#include <defs/pcn_types.h> #include <defs/pcn_types.h>
#include <stdio.h>
/* --- Types and definitions --- */ /* --- Types and definitions --- */
/** /**
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <outfmt.h> #include <outfmt.h>
#endif #endif
#include <stdio.h> #include <ndb_global.h>
#ifdef NDB_WIN32 #ifdef NDB_WIN32
#define snprintf _snprintf #define snprintf _snprintf
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#ifndef TransporterDefinitions_H #ifndef TransporterDefinitions_H
#define TransporterDefinitions_H #define TransporterDefinitions_H
#include <ndb_global.h>
#include <kernel_types.h> #include <kernel_types.h>
#include <string.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
/** /**
......
...@@ -17,9 +17,7 @@ ...@@ -17,9 +17,7 @@
#ifndef __UTIL_BASESTRING_HPP_INCLUDED__ #ifndef __UTIL_BASESTRING_HPP_INCLUDED__
#define __UTIL_BASESTRING_HPP_INCLUDED__ #define __UTIL_BASESTRING_HPP_INCLUDED__
#include <ctype.h> #include <ndb_global.h>
#include <stdlib.h>
#include <Vector.hpp> #include <Vector.hpp>
/** /**
......
...@@ -17,12 +17,10 @@ ...@@ -17,12 +17,10 @@
#ifndef NDB_BITMASK_H #ifndef NDB_BITMASK_H
#define NDB_BITMASK_H #define NDB_BITMASK_H
#include <ndb_types.h> #include <ndb_global.h>
#include <NdbConstant.hpp> #include <NdbConstant.hpp>
#ifndef NDB_ASSERT #ifndef NDB_ASSERT
#include <stdio.h>
#include <stdlib.h>
#define NDB_ASSERT(x, s) \ #define NDB_ASSERT(x, s) \
do { if (!(x)) { printf("%s\n", s); abort(); } } while (0) do { if (!(x)) { printf("%s\n", s); abort(); } } while (0)
#endif #endif
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#ifndef INPUT_STREAM_HPP #ifndef INPUT_STREAM_HPP
#define INPUT_STREAM_HPP #define INPUT_STREAM_HPP
#include <stdio.h> #include <ndb_global.h>
#include <NdbTCP.h> #include <NdbTCP.h>
/** /**
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#ifndef __NDB_AUTO_PTR_HPP #ifndef __NDB_AUTO_PTR_HPP
#define __NDB_AUTO_PTR_HPP #define __NDB_AUTO_PTR_HPP
#include <stdlib.h> #include <ndb_global.h>
template<typename T> template<typename T>
class NdbAutoPtr { class NdbAutoPtr {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#ifndef OUTPUT_STREAM_HPP #ifndef OUTPUT_STREAM_HPP
#define OUTPUT_STREAM_HPP #define OUTPUT_STREAM_HPP
#include <stdio.h> #include <ndb_global.h>
#include <NdbTCP.h> #include <NdbTCP.h>
/** /**
......
...@@ -17,10 +17,7 @@ ...@@ -17,10 +17,7 @@
#ifndef PROPERTIES_HPP #ifndef PROPERTIES_HPP
#define PROPERTIES_HPP #define PROPERTIES_HPP
#include <stdio.h> #include <ndb_global.h>
#include <string.h>
#include <stdlib.h>
#include <ndb_types.h>
#include <BaseString.hpp> #include <BaseString.hpp>
#include <UtilBuffer.hpp> #include <UtilBuffer.hpp>
......
...@@ -17,9 +17,7 @@ ...@@ -17,9 +17,7 @@
#ifndef __BUFFER_HPP_INCLUDED__ #ifndef __BUFFER_HPP_INCLUDED__
#define __BUFFER_HPP_INCLUDED__ #define __BUFFER_HPP_INCLUDED__
#include <unistd.h> #include <ndb_global.h>
#include <errno.h>
#include <stdlib.h>
/* This class represents a buffer of binary data, where you can append /* This class represents a buffer of binary data, where you can append
* data at the end, and later read the entire bunch. * data at the end, and later read the entire bunch.
......
...@@ -17,9 +17,8 @@ ...@@ -17,9 +17,8 @@
#ifndef NDB_VECTOR_HPP #ifndef NDB_VECTOR_HPP
#define NDB_VECTOR_HPP #define NDB_VECTOR_HPP
#include <stdlib.h> #include <ndb_global.h>
#include <NdbMutex.h> #include <NdbMutex.h>
#include <string.h>
template<class T> template<class T>
struct Vector { struct Vector {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#ifndef UUCODE_H #ifndef UUCODE_H
#define UUCODE_H #define UUCODE_H
#include <stdio.h> #include <ndb_global.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
......
...@@ -14,16 +14,14 @@ ...@@ -14,16 +14,14 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "DebuggerNames.hpp" #include "DebuggerNames.hpp"
#include <BlockNumbers.h> #include <BlockNumbers.h>
#include <GlobalSignalNumbers.h> #include <GlobalSignalNumbers.h>
#include <signaldata/SignalDataPrint.hpp> #include <signaldata/SignalDataPrint.hpp>
#include <NdbStdio.h>
#include <stdlib.h>
#include <string.h>
static const char * localSignalNames[MAX_GSN+1]; static const char * localSignalNames[MAX_GSN+1];
static SignalDataPrintFunction localPrintFunctions[MAX_GSN+1]; static SignalDataPrintFunction localPrintFunctions[MAX_GSN+1];
static const char * localBlockNames[NO_OF_BLOCKS]; static const char * localBlockNames[NO_OF_BLOCKS];
......
...@@ -14,14 +14,13 @@ ...@@ -14,14 +14,13 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "SignalLoggerManager.hpp" #include "SignalLoggerManager.hpp"
#include <LongSignal.hpp> #include <LongSignal.hpp>
#include <stdlib.h>
#include <string.h>
#include <assert.h> #include <assert.h>
#include <time.h> #include <time.h>
#include <NdbString.h>
#include <DebuggerNames.hpp> #include <DebuggerNames.hpp>
......
...@@ -19,9 +19,8 @@ ...@@ -19,9 +19,8 @@
** Internal header file for editline library. ** Internal header file for editline library.
*/ */
#include <stdio.h> #include <ndb_global.h>
#include <stdlib.h>
#include <string.h>
#if defined(SYS_UNIX) #if defined(SYS_UNIX)
#include "unix.h" #include "unix.h"
#endif /* defined(SYS_UNIX) */ #endif /* defined(SYS_UNIX) */
......
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <stdio.h> #include <ndb_global.h>
#include <malloc.h>
char* readline(const char* prompt) char* readline(const char* prompt)
......
...@@ -20,11 +20,7 @@ ...@@ -20,11 +20,7 @@
** A "micro-shell" to test editline library. ** A "micro-shell" to test editline library.
** If given any arguments, commands aren't executed. ** If given any arguments, commands aren't executed.
*/ */
#include <stdio.h> #include <ndb_global.h>
#include <stdlib.h>
#include <unistd.h>
#include <NdbString.h>
#include <editline/editline.h> #include <editline/editline.h>
int int
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <assert.h>
#include "LogHandlerListUnitTest.hpp" #include "LogHandlerListUnitTest.hpp"
#include <ConsoleLogHandler.hpp> #include <ConsoleLogHandler.hpp>
...@@ -22,9 +25,6 @@ ...@@ -22,9 +25,6 @@
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <stdio.h>
#include <assert.h>
typedef bool (*TESTFUNC)(const char*); typedef bool (*TESTFUNC)(const char*);
typedef struct typedef struct
{ {
......
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <ndb_version.h>
#include <sys/stat.h>
#include <ConfigRetriever.hpp> #include <ConfigRetriever.hpp>
#include "LocalConfig.hpp" #include "LocalConfig.hpp"
...@@ -21,21 +25,15 @@ ...@@ -21,21 +25,15 @@
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbTCP.h> #include <NdbTCP.h>
#include <string.h>
#include <NdbStdio.h>
#include <NdbEnv.h> #include <NdbEnv.h>
#include "MgmtErrorReporter.hpp" #include "MgmtErrorReporter.hpp"
#include <uucode.h> #include <uucode.h>
#include <Properties.hpp> #include <Properties.hpp>
#include <stdio.h>
#include <NdbString.h>
#include <sys/stat.h>
#include <socket_io.h> #include <socket_io.h>
#include <NdbConfig.h> #include <NdbConfig.h>
#include <ndb_version.h>
//**************************************************************************** //****************************************************************************
//**************************************************************************** //****************************************************************************
......
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
#ifndef InitConfigFileParser_H #ifndef InitConfigFileParser_H
#define InitConfigFileParser_H #define InitConfigFileParser_H
#include <stdio.h> #include <ndb_global.h>
#include <Properties.hpp> #include <Properties.hpp>
class Config; class Config;
......
...@@ -17,10 +17,8 @@ ...@@ -17,10 +17,8 @@
#ifndef LocalConfig_H #ifndef LocalConfig_H
#define LocalConfig_H #define LocalConfig_H
#include <stdlib.h> #include <ndb_global.h>
#include <string.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbStdio.h>
//**************************************************************************** //****************************************************************************
// Description: The class LocalConfig corresponds to the information possible // Description: The class LocalConfig corresponds to the information possible
......
...@@ -14,10 +14,9 @@ ...@@ -14,10 +14,9 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <NdbConfig.h> #include <NdbConfig.h>
#include <NdbEnv.h> #include <NdbEnv.h>
#include <stdlib.h>
#include <string.h>
const char* const char*
NdbConfig_HomePath(char* buf, int buflen){ NdbConfig_HomePath(char* buf, int buflen){
......
...@@ -15,10 +15,11 @@ ...@@ -15,10 +15,11 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <NdbMain.h> #include <NdbMain.h>
#include <ConfigRetriever.hpp> #include <ConfigRetriever.hpp>
#include <Properties.hpp> #include <Properties.hpp>
#include <stdlib.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
void usage(const char * prg){ void usage(const char * prg){
......
...@@ -16,8 +16,7 @@ ...@@ -16,8 +16,7 @@
#include <stdio.h> #include <ndb_global.h>
#include <unistd.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/mman.h> #include <sys/mman.h>
long long getMilli(); long long getMilli();
......
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
#include <ndb_global.h>
#include <sys/mman.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbThread.h> #include <NdbThread.h>
#include <NdbMutex.h> #include <NdbMutex.h>
...@@ -27,13 +30,6 @@ ...@@ -27,13 +30,6 @@
#include <NdbHost.h> #include <NdbHost.h>
#include <NdbMain.h> #include <NdbMain.h>
#include <getarg.h> #include <getarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/time.h>
#include <sys/mman.h>
struct ThreadData struct ThreadData
{ {
......
...@@ -14,14 +14,14 @@ ...@@ -14,14 +14,14 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_common.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbMain.h> #include <NdbMain.h>
#include <ose.h> #include <ose.h>
#include <mms.sig> #include <mms.sig>
#include <mms_err.h> #include <mms_err.h>
#include <string.h>
#include <stdio.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
/** /**
......
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include "NdbThread.h" #include "NdbThread.h"
#include <NdbMem.h> #include <NdbMem.h>
#include <NdbMain.h> #include <NdbMain.h>
#include <stdlib.h>
NDB_COMMAND(ndbmem, "ndbmem", "ndbmem", "Test the ndbmem functionality", 4096){ NDB_COMMAND(ndbmem, "ndbmem", "ndbmem", "Test the ndbmem functionality", 4096){
ndbout << "Starting test of NdbMem" << endl; ndbout << "Starting test of NdbMem" << endl;
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* TODO - Add tests for NdbMem * TODO - Add tests for NdbMem
*/ */
#include <ndb_global.h>
#include "NdbOut.hpp" #include "NdbOut.hpp"
#include "NdbThread.h" #include "NdbThread.h"
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#include "NdbHost.h" #include "NdbHost.h"
#include "NdbMain.h" #include "NdbMain.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
int TestHasFailed; int TestHasFailed;
int verbose = 0; int verbose = 0;
......
...@@ -14,28 +14,10 @@ ...@@ -14,28 +14,10 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "NdbDaemon.h" #include <ndb_global.h>
#include <assert.h> #include <assert.h>
#ifdef NDB_LINUX
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include "NdbDaemon.h"
#endif
#ifdef NDB_SOLARIS
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#endif
#define NdbDaemon_ErrorSize 500 #define NdbDaemon_ErrorSize 500
#if defined(NDB_LINUX) || defined(NDB_SOLARIS) #if defined(NDB_LINUX) || defined(NDB_SOLARIS)
......
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "Packer.hpp" #include "Packer.hpp"
#include <TransporterRegistry.hpp> #include <TransporterRegistry.hpp>
#include <TransporterCallback.hpp> #include <TransporterCallback.hpp>
#include <RefConvert.hpp> #include <RefConvert.hpp>
#include <stdio.h>
Uint32 Uint32
TransporterRegistry::unpack(Uint32 * readPtr, TransporterRegistry::unpack(Uint32 * readPtr,
Uint32 sizeOfData, Uint32 sizeOfData,
......
...@@ -14,17 +14,14 @@ ...@@ -14,17 +14,14 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "SCI_Transporter.hpp" #include "SCI_Transporter.hpp"
#include <NdbStdio.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <NdbTick.h> #include <NdbTick.h>
#include <stdlib.h>
#include <NdbTick.h> #include <NdbTick.h>
#if 0
#include <malloc.h>
#include <sys/time.h>
#endif
#include "TransporterInternalDefinitions.hpp" #include "TransporterInternalDefinitions.hpp"
#include <TransporterCallback.hpp> #include <TransporterCallback.hpp>
......
...@@ -17,11 +17,11 @@ ...@@ -17,11 +17,11 @@
#ifndef SHM_BUFFER_HPP #ifndef SHM_BUFFER_HPP
#define SHM_BUFFER_HPP #define SHM_BUFFER_HPP
#include <stdio.h> #include <ndb_global.h>
#include <ndb_types.h>
#include <NdbSleep.h>
#include <assert.h> #include <assert.h>
#include <NdbSleep.h>
/** /**
* These classes implement a circular buffer * These classes implement a circular buffer
* *
......
...@@ -15,15 +15,14 @@ ...@@ -15,15 +15,14 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "SHM_Transporter.hpp" #include "SHM_Transporter.hpp"
#include "TransporterInternalDefinitions.hpp" #include "TransporterInternalDefinitions.hpp"
#include <TransporterCallback.hpp> #include <TransporterCallback.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <stdio.h>
#include <stdlib.h>
#ifdef NDB_WIN32 #ifdef NDB_WIN32
#include <windows.h> #include <windows.h>
#else #else
......
...@@ -15,15 +15,14 @@ ...@@ -15,15 +15,14 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "SHM_Transporter.hpp" #include "SHM_Transporter.hpp"
#include "TransporterInternalDefinitions.hpp" #include "TransporterInternalDefinitions.hpp"
#include <TransporterCallback.hpp> #include <TransporterCallback.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <stdio.h>
#include <sys/ipc.h> #include <sys/ipc.h>
#include <sys/shm.h> #include <sys/shm.h>
......
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "SHM_Transporter.hpp" #include "SHM_Transporter.hpp"
#include "TransporterInternalDefinitions.hpp" #include "TransporterInternalDefinitions.hpp"
#include <TransporterCallback.hpp> #include <TransporterCallback.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <stdio.h>
#include <windows.h> #include <windows.h>
......
...@@ -33,10 +33,9 @@ ...@@ -33,10 +33,9 @@
#include "TransporterDefinitions.hpp" #include "TransporterDefinitions.hpp"
#include <TransporterCallback.hpp> #include <TransporterCallback.hpp>
#include <stdlib.h>
#ifdef DEBUG_TRANSPORTER #ifdef DEBUG_TRANSPORTER
#include <stdio.h> #include <ndb_global.h>
#endif #endif
class SendBuffer { class SendBuffer {
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <NdbTCP.h> #include <NdbTCP.h>
#include "TCP_Transporter.hpp" #include "TCP_Transporter.hpp"
#include <NdbOut.hpp> #include <NdbOut.hpp>
...@@ -23,13 +25,9 @@ ...@@ -23,13 +25,9 @@
#if defined NDB_OSE || defined NDB_SOFTOSE #if defined NDB_OSE || defined NDB_SOFTOSE
#define inet_send inet_send #define inet_send inet_send
#else #else
#include <NdbStdio.h>
#define inet_send send #define inet_send send
#endif #endif
#include <stdlib.h>
#ifdef NDB_WIN32 #ifdef NDB_WIN32
class ndbstrerror class ndbstrerror
{ {
......
...@@ -14,14 +14,14 @@ ...@@ -14,14 +14,14 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <assert.h>
#include "TransporterRegistry.hpp" #include "TransporterRegistry.hpp"
#include "TransporterInternalDefinitions.hpp" #include "TransporterInternalDefinitions.hpp"
#include "Transporter.hpp" #include "Transporter.hpp"
#include <assert.h>
#include <stdlib.h>
#ifdef NDB_TCP_TRANSPORTER #ifdef NDB_TCP_TRANSPORTER
#include "TCP_Transporter.hpp" #include "TCP_Transporter.hpp"
#endif #endif
......
...@@ -14,18 +14,17 @@ ...@@ -14,18 +14,17 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "TransporterRegistry.hpp" #include "TransporterRegistry.hpp"
#include "TransporterDefinitions.hpp" #include "TransporterDefinitions.hpp"
#include "TransporterCallback.hpp" #include "TransporterCallback.hpp"
#include <RefConvert.hpp> #include <RefConvert.hpp>
#include <NdbStdio.h>
#include <stdlib.h>
#include <NdbTick.h> #include <NdbTick.h>
#include <NdbMain.h> #include <NdbMain.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <NdbString.h>
int basePortTCP = 17000; int basePortTCP = 17000;
......
...@@ -15,9 +15,6 @@ ...@@ -15,9 +15,6 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "buddy.hpp" #include "buddy.hpp"
#include <stdlib.h>
#include <math.h>
void Chunk256::setFree(bool free){ void Chunk256::setFree(bool free){
// Bit 0 of allocationTimeStamp represents if the segment is free or not // Bit 0 of allocationTimeStamp represents if the segment is free or not
......
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
#ifndef BUDDY_H #ifndef BUDDY_H
#define BUDDY_H #define BUDDY_H
#include <stdlib.h> #include <ndb_global.h>
#include <stdio.h>
typedef unsigned int Uint32; typedef unsigned int Uint32;
typedef unsigned short Uint16; typedef unsigned short Uint16;
......
...@@ -14,17 +14,14 @@ ...@@ -14,17 +14,14 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <stdio.h> #include <ndb_global.h>
#include <string.h>
#include <stdlib.h>
#include "sisci_types.h" #include "sisci_types.h"
#include "sisci_api.h" #include "sisci_api.h"
#include "sisci_error.h" #include "sisci_error.h"
//#include "sisci_demolib.h" //#include "sisci_demolib.h"
#include <strings.h>
#include <ndb_types.h>
#include <NdbTick.h> #include <NdbTick.h>
#include "NdbSleep.h" #include <NdbSleep.h>
#define NO_CALLBACK NULL #define NO_CALLBACK NULL
#define NO_FLAGS 0 #define NO_FLAGS 0
#define DATA_TRANSFER_READY 8 #define DATA_TRANSFER_READY 8
......
...@@ -14,18 +14,17 @@ ...@@ -14,18 +14,17 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "TransporterRegistry.hpp" #include "TransporterRegistry.hpp"
#include "TransporterDefinitions.hpp" #include "TransporterDefinitions.hpp"
#include "TransporterCallback.hpp" #include "TransporterCallback.hpp"
#include <RefConvert.hpp> #include <RefConvert.hpp>
#include <NdbStdio.h>
#include <stdlib.h>
#include <NdbTick.h> #include <NdbTick.h>
#include <NdbMain.h> #include <NdbMain.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <NdbString.h>
int basePortTCP = 17000; int basePortTCP = 17000;
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "TransporterRegistry.hpp" #include "TransporterRegistry.hpp"
#include "TransporterDefinitions.hpp" #include "TransporterDefinitions.hpp"
#include "TransporterCallback.hpp" #include "TransporterCallback.hpp"
...@@ -21,8 +23,6 @@ ...@@ -21,8 +23,6 @@
#include "prioTransporterTest.hpp" #include "prioTransporterTest.hpp"
#include <NdbStdio.h>
#include <stdlib.h>
#include <NdbTick.h> #include <NdbTick.h>
#include <NdbMain.h> #include <NdbMain.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
......
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <stdio.h> #include <ndb_global.h>
#include <string.h>
#include <Base64.hpp> #include <Base64.hpp>
static char base64_table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" static char base64_table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
......
...@@ -15,11 +15,9 @@ ...@@ -15,11 +15,9 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/* -*- c-basic-offset: 4; -*- */ /* -*- c-basic-offset: 4; -*- */
#include <string.h> #include <ndb_global.h>
#include <NdbStdio.h> #include <BaseString.hpp>
#include <stdarg.h> #include <stdarg.h>
#include "BaseString.hpp"
#include <stdlib.h>
BaseString::BaseString() BaseString::BaseString()
{ {
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
#include <File.hpp> #include <File.hpp>
#include <errno.h>
#include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#if defined NDB_OSE || defined NDB_SOFTOSE #if defined NDB_OSE || defined NDB_SOFTOSE
......
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <assert.h>
#include "Parser.hpp" #include "Parser.hpp"
#include <stdio.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <string.h>
#include <Properties.hpp> #include <Properties.hpp>
#include <assert.h>
#include <Base64.hpp> #include <Base64.hpp>
#define DEBUG(x) ndbout << x << endl; #define DEBUG(x) ndbout << x << endl;
......
...@@ -14,14 +14,12 @@ ...@@ -14,14 +14,12 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <assert.h>
#include <Properties.hpp> #include <Properties.hpp>
#include <NdbTCP.h> #include <NdbTCP.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <NdbString.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
/** /**
......
...@@ -14,9 +14,8 @@ ...@@ -14,9 +14,8 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <SimpleProperties.hpp> #include <SimpleProperties.hpp>
#include <stdlib.h>
#include <NdbString.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbTCP.h> #include <NdbTCP.h>
#include <assert.h> #include <assert.h>
......
...@@ -15,17 +15,16 @@ ...@@ -15,17 +15,16 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <assert.h>
#include "SocketServer.hpp" #include "SocketServer.hpp"
#include <NdbTCP.h> #include <NdbTCP.h>
#include <string.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbThread.h> #include <NdbThread.h>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <stdio.h>
#include <assert.h>
#define DEBUG(x) ndbout << x << endl; #define DEBUG(x) ndbout << x << endl;
SocketServer::SocketServer(int maxSessions) : SocketServer::SocketServer(int maxSessions) :
......
...@@ -33,11 +33,7 @@ ...@@ -33,11 +33,7 @@
*/ */
#include <ndb_global.h> #include <ndb_global.h>
#include <ndb_types.h>
#include <NdbStdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h> #include <time.h>
#include <ctype.h> #include <ctype.h>
#include "getarg.h" #include "getarg.h"
......
#include <malloc.h> #include <ndb_global.h>
#include <stdlib.h>
extern "C" { extern "C" {
void (* ndb_new_handler)() = 0; void (* ndb_new_handler)() = 0;
......
...@@ -18,16 +18,8 @@ ...@@ -18,16 +18,8 @@
* I N C L U D E D F I L E S * * I N C L U D E D F I L E S *
***************************************************************/ ***************************************************************/
#include <stdio.h> #include <ndb_global.h>
#include <stdlib.h>
#include <limits.h>
#include <sys/types.h>
#ifndef NDB_WIN32
#include <sys/time.h>
#endif
#include <ndb_types.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <random.h> #include <random.h>
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <ndb_global.h> #include <ndb_global.h>
#include <stdlib.h>
#ifndef HAVE_STRDUP #ifndef HAVE_STRDUP
char * char *
......
...@@ -14,10 +14,9 @@ ...@@ -14,10 +14,9 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "Properties.hpp" #include "Properties.hpp"
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <stdlib.h>
#include <string.h>
#include "uucode.h" #include "uucode.h"
......
...@@ -14,10 +14,11 @@ ...@@ -14,10 +14,11 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <assert.h>
#include "SimpleProperties.hpp" #include "SimpleProperties.hpp"
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <assert.h>
#include <stdio.h>
Uint32 page[8192]; Uint32 page[8192];
......
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <stdio.h> #include <ndb_global.h>
#include <string.h>
/* ENC is the basic 1 character encoding function to make a char printing */ /* ENC is the basic 1 character encoding function to make a char printing */
/* DEC is single character decode */ /* DEC is single character decode */
......
...@@ -14,9 +14,7 @@ ...@@ -14,9 +14,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <stdio.h> #include <ndb_global.h>
#include <string.h>
#include <ndb_types.h>
#include <ndb_version.h> #include <ndb_version.h>
#include <version.h> #include <version.h>
......
...@@ -48,15 +48,12 @@ ...@@ -48,15 +48,12 @@
#include <afxtempl.h> #include <afxtempl.h>
// C RunTime Header Files // C RunTime Header Files
#include <stdlib.h> #include <ndb_global.h>
#include <malloc.h>
#include <memory.h> #include <memory.h>
#include <tchar.h> #include <tchar.h>
#include <commctrl.h> #include <commctrl.h>
#include <shlwapi.h> #include <shlwapi.h>
#include <crtdbg.h> #include <crtdbg.h>
#include <string.h>
#include <stdio.h>
// Local Header Files // Local Header Files
#include "resource.h" #include "resource.h"
......
...@@ -14,13 +14,11 @@ ...@@ -14,13 +14,11 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <sys/types.h> #include <ndb_global.h>
#include <signal.h> #include <signal.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h>
#include <NdbUnistd.h>
#include <BaseString.hpp> #include <BaseString.hpp>
#include <InputStream.hpp> #include <InputStream.hpp>
...@@ -28,8 +26,6 @@ ...@@ -28,8 +26,6 @@
#include "CPCD.hpp" #include "CPCD.hpp"
#include <pwd.h> #include <pwd.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/resource.h> #include <sys/resource.h>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#ifndef __CPCD_COMMON_HPP_INCLUDED__ #ifndef __CPCD_COMMON_HPP_INCLUDED__
#define __CPCD_COMMON_HPP_INCLUDED__ #define __CPCD_COMMON_HPP_INCLUDED__
#include <stdio.h> #include <ndb_global.h>
#include <logger/Logger.hpp> #include <logger/Logger.hpp>
#include <getarg.h> #include <getarg.h>
......
...@@ -15,11 +15,10 @@ ...@@ -15,11 +15,10 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <Properties.hpp> #include <Properties.hpp>
#include <socket_io.h> #include <socket_io.h>
#include <NdbStdio.h>
#include <stdlib.h>
#include <NdbTick.h> #include <NdbTick.h>
#include <NdbMain.h> #include <NdbMain.h>
#include <NdbSleep.h> #include <NdbSleep.h>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#ifndef CLIENT_IF_HPP #ifndef CLIENT_IF_HPP
#define CLIENT_IF_HPP #define CLIENT_IF_HPP
#include <ndb_global.h>
#include <Parser.hpp> #include <Parser.hpp>
#include <InputStream.hpp> #include <InputStream.hpp>
#include <Parser.hpp> #include <Parser.hpp>
...@@ -23,9 +24,6 @@ ...@@ -23,9 +24,6 @@
#include <Properties.hpp> #include <Properties.hpp>
#include "SocketRegistry.hpp" #include "SocketRegistry.hpp"
#include "SocketService.hpp" #include "SocketService.hpp"
#include "string.h"
#include <stdio.h>
#include <stdlib.h>
class ClientInterface { class ClientInterface {
private: private:
......
...@@ -17,10 +17,8 @@ ...@@ -17,10 +17,8 @@
#ifndef FS_BUFFER_HPP #ifndef FS_BUFFER_HPP
#define FS_BUFFER_HPP #define FS_BUFFER_HPP
#include <ndb_global.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <ndb_types.h>
#define DEBUG(x) #define DEBUG(x)
......
...@@ -15,9 +15,7 @@ ...@@ -15,9 +15,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <stdio.h> #include <ndb_global.h>
#include <stdlib.h>
#include <string.h>
#include <NdbTCP.h> #include <NdbTCP.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
......
...@@ -15,13 +15,12 @@ ...@@ -15,13 +15,12 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <NdbStdio.h> #include <ndb_global.h>
#include <sys/stat.h>
#include <NdbMain.h> #include <NdbMain.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <SchemaFile.hpp> #include <SchemaFile.hpp>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
void void
usage(const char * prg){ usage(const char * prg){
......
...@@ -15,13 +15,12 @@ ...@@ -15,13 +15,12 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <NdbStdio.h> #include <ndb_global.h>
#include <sys/stat.h>
#include <NdbMain.h> #include <NdbMain.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <Sysfile.hpp> #include <Sysfile.hpp>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
void void
usage(const char * prg){ usage(const char * prg){
......
...@@ -25,11 +25,10 @@ ...@@ -25,11 +25,10 @@
//---------------------------------------------------------------- //----------------------------------------------------------------
#include <ndb_global.h>
#include "records.hpp" #include "records.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define RETURN_ERROR 1 #define RETURN_ERROR 1
#define RETURN_OK 0 #define RETURN_OK 0
......
...@@ -14,10 +14,8 @@ ...@@ -14,10 +14,8 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <stdlib.h> #include <ndb_global.h>
#include <string.h>
#include <NdbStdio.h>
#include <NdbUnistd.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include "Filename.hpp" #include "Filename.hpp"
......
...@@ -17,9 +17,10 @@ ...@@ -17,9 +17,10 @@
#ifndef ERRORREPORTER_H #ifndef ERRORREPORTER_H
#define ERRORREPORTER_H #define ERRORREPORTER_H
#include <ndb_global.h>
#include "TimeModule.hpp" #include "TimeModule.hpp"
#include "Error.hpp" #include "Error.hpp"
#include <stdio.h>
#include <Emulator.hpp> #include <Emulator.hpp>
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "Emulator.hpp" #include "Emulator.hpp"
#include <FastScheduler.hpp> #include <FastScheduler.hpp>
#include <SignalLoggerManager.hpp> #include <SignalLoggerManager.hpp>
...@@ -31,7 +33,6 @@ ...@@ -31,7 +33,6 @@
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbMutex.h> #include <NdbMutex.h>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <stdlib.h>
#include <new> #include <new>
extern "C" { extern "C" {
......
...@@ -17,11 +17,11 @@ ...@@ -17,11 +17,11 @@
#ifndef GLOBAL_DATA_H #ifndef GLOBAL_DATA_H
#define GLOBAL_DATA_H #define GLOBAL_DATA_H
#include <ndb_global.h>
#include <kernel_types.h> #include <kernel_types.h>
#include <assert.h>
#include "Prio.hpp" #include "Prio.hpp"
#include "VMSignal.hpp" #include "VMSignal.hpp"
#include <stdlib.h>
#include <assert.h>
#include <BlockNumbers.h> #include <BlockNumbers.h>
#include <NodeState.hpp> #include <NodeState.hpp>
......
...@@ -14,12 +14,13 @@ ...@@ -14,12 +14,13 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <TransporterCallback.hpp> #include <TransporterCallback.hpp>
#include <TransporterRegistry.hpp> #include <TransporterRegistry.hpp>
#include <FastScheduler.hpp> #include <FastScheduler.hpp>
#include <Emulator.hpp> #include <Emulator.hpp>
#include <ErrorHandlingMacros.hpp> #include <ErrorHandlingMacros.hpp>
#include <stdio.h>
#include "LongSignal.hpp" #include "LongSignal.hpp"
......
...@@ -17,14 +17,15 @@ ...@@ -17,14 +17,15 @@
#ifndef VMSignal_H #ifndef VMSignal_H
#define VMSignal_H #define VMSignal_H
#include <ndb_global.h>
#include <ndb_limits.h>
#include <kernel_types.h>
#include <ErrorReporter.hpp> #include <ErrorReporter.hpp>
#include <NodeBitmask.hpp> #include <NodeBitmask.hpp>
#include <ndb_limits.h>
#include <kernel_types.h>
#include <RefConvert.hpp> #include <RefConvert.hpp>
#include <TransporterDefinitions.hpp> #include <TransporterDefinitions.hpp>
#include <stdlib.h>
/** /**
* Struct used when sending to multiple blocks * Struct used when sending to multiple blocks
......
...@@ -16,11 +16,12 @@ ...@@ -16,11 +16,12 @@
#include <ndb_global.hpp>
#include <assert.h>
#include <ArrayList.hpp> #include <ArrayList.hpp>
#include <stdlib.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbTick.h> #include <NdbTick.h>
#include <assert.h>
struct A_Listable_Object { struct A_Listable_Object {
Uint32 next; Uint32 next;
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
#include <ndb_global.h>
#include <assert.h>
#include <ArrayList.hpp> #include <ArrayList.hpp>
#include <stdlib.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbTick.h> #include <NdbTick.h>
#include <assert.h>
#include <string.h>
struct A_Poolable_Object { struct A_Poolable_Object {
Uint32 next; Uint32 next;
......
...@@ -14,11 +14,12 @@ ...@@ -14,11 +14,12 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <assert.h>
#include <ArrayList.hpp> #include <ArrayList.hpp>
#include <stdlib.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbTick.h> #include <NdbTick.h>
#include <assert.h>
#include <NdbMain.h> #include <NdbMain.h>
#include "arrayListTest.cpp" #include "arrayListTest.cpp"
......
...@@ -15,10 +15,9 @@ ...@@ -15,10 +15,9 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <sched.h> #include <sched.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
int int
main(int argc, char * const argv[]){ main(int argc, char * const argv[]){
......
...@@ -15,11 +15,9 @@ ...@@ -15,11 +15,9 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbTick.h> #include <NdbTick.h>
#include <ndb_types.h>
#include <string.h>
#include <stdlib.h>
#ifdef __NDB_FORTE6 #ifdef __NDB_FORTE6
#define HAND #define HAND
......
...@@ -14,10 +14,12 @@ ...@@ -14,10 +14,12 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <NdbTick.h> #include <NdbTick.h>
#include <DataBuffer.hpp> #include <DataBuffer.hpp>
#include <stdlib.h>
#include <string.h> #undef test
struct Buffer { struct Buffer {
Buffer(Uint32 size){ m_sz = size; buffer = new Uint32[m_sz]; m_len = 0;} Buffer(Uint32 size){ m_sz = size; buffer = new Uint32[m_sz]; m_len = 0;}
......
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <assert.h>
#include <editline/editline.h> #include <editline/editline.h>
#include <SignalSender.hpp> #include <SignalSender.hpp>
#include <assert.h>
#include <stdlib.h>
void void
print_help(){ print_help(){
......
...@@ -14,12 +14,13 @@ ...@@ -14,12 +14,13 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <NdbTick.h> #include <NdbTick.h>
#include <TransporterDefinitions.hpp> #include <TransporterDefinitions.hpp>
#include <SimpleProperties.hpp> #include <SimpleProperties.hpp>
#include <LongSignal.hpp> #include <LongSignal.hpp>
#include <stdlib.h>
#include <string.h> #undef test
struct Buffer { struct Buffer {
Buffer(Uint32 size){ m_sz = size; buffer = new Uint32[m_sz]; m_len = 0;} Buffer(Uint32 size){ m_sz = size; buffer = new Uint32[m_sz]; m_len = 0;}
......
...@@ -14,17 +14,13 @@ ...@@ -14,17 +14,13 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <NdbTCP.h> #include <NdbTCP.h>
#include "mgmapi.h" #include "mgmapi.h"
#include "mgmapi_debug.h" #include "mgmapi_debug.h"
#include <socket_io.h> #include <socket_io.h>
#include <stdlib.h>
#include <string.h>
#include <NdbStdio.h>
#include <NdbString.h>
#include <errno.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <SocketServer.hpp> #include <SocketServer.hpp>
#include <Parser.hpp> #include <Parser.hpp>
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <mgmapi.h> #include <mgmapi.h>
#ifdef VM_TRACE #ifdef VM_TRACE
...@@ -22,9 +24,6 @@ ...@@ -22,9 +24,6 @@
#endif #endif
#include <NdbOut.hpp> #include <NdbOut.hpp>
#include <NdbStdio.h>
#include <stdlib.h>
static int testConnect(NdbMgmHandle h, struct ndb_mgm_reply* reply); static int testConnect(NdbMgmHandle h, struct ndb_mgm_reply* reply);
static int testDisconnect(NdbMgmHandle h, struct ndb_mgm_reply* reply); static int testDisconnect(NdbMgmHandle h, struct ndb_mgm_reply* reply);
......
...@@ -25,11 +25,9 @@ ...@@ -25,11 +25,9 @@
* Server API" document * Server API" document
* *
*****************************************************/ *****************************************************/
#include <ndb_global.h>
#include "mgmapi.h" #include "mgmapi.h"
#include "mgmapi_commands.h" #include "mgmapi_commands.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <NdbMain.h> #include <NdbMain.h>
#include <NdbOut.hpp> #include <NdbOut.hpp>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment