diff options
Diffstat (limited to 'core/org.eclipse.cdt.core.qnx/library/pty')
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
|