Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Inglis2002-11-04 20:57:06 +0000
committerDavid Inglis2002-11-04 20:57:06 +0000
commit985995cb0f64cee1c14511880b1f6f0107a88f62 (patch)
tree03c86a0fa9e2688415f80c4e0105d454d3c4a87b /core/org.eclipse.cdt.core.qnx/library/pty
parentc7f9164d44452361a051e7c278d6beba366008f2 (diff)
downloadorg.eclipse.cdt-985995cb0f64cee1c14511880b1f6f0107a88f62.tar.gz
org.eclipse.cdt-985995cb0f64cee1c14511880b1f6f0107a88f62.tar.xz
org.eclipse.cdt-985995cb0f64cee1c14511880b1f6f0107a88f62.zip
change library layout
Diffstat (limited to 'core/org.eclipse.cdt.core.qnx/library/pty')
-rw-r--r--core/org.eclipse.cdt.core.qnx/library/pty/Makefile8
-rw-r--r--core/org.eclipse.cdt.core.qnx/library/pty/common.mk14
-rw-r--r--core/org.eclipse.cdt.core.qnx/library/pty/openpty.c5
-rw-r--r--core/org.eclipse.cdt.core.qnx/library/pty/x86/Makefile8
-rw-r--r--core/org.eclipse.cdt.core.qnx/library/pty/x86/so/Makefile1
5 files changed, 34 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core.qnx/library/pty/Makefile b/core/org.eclipse.cdt.core.qnx/library/pty/Makefile
new file mode 100644
index 00000000000..959e9b2292f
--- /dev/null
+++ b/core/org.eclipse.cdt.core.qnx/library/pty/Makefile
@@ -0,0 +1,8 @@
+LIST=CPU
+ifndef QRECURSE
+QRECURSE=recurse.mk
+ifdef QCONFIG
+QRDIR=$(dir $(QCONFIG))
+endif
+endif
+include $(QRDIR)$(QRECURSE)
diff --git a/core/org.eclipse.cdt.core.qnx/library/pty/common.mk b/core/org.eclipse.cdt.core.qnx/library/pty/common.mk
new file mode 100644
index 00000000000..40fc9cca6c7
--- /dev/null
+++ b/core/org.eclipse.cdt.core.qnx/library/pty/common.mk
@@ -0,0 +1,14 @@
+ifndef QCONFIG
+QCONFIG=qconfig.mk
+endif
+include $(QCONFIG)
+
+include $(MKFILES_ROOT)/qtargets.mk
+
+ifeq ($(OS),nto)
+ifeq ($(IVEHOME),)
+IVEHOME:=/opt/vame/ive/bin
+endif
+EXTRA_INCVPATH+=$(IVEHOME)/include
+endif
+
diff --git a/core/org.eclipse.cdt.core.qnx/library/pty/openpty.c b/core/org.eclipse.cdt.core.qnx/library/pty/openpty.c
index a946423199b..b1660a13b78 100644
--- a/core/org.eclipse.cdt.core.qnx/library/pty/openpty.c
+++ b/core/org.eclipse.cdt.core.qnx/library/pty/openpty.c
@@ -55,7 +55,8 @@ int
ptym_open(char * pts_name)
{
char *ptr1, *ptr2;
-
+ int fdm;
+
strcpy(pts_name, "/dev/ptyXY");
/* array index: 012345689 (for references in following code) */
for (ptr1 = "pqrstuvwxyzPQRST"; *ptr1 != 0; ptr1++) {
@@ -81,7 +82,7 @@ ptym_open(char * pts_name)
int
ptys_open(int fdm, char * pts_name)
{
- int gid;
+ int gid, fds;
struct group *grptr;
grptr = getgrnam("tty");
diff --git a/core/org.eclipse.cdt.core.qnx/library/pty/x86/Makefile b/core/org.eclipse.cdt.core.qnx/library/pty/x86/Makefile
new file mode 100644
index 00000000000..6a18617612e
--- /dev/null
+++ b/core/org.eclipse.cdt.core.qnx/library/pty/x86/Makefile
@@ -0,0 +1,8 @@
+LIST=VARIANT
+ifndef QRECURSE
+QRECURSE=recurse.mk
+ifdef QCONFIG
+QRDIR=$(dir $(QCONFIG))
+endif
+endif
+include $(QRDIR)$(QRECURSE)
diff --git a/core/org.eclipse.cdt.core.qnx/library/pty/x86/so/Makefile b/core/org.eclipse.cdt.core.qnx/library/pty/x86/so/Makefile
new file mode 100644
index 00000000000..cc399272607
--- /dev/null
+++ b/core/org.eclipse.cdt.core.qnx/library/pty/x86/so/Makefile
@@ -0,0 +1 @@
+include ../../common.mk

Back to the top