mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	Moved IF(test,column,NULL) code to 4.0 Changed mysys_priv.h to include my_pthread.h or my_no_pthread.h. Removed some CR's in os2 files. Docs/manual.texi: Changelog include/global.h: Fix for BIGINT problem on AIX include/my_no_pthread.h: Fixed typo libmysql/Makefile.shared: Fix for BIGINT problem on AIX mysql-test/mysql-test-run.sh: Fix to find xterm on AIX 4.3 mysql-test/r/bigint.result: Fix for BIGINT problem on AIX mysql-test/r/func_if.result: Change results for IF() after reverting change. mysql-test/t/bigint.test: Fix for BIGINT problem on AIX mysys/Makefile.am: Fix for BIGINT problem on AIX mysys/my_gethostbyname.c: Cleanup mysys/my_init.c: Cleanup mysys/my_net.c: Cleanup mysys/my_os2cond.c: Space & CRLF cleanup mysys/my_os2dirsrch.c: Space & CRLF cleanup mysys/my_os2dirsrch.h: Space & CRLF cleanup mysys/my_os2dlfcn.c: Space & CRLF cleanup mysys/my_os2file64.c: Space & CRLF cleanup mysys/my_os2mutex.c: Space & CRLF cleanup mysys/my_os2thread.c: Space & CRLF cleanup mysys/my_os2tls.c: Space & CRLF cleanup mysys/mysys_priv.h: cleanup mysys/thr_rwlock.c: cleanup sql/ha_innobase.cc: Removed usage of sprintf() Fixed missing end \0 which caused control characters to appear in SHOW INNODB STATUS sql/item_cmpfunc.cc: Reverted change for IF() sql/mysqld.cc: Fix for shutdown on AIX
		
			
				
	
	
		
			75 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* Copyright (C) Yuri Dario & 2000 MySQL AB
 | 
						|
   All the above parties has a full, independent copyright to
 | 
						|
   the following code, including the right to use the code in
 | 
						|
   any manner without any demands from the other parties.
 | 
						|
 | 
						|
   This library is free software; you can redistribute it and/or
 | 
						|
   modify it under the terms of the GNU Library General Public
 | 
						|
   License as published by the Free Software Foundation; either
 | 
						|
   version 2 of the License, or (at your option) any later version.
 | 
						|
 | 
						|
   This library is distributed in the hope that it will be useful,
 | 
						|
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | 
						|
   Library General Public License for more details.
 | 
						|
 | 
						|
   You should have received a copy of the GNU Library General Public
 | 
						|
   License along with this library; if not, write to the Free
 | 
						|
   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 | 
						|
   MA 02111-1307, USA */
 | 
						|
 | 
						|
/*
 | 
						|
 *    dlfcn::Unix dynamic loading for OS/2
 | 
						|
 *
 | 
						|
 * Compatibility layer for dynamic loading.
 | 
						|
 * Only minimal implementation
 | 
						|
 *
 | 
						|
*/
 | 
						|
 | 
						|
#define RTLD_LAZY 0
 | 
						|
#define RTLD_NOW 0
 | 
						|
 | 
						|
void* dlopen( char* path, int flag);
 | 
						|
char* dlerror( void);
 | 
						|
void* dlsym( void* hmod, char* fn);
 | 
						|
void  dlclose( void* hmod);
 | 
						|
 | 
						|
char	fail[ 256];
 | 
						|
 | 
						|
void* dlopen( char* path, int flag)
 | 
						|
{
 | 
						|
   APIRET  rc;
 | 
						|
   HMODULE hmod;
 | 
						|
 | 
						|
   rc = DosLoadModule( fail, sizeof( fail), path, &hmod);
 | 
						|
   if (rc)
 | 
						|
      return NULL;
 | 
						|
 | 
						|
   return (void*) hmod;
 | 
						|
}
 | 
						|
 | 
						|
char* dlerror( void)
 | 
						|
{
 | 
						|
   return fail;
 | 
						|
}
 | 
						|
 | 
						|
void* dlsym( void* hmod, char* fn)
 | 
						|
{
 | 
						|
   APIRET  rc;
 | 
						|
   PFN	   addr;
 | 
						|
 | 
						|
   rc = DosQueryProcAddr( (HMODULE) hmod, 0l, fn, &addr);
 | 
						|
   if (rc)
 | 
						|
      return NULL;
 | 
						|
 | 
						|
   return (void*) addr;
 | 
						|
}
 | 
						|
 | 
						|
void  dlclose( void* hmod)
 | 
						|
{
 | 
						|
   APIRET  rc;
 | 
						|
 | 
						|
   rc = DosFreeModule( (HMODULE) hmod);
 | 
						|
 | 
						|
}
 |