diff options
author | unknown <brian@zim.(none)> | 2006-04-15 08:49:00 -0700 |
---|---|---|
committer | unknown <brian@zim.(none)> | 2006-04-15 08:49:00 -0700 |
commit | 06e8697d04ea7ecc28aed3ae7d68a3156546004c (patch) | |
tree | 0016808c56b0545d9e84a1650e620b6bf9dc516b /mysys/my_getwd.c | |
parent | 1b2312211f3938a45a79ea49ead7f3660fbb2c3e (diff) | |
download | mariadb-git-06e8697d04ea7ecc28aed3ae7d68a3156546004c.tar.gz |
Another long patch to remove the rest of the OS2 support.
include/config-win.h:
Removing OS2 stuff
include/errmsg.h:
Removing OS2 stuff
include/m_string.h:
OS2 removal
include/my_global.h:
OS2 removal
include/my_net.h:
OS2 removal
include/my_no_pthread.h:
OS2 removal
include/my_pthread.h:
OS2 removal
include/thr_alarm.h:
OS2 removal
mysys/default.c:
OS2 removal
mysys/mf_path.c:
OS2 removal
mysys/mf_tempdir.c:
OS2 removal
mysys/mf_tempfile.c:
OS2 removal
mysys/my_access.c:
OS2 removal
mysys/my_clock.c:
OS2 removal
mysys/my_copy.c:
OS2 removal
mysys/my_create.c:
OS2 removal
mysys/my_dup.c:
OS2 removal
mysys/my_file.c:
OS2 removal
mysys/my_getwd.c:
OS2 removal
mysys/my_init.c:
OS2 removal
mysys/my_lib.c:
OS2 removal
mysys/my_lock.c:
OS2 removal
mysys/my_mkdir.c:
OS2 removal
mysys/my_open.c:
OS2 removal
mysys/my_pthread.c:
OS2 removal
mysys/my_redel.c:
OS2 removal
mysys/my_sleep.c:
OS2 removal
mysys/my_static.c:
OS2 removal
mysys/my_thr_init.c:
OS2 removal
mysys/thr_alarm.c:
OS2 removal
storage/myisam/myisamchk.c:
OS2 removal
Diffstat (limited to 'mysys/my_getwd.c')
-rw-r--r-- | mysys/my_getwd.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/mysys/my_getwd.c b/mysys/my_getwd.c index 5663ceaa60e..765c30bc281 100644 --- a/mysys/my_getwd.c +++ b/mysys/my_getwd.c @@ -27,14 +27,6 @@ #include <dos.h> #include <direct.h> #endif -#if defined(OS2) -#include <direct.h> -#endif - -#ifdef __EMX__ -/* chdir2 support also drive change */ -#define chdir _chdir2 -#endif /* Gets current working directory in buff. Directory is allways ended with FN_LIBCHAR */ @@ -95,14 +87,14 @@ int my_setwd(const char *dir, myf MyFlags) int res; size_s length; my_string start,pos; -#if defined(VMS) || defined(MSDOS) || defined(OS2) +#if defined(VMS) || defined(MSDOS) char buff[FN_REFLEN]; #endif DBUG_ENTER("my_setwd"); DBUG_PRINT("my",("dir: '%s' MyFlags %d", dir, MyFlags)); start=(my_string) dir; -#if defined(MSDOS) || defined(OS2) /* OS2/MSDOS chdir can't change drive */ +#if defined(MSDOS) /* MSDOS chdir can't change drive */ #if !defined(_DDL) && !defined(WIN32) if ((pos=(char*) strchr(dir,FN_DEVCHAR)) != 0) { @@ -113,13 +105,8 @@ int my_setwd(const char *dir, myf MyFlags) drives= (uint) -1; if ((pos-(byte*) dir) == 2 && drive > 0 && drive < 32) { -#ifdef OS2 - _chdrive(drive); - drives = _getdrive(); -#else _dos_setdrive(drive,&drives); _dos_getdrive(&drives); -#endif } if (drive != drives) { |