diff options
author | unknown <lenz@mysql.com> | 2002-07-15 18:26:11 +0200 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2002-07-15 18:26:11 +0200 |
commit | 9e5fd21c3b4fadb518720d5e64735d232acf0d8d (patch) | |
tree | 7bbc1431086d8f60702c6d6e2ad89eec7fe88075 /os2/include | |
parent | 0dd47486d6d5f91f8083f8caddaf1ada09cc1919 (diff) | |
download | mariadb-git-9e5fd21c3b4fadb518720d5e64735d232acf0d8d.tar.gz |
- Updated OS/2 port with files provided by Yuri Dario <mc6530@mclink.it>
from TeamOS/2 Italy
- removed some obsolete files on Yuri's request
- Added missing os2 related files outside the os2 subdirectory
to the distribution
BitKeeper/deleted/.del-MySQL-All.icc~132f824bdf16897c:
Delete: os2/MySQL-All.icc
BitKeeper/deleted/.del-MySQL-Client.irs~6dc13dcf3bbd5c0e:
Delete: os2/MySQL-Client.irs
BitKeeper/deleted/.del-MySQL-Lib.icc~6775a33b1eeed98:
Delete: os2/MySQL-Lib.icc
BitKeeper/deleted/.del-MySQL-ReadLine.icc~d7ab937c4ed8922f:
Delete: os2/MySQL-ReadLine.icc
BitKeeper/deleted/.del-MySQL-binlog.icc~ec86ef1b392553e:
Delete: os2/MySQL-binlog.icc
BitKeeper/deleted/.del-MySQL-binlog.irs~80d1800461e185d1:
Delete: os2/MySQL-binlog.irs
BitKeeper/deleted/.del-MySQL-sql.irs~563a18a769b1785d:
Delete: os2/MySQL-sql.irs
BitKeeper/deleted/.del-build-all.log~8dda947d95dfb926:
Delete: os2/build-all.log
BitKeeper/deleted/.del-mysql.base~330f9ea62769c03a:
Delete: os2/mysql.base
BitKeeper/deleted/.del-mysql.ih~767482ec101feda3:
Delete: os2/mysql.ih
BitKeeper/deleted/.del-readme.os2~e8fe94e278248f7e:
Delete: os2/readme.os2
configure.in:
Added new os2 subdirectories
include/Makefile.am:
Added include/config-os2.h to distribution
include/config-os2.h:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
mysys/Makefile.am:
Added missing OS/2 files in mysys to distribution
mysys/my_os2file64.c:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
mysys/my_os2thread.c:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
os2/BldLevel.cmd:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
os2/BldLevel.rc:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
os2/ChangeLog.os2:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
os2/Makefile.am:
Fixed OS/2 file list (some new files, some have been removed)
os2/MySQL-Client.icc:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
os2/MySQL-Opt.icc:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
os2/MySQL-Source.icc:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
os2/MySQL-Util.icc:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
os2/MySQL-Util.irs:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
os2/ReadMe.txt:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
os2/build-all.cmd:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
os2/rint.obj:
Applied modifications provided by Yuri Dario <mc6530@mclink.it> from TeamOS/2 Italy
Diffstat (limited to 'os2/include')
-rw-r--r-- | os2/include/Makefile.am | 23 | ||||
-rw-r--r-- | os2/include/config.h | 13 | ||||
-rw-r--r-- | os2/include/pwd.h | 1 | ||||
-rw-r--r-- | os2/include/sgtty.h | 1 | ||||
-rw-r--r-- | os2/include/sys/Makefile.am | 22 | ||||
-rw-r--r-- | os2/include/sys/file.h | 1 | ||||
-rw-r--r-- | os2/include/termio.h | 156 |
7 files changed, 217 insertions, 0 deletions
diff --git a/os2/include/Makefile.am b/os2/include/Makefile.am new file mode 100644 index 00000000000..b0478e7c470 --- /dev/null +++ b/os2/include/Makefile.am @@ -0,0 +1,23 @@ +# Copyright (C) 2002 MySQL AB & MySQL Finland AB & TCX DataKonsult AB +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +## Process this file with automake to create Makefile.in + +EXTRA_DIST = config.h pwd.h sgtty.h termio.h +SUBDIRS = sys + +# Don't update the files from bitkeeper +%::SCCS/s.% diff --git a/os2/include/config.h b/os2/include/config.h new file mode 100644 index 00000000000..bb1e3d9bb0f --- /dev/null +++ b/os2/include/config.h @@ -0,0 +1,13 @@ +#include <config-os2.h>
+#include <types.h>
+
+#undef HAVE_POSIX_SIGNALS
+#undef HAVE_BSD_SIGNALS
+#define TERMIO_TTY_DRIVER
+
+#define ScreenCols() 80
+#define ScreenRows() 25
+
+#define tputs(a,b,c) puts(a)
+#define kbhit _kbhit
+//#define _read_kbd(a, b, c) _kbhit()
diff --git a/os2/include/pwd.h b/os2/include/pwd.h new file mode 100644 index 00000000000..ec283586db2 --- /dev/null +++ b/os2/include/pwd.h @@ -0,0 +1 @@ +/* dummy */
diff --git a/os2/include/sgtty.h b/os2/include/sgtty.h new file mode 100644 index 00000000000..ec283586db2 --- /dev/null +++ b/os2/include/sgtty.h @@ -0,0 +1 @@ +/* dummy */
diff --git a/os2/include/sys/Makefile.am b/os2/include/sys/Makefile.am new file mode 100644 index 00000000000..b68f968aafe --- /dev/null +++ b/os2/include/sys/Makefile.am @@ -0,0 +1,22 @@ +# Copyright (C) 2002 MySQL AB & MySQL Finland AB & TCX DataKonsult AB +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +## Process this file with automake to create Makefile.in + +EXTRA_DIST = file.h + +# Don't update the files from bitkeeper +%::SCCS/s.% diff --git a/os2/include/sys/file.h b/os2/include/sys/file.h new file mode 100644 index 00000000000..ec283586db2 --- /dev/null +++ b/os2/include/sys/file.h @@ -0,0 +1 @@ +/* dummy */
diff --git a/os2/include/termio.h b/os2/include/termio.h new file mode 100644 index 00000000000..cad88caccf9 --- /dev/null +++ b/os2/include/termio.h @@ -0,0 +1,156 @@ +/* sys/termio.h (emx+gcc) */
+
+#ifndef _SYS_TERMIO_H
+#define _SYS_TERMIO_H
+
+#if defined (__cplusplus)
+extern "C" {
+#endif
+
+/* Request codes */
+
+#if !defined (TCGETA)
+#define TCGETA 1
+#define TCSETA 2
+#define TCSETAW 3
+#define TCSETAF 4
+#define TCFLSH 5
+#define TCSBRK 6
+#define TCXONC 7
+#endif
+
+/* c_cc indexes */
+
+#if !defined (VINTR) /* Symbols common to termio.h and termios.h */
+#define VINTR 0
+#define VQUIT 1
+#define VERASE 2
+#define VKILL 3
+#define VEOF 4
+#define VEOL 5
+#define VMIN 6
+#define VTIME 7
+#endif
+
+#define NCC 8 /* Number of the above */
+
+/* c_iflag, emx ignores most of the following bits */
+
+#if !defined (IGNBRK) /* Symbols common to termio.h and termios.h */
+#define IGNBRK 0x0001
+#define BRKINT 0x0002
+#define IGNPAR 0x0004
+#define PARMRK 0x0008
+#define INPCK 0x0010
+#define ISTRIP 0x0020
+#define INLCR 0x0040
+#define IGNCR 0x0080
+#define ICRNL 0x0100
+#define IUCLC 0x0200
+#define IXON 0x0400
+#define IXANY 0x0800
+#define IXOFF 0x1000
+#define IDELETE 0x8000 /* Extension (emx) */
+#endif
+
+/* c_oflag, emx ignores all of the following bits */
+
+#if !defined (OPOST) /* Symbols common to termio.h and termios.h */
+#define OPOST 0x0001
+#endif
+#define OLCUC 0x0002
+#define ONLCR 0x0004
+#define OCRNL 0x0008
+#define ONOCR 0x0010
+#define ONLRET 0x0020
+#define OFILL 0x0040
+#define OFDEL 0x0080
+#define NLDLY 0x0100 /* Mask */
+#define NL0 0x0000
+#define NL1 0x0100
+#define CRDLY 0x0600 /* Mask */
+#define CR0 0x0000
+#define CR1 0x0200
+#define CR2 0x0400
+#define CR3 0x0600
+#define TABDLY 0x1800 /* Mask */
+#define TAB0 0x0000
+#define TAB1 0x0800
+#define TAB2 0x1000
+#define TAB3 0x1800
+#define BSDLY 0x2000 /* Mask */
+#define BS0 0x0000
+#define BS1 0x2000
+#define VTDLY 0x4000 /* Mask */
+#define VT0 0x0000
+#define VT1 0x4000
+#define FFDLY 0x8000 /* Mask */
+#define FF0 0x0000
+#define FF1 0x8000
+
+/* c_cflag, emx ignores all of the following bits */
+
+#if !defined (CBAUD)
+#define CBAUD 0x000f /* Mask */
+#endif
+#if !defined (B0) /* Symbols common to termio.h and termios.h */
+#define B0 0x0000
+#define B50 0x0001
+#define B75 0x0002
+#define B110 0x0003
+#define B134 0x0004
+#define B150 0x0005
+#define B200 0x0006
+#define B300 0x0007
+#define B600 0x0008
+#define B1200 0x0009
+#define B1800 0x000a
+#define B2400 0x000b
+#define B4800 0x000c
+#define B9600 0x000d
+#define B19200 0x000e
+#define B38400 0x000f
+#define CSIZE 0x0030 /* Mask */
+#define CS5 0x0000
+#define CS6 0x0010
+#define CS7 0x0020
+#define CS8 0x0030
+#define CSTOPB 0x0040
+#define CREAD 0x0080
+#define PARENB 0x0100
+#define PARODD 0x0200
+#define HUPCL 0x0400
+#define CLOCAL 0x0800
+#define LOBLK 0x1000
+#endif
+
+/* c_lflag, emx ignores some of the following bits */
+
+#if !defined (ISIG) /* Symbols common to termio.h and termios.h */
+#define ISIG 0x0001
+#define ICANON 0x0002
+#define XCASE 0x0004
+#define ECHO 0x0008
+#define ECHOE 0x0010
+#define ECHOK 0x0020
+#define ECHONL 0x0040
+#define NOFLSH 0x0080
+#define IDEFAULT 0x8000 /* Extension (emx) */
+#endif
+
+
+struct termio
+{
+ unsigned int c_iflag;
+ unsigned int c_oflag;
+ unsigned int c_cflag;
+ unsigned int c_lflag;
+ unsigned int c_line;
+ unsigned char c_cc[NCC];
+};
+
+#if defined (__cplusplus)
+}
+#endif
+
+#endif /* not _SYS_TERMIO_H */
|