Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Marineau2004-01-08 07:06:08 -0500
committerSebastien Marineau2004-01-08 07:06:08 -0500
commitc2090121417a9e628a6e5ac40e6c1ededf090e48 (patch)
tree5a6a9c21b84472b44a657beb2a95f630e7cba276 /core/org.eclipse.cdt.core.win32
parent208055cbb32246d520684970fe29cb4bfc2fcbb4 (diff)
downloadorg.eclipse.cdt-c2090121417a9e628a6e5ac40e6c1ededf090e48.tar.gz
org.eclipse.cdt-c2090121417a9e628a6e5ac40e6c1ededf090e48.tar.xz
org.eclipse.cdt-c2090121417a9e628a6e5ac40e6c1ededf090e48.zip
Replace QNX copyright with standard CPL copyright.
Diffstat (limited to 'core/org.eclipse.cdt.core.win32')
-rw-r--r--core/org.eclipse.cdt.core.win32/library/StdAfx.c10
-rw-r--r--core/org.eclipse.cdt.core.win32/library/StdAfx.h10
-rw-r--r--core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c61
-rw-r--r--core/org.eclipse.cdt.core.win32/library/iostream.c25
-rw-r--r--core/org.eclipse.cdt.core.win32/library/listtasks/StdAfx.h10
-rw-r--r--core/org.eclipse.cdt.core.win32/library/listtasks/listtasks.cpp10
-rw-r--r--core/org.eclipse.cdt.core.win32/library/raise.c23
-rw-r--r--core/org.eclipse.cdt.core.win32/library/spawner.c10
-rw-r--r--core/org.eclipse.cdt.core.win32/library/starter/starter.cpp21
9 files changed, 115 insertions, 65 deletions
diff --git a/core/org.eclipse.cdt.core.win32/library/StdAfx.c b/core/org.eclipse.cdt.core.win32/library/StdAfx.c
index f932277afe..dc7550edf6 100644
--- a/core/org.eclipse.cdt.core.win32/library/StdAfx.c
+++ b/core/org.eclipse.cdt.core.win32/library/StdAfx.c
@@ -1,3 +1,13 @@
+/**********************************************************************
+ * Copyright (c) 2002,2003 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+***********************************************************************/
// stdafx.cpp : source file that includes just the standard includes
// spawner.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
diff --git a/core/org.eclipse.cdt.core.win32/library/StdAfx.h b/core/org.eclipse.cdt.core.win32/library/StdAfx.h
index 72d86ebb5b..3ec5e93c71 100644
--- a/core/org.eclipse.cdt.core.win32/library/StdAfx.h
+++ b/core/org.eclipse.cdt.core.win32/library/StdAfx.h
@@ -1,3 +1,13 @@
+/**********************************************************************
+ * Copyright (c) 2002,2003 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+***********************************************************************/
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
diff --git a/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c b/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
index d5e9a410bf..a78d83b276 100644
--- a/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
+++ b/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
@@ -1,13 +1,14 @@
-/* Copyright, 2002, QNX Software Systems Ltd. All Rights Reserved
-
- * This source code has been published by QNX Software Systems
- * Ltd. (QSSL). However, any use, reproduction, modification, distribution
- * or transfer of this software, or any software which includes or is based
- * upon any of this code, is only permitted if expressly authorized by a
- * written license agreement from QSSL. Contact the QNX Developer's Network
- * or contact QSSL's legal department for more information.
- *
- *
+/**********************************************************************
+ * Copyright (c) 2002,2003 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+***********************************************************************/
+/*
* Win32ProcessEx.c
*
* This is a JNI implementation of spawner
@@ -17,15 +18,15 @@
#include <stdlib.h>
#include <process.h>
#include "Spawner.h"
-
-
-#include "jni.h"
-#include "io.h"
+
+
+#include "jni.h"
+#include "io.h"
// #define DEBUG_MONITOR
-
+
#define PIPE_SIZE 512
-#define MAX_CMD_SIZE 2049
+#define MAX_CMD_SIZE 2049
#define MAX_ENV_SIZE 4096
#define MAX_PROCS (100)
@@ -71,7 +72,7 @@ static HMODULE hVM = NULL;
static pProcInfo_t pInfo = NULL;
-
+
JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_exec0
(JNIEnv * env, jobject process, jobjectArray cmdarray, jobjectArray envp, jstring dir, jintArray channels)
{
@@ -569,13 +570,13 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_raise
}
-
-
+
+
JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_waitFor
(JNIEnv * env, jobject process, jint uid)
-{
- long exit_code;
- int what=0;
+{
+ long exit_code;
+ int what=0;
HANDLE hProc;
pProcInfo_t pCurProcInfo = findProcInfo(uid);
@@ -589,21 +590,21 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_waitFor
what = WaitForSingleObject(hProc, INFINITE);
-
+
if (what == WAIT_OBJECT_0)
- {
- GetExitCodeProcess(hProc, &exit_code);
+ {
+ GetExitCodeProcess(hProc, &exit_code);
}
if(hProc)
CloseHandle(hProc);
- return exit_code;
-}
-
-
-
+ return exit_code;
+}
+
+
+
// Utilities
diff --git a/core/org.eclipse.cdt.core.win32/library/iostream.c b/core/org.eclipse.cdt.core.win32/library/iostream.c
index f92d9b18ab..faae3c1112 100644
--- a/core/org.eclipse.cdt.core.win32/library/iostream.c
+++ b/core/org.eclipse.cdt.core.win32/library/iostream.c
@@ -1,16 +1,15 @@
-/* Copyright, 2002, QNX Software Systems Ltd. All Rights Reserved
-
- * This source code has been published by QNX Software Systems
- * Ltd. (QSSL). However, any use, reproduction, modification, distribution
- * or transfer of this software, or any software which includes or is based
- * upon any of this code, is only permitted if expressly authorized by a
- * written license agreement from QSSL. Contact the QNX Developer's Network
- * or contact QSSL's legal department for more information.
- *
- *
- * Win32ProcessEx.c
- *
- * This is a JNI implementation of access to standard i/o streams
+/**********************************************************************
+ * Copyright (c) 2002,2003 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+***********************************************************************/
+/*
+ * This is a JNI implementation of access to standard i/o streams
*/
#include "stdafx.h"
#include <string.h>
diff --git a/core/org.eclipse.cdt.core.win32/library/listtasks/StdAfx.h b/core/org.eclipse.cdt.core.win32/library/listtasks/StdAfx.h
index e7e62d722f..a2b1670daf 100644
--- a/core/org.eclipse.cdt.core.win32/library/listtasks/StdAfx.h
+++ b/core/org.eclipse.cdt.core.win32/library/listtasks/StdAfx.h
@@ -1,3 +1,13 @@
+/**********************************************************************
+ * Copyright (c) 2002,2003 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+***********************************************************************/
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
diff --git a/core/org.eclipse.cdt.core.win32/library/listtasks/listtasks.cpp b/core/org.eclipse.cdt.core.win32/library/listtasks/listtasks.cpp
index be632e5547..fa3327f2d2 100644
--- a/core/org.eclipse.cdt.core.win32/library/listtasks/listtasks.cpp
+++ b/core/org.eclipse.cdt.core.win32/library/listtasks/listtasks.cpp
@@ -1,3 +1,13 @@
+/**********************************************************************
+ * Copyright (c) 2002,2003 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+***********************************************************************/
// ProcList.cpp : Defines the entry point for the console application.
//
diff --git a/core/org.eclipse.cdt.core.win32/library/raise.c b/core/org.eclipse.cdt.core.win32/library/raise.c
index 5148b4a45b..ebe0172f58 100644
--- a/core/org.eclipse.cdt.core.win32/library/raise.c
+++ b/core/org.eclipse.cdt.core.win32/library/raise.c
@@ -1,15 +1,14 @@
-/* Copyright, 2002, QNX Software Systems Ltd. All Rights Reserved
-
- * This source code has been published by QNX Software Systems
- * Ltd. (QSSL). However, any use, reproduction, modification, distribution
- * or transfer of this software, or any software which includes or is based
- * upon any of this code, is only permitted if expressly authorized by a
- * written license agreement from QSSL. Contact the QNX Developer's Network
- * or contact QSSL's legal department for more information.
- *
- *
- * Win32ProcessEx.c
- *
+/**********************************************************************
+ * Copyright (c) 2002,2003 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+***********************************************************************/
+/*
* This is a JNI implementation of spawner
*/
#include "stdafx.h"
diff --git a/core/org.eclipse.cdt.core.win32/library/spawner.c b/core/org.eclipse.cdt.core.win32/library/spawner.c
index 49537cf582..42217ae985 100644
--- a/core/org.eclipse.cdt.core.win32/library/spawner.c
+++ b/core/org.eclipse.cdt.core.win32/library/spawner.c
@@ -1,3 +1,13 @@
+/**********************************************************************
+ * Copyright (c) 2002,2003 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+***********************************************************************/
// spawner.cpp : Defines the entry point for the DLL application.
//
diff --git a/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp b/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp
index 8aea36ac35..8b41e40a30 100644
--- a/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp
+++ b/core/org.eclipse.cdt.core.win32/library/starter/starter.cpp
@@ -1,13 +1,14 @@
-/* Copyright, 2002, QNX Software Systems Ltd. All Rights Reserved
-
- * This source code has been published by QNX Software Systems
- * Ltd. (QSSL). However, any use, reproduction, modification, distribution
- * or transfer of this software, or any software which includes or is based
- * upon any of this code, is only permitted if expressly authorized by a
- * written license agreement from QSSL. Contact the QNX Developer's Network
- * or contact QSSL's legal department for more information.
- *
- *
+/**********************************************************************
+ * Copyright (c) 2002,2003 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+***********************************************************************/
+/*
* starter.c
*
* This is a small utility for windows spawner

Back to the top