mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
94e5d7de85
modified: storage/connect/CMakeLists.txt modified: storage/connect/JavaWrappers.jar modified: storage/connect/colblk.h modified: storage/connect/filter.cpp modified: storage/connect/filter.h modified: storage/connect/ha_connect.cc modified: storage/connect/ha_connect.h modified: storage/connect/jdbccat.h modified: storage/connect/jdbconn.cpp modified: storage/connect/jdbconn.h modified: storage/connect/mongofam.cpp modified: storage/connect/mongofam.h modified: storage/connect/mycat.cc modified: storage/connect/mycat.h modified: storage/connect/tabext.h modified: storage/connect/tabjdbc.cpp modified: storage/connect/tabjdbc.h modified: storage/connect/tabjson.cpp modified: storage/connect/tabjson.h modified: storage/connect/tabmgo.cpp modified: storage/connect/tabmgo.h created: storage/connect/Mongo2Interface.java created: storage/connect/Mongo3Interface.java created: storage/connect/cmgoconn.cpp created: storage/connect/cmgoconn.h created: storage/connect/javaconn.cpp created: storage/connect/javaconn.h created: storage/connect/jmgfam.cpp created: storage/connect/jmgfam.h created: storage/connect/jmgoconn.cpp created: storage/connect/jmgoconn.h created: storage/connect/mongo.cpp created: storage/connect/mongo.h created: storage/connect/tabjmg.cpp created: storage/connect/tabjmg.h - tdbp not initialized when catched exception in CntGetTDB (connect.cc line 188) modified: storage/connect/connect.h - CheckCleanup should sometimes doing cleanup on pure info Sometimes MariaDB loops on info to get the size of all tables in a database. This can sometimes fail by exhausted memory. CheckCleanup now have a force boolean parameter (defaulting to false) modified: storage/connect/ha_connect.cc modified: storage/connect/user_connect.cc modified: storage/connect/user_connect.h Change the copyright of some source files modified: storage/connect/connect.cc modified: storage/connect/connect.h modified: storage/connect/engmsg.h modified: storage/connect/global.h modified: storage/connect/ha_connect.cc modified: storage/connect/ha_connect.h modified: storage/connect/msgid.h modified: storage/connect/mycat.cc modified: storage/connect/mycat.h modified: storage/connect/os.h modified: storage/connect/osutil.c modified: storage/connect/osutil.h modified: storage/connect/user_connect.cc modified: storage/connect/user_connect.h
54 lines
984 B
C
54 lines
984 B
C
/* Copyright (C) MariaDB Corporation Ab */
|
|
#ifndef __OSUTIL_H__
|
|
#define __OSUTIL_H__
|
|
|
|
#if defined(UNIX) || defined(UNIV_LINUX)
|
|
#include "my_global.h"
|
|
#include <errno.h>
|
|
#include <stddef.h>
|
|
#include "os.h"
|
|
|
|
#define MB_OK 0x00000000
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int GetLastError();
|
|
void _splitpath(const char*, char*, char*, char*, char*);
|
|
void _makepath(char*, const char*, const char*, const char*, const char*);
|
|
char *_fullpath(char *absPath, const char *relPath, size_t maxLength);
|
|
BOOL MessageBeep(uint);
|
|
unsigned long _filelength(int fd);
|
|
|
|
PSZ strupr(PSZ s);
|
|
PSZ strlwr(PSZ s);
|
|
|
|
typedef size_t FILEPOS;
|
|
//pedef int FILEHANDLE; // UNIX
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#else /* WINDOWS */
|
|
#include <windows.h>
|
|
|
|
typedef __int64 FILEPOS;
|
|
//pedef HANDLE FILEHANDLE; // Win32
|
|
|
|
#endif /* WINDOWS */
|
|
|
|
#define XSTR(x) ((x)?(x):"<null>")
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
my_bool CloseFileHandle(HANDLE h);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif /* __OSUTIL_H__ */
|