1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Replace QNX copyright with standard CPL copyright.

This commit is contained in:
Sebastien Marineau 2004-01-08 12:06:08 +00:00
parent 208055cbb3
commit c209012141
9 changed files with 115 additions and 65 deletions

View file

@ -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 // stdafx.cpp : source file that includes just the standard includes
// spawner.pch will be the pre-compiled header // spawner.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information // stdafx.obj will contain the pre-compiled type information

View file

@ -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, // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but // or project specific include files that are used frequently, but
// are changed infrequently // are changed infrequently

View file

@ -1,13 +1,14 @@
/* Copyright, 2002, QNX Software Systems Ltd. All Rights Reserved /**********************************************************************
* Copyright (c) 2002,2003 QNX Software Systems and others.
* This source code has been published by QNX Software Systems * All rights reserved. This program and the accompanying materials
* Ltd. (QSSL). However, any use, reproduction, modification, distribution * are made available under the terms of the Common Public License v0.5
* or transfer of this software, or any software which includes or is based * which accompanies this distribution, and is available at
* upon any of this code, is only permitted if expressly authorized by a * http://www.eclipse.org/legal/cpl-v05.html
* written license agreement from QSSL. Contact the QNX Developer's Network *
* or contact QSSL's legal department for more information. * Contributors:
* * QNX Software Systems - Initial API and implementation
* ***********************************************************************/
/*
* Win32ProcessEx.c * Win32ProcessEx.c
* *
* This is a JNI implementation of spawner * This is a JNI implementation of spawner
@ -17,15 +18,15 @@
#include <stdlib.h> #include <stdlib.h>
#include <process.h> #include <process.h>
#include "Spawner.h" #include "Spawner.h"
#include "jni.h" #include "jni.h"
#include "io.h" #include "io.h"
// #define DEBUG_MONITOR // #define DEBUG_MONITOR
#define PIPE_SIZE 512 #define PIPE_SIZE 512
#define MAX_CMD_SIZE 2049 #define MAX_CMD_SIZE 2049
#define MAX_ENV_SIZE 4096 #define MAX_ENV_SIZE 4096
#define MAX_PROCS (100) #define MAX_PROCS (100)
@ -71,7 +72,7 @@ static HMODULE hVM = NULL;
static pProcInfo_t pInfo = NULL; static pProcInfo_t pInfo = NULL;
JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_exec0 JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_exec0
(JNIEnv * env, jobject process, jobjectArray cmdarray, jobjectArray envp, jstring dir, jintArray channels) (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 JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_waitFor
(JNIEnv * env, jobject process, jint uid) (JNIEnv * env, jobject process, jint uid)
{ {
long exit_code; long exit_code;
int what=0; int what=0;
HANDLE hProc; HANDLE hProc;
pProcInfo_t pCurProcInfo = findProcInfo(uid); pProcInfo_t pCurProcInfo = findProcInfo(uid);
@ -589,21 +590,21 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_waitFor
what = WaitForSingleObject(hProc, INFINITE); what = WaitForSingleObject(hProc, INFINITE);
if (what == WAIT_OBJECT_0) if (what == WAIT_OBJECT_0)
{ {
GetExitCodeProcess(hProc, &exit_code); GetExitCodeProcess(hProc, &exit_code);
} }
if(hProc) if(hProc)
CloseHandle(hProc); CloseHandle(hProc);
return exit_code; return exit_code;
} }
// Utilities // Utilities

View file

@ -1,16 +1,15 @@
/* Copyright, 2002, QNX Software Systems Ltd. All Rights Reserved /**********************************************************************
* Copyright (c) 2002,2003 QNX Software Systems and others.
* This source code has been published by QNX Software Systems * All rights reserved. This program and the accompanying materials
* Ltd. (QSSL). However, any use, reproduction, modification, distribution * are made available under the terms of the Common Public License v0.5
* or transfer of this software, or any software which includes or is based * which accompanies this distribution, and is available at
* upon any of this code, is only permitted if expressly authorized by a * http://www.eclipse.org/legal/cpl-v05.html
* written license agreement from QSSL. Contact the QNX Developer's Network *
* or contact QSSL's legal department for more information. * Contributors:
* * QNX Software Systems - Initial API and implementation
* ***********************************************************************/
* Win32ProcessEx.c /*
* * This is a JNI implementation of access to standard i/o streams
* This is a JNI implementation of access to standard i/o streams
*/ */
#include "stdafx.h" #include "stdafx.h"
#include <string.h> #include <string.h>

View file

@ -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, // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but // or project specific include files that are used frequently, but
// are changed infrequently // are changed infrequently

View file

@ -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. // ProcList.cpp : Defines the entry point for the console application.
// //

View file

@ -1,15 +1,14 @@
/* Copyright, 2002, QNX Software Systems Ltd. All Rights Reserved /**********************************************************************
* Copyright (c) 2002,2003 QNX Software Systems and others.
* This source code has been published by QNX Software Systems * All rights reserved. This program and the accompanying materials
* Ltd. (QSSL). However, any use, reproduction, modification, distribution * are made available under the terms of the Common Public License v0.5
* or transfer of this software, or any software which includes or is based * which accompanies this distribution, and is available at
* upon any of this code, is only permitted if expressly authorized by a * http://www.eclipse.org/legal/cpl-v05.html
* written license agreement from QSSL. Contact the QNX Developer's Network *
* or contact QSSL's legal department for more information. * Contributors:
* * QNX Software Systems - Initial API and implementation
* ***********************************************************************/
* Win32ProcessEx.c /*
*
* This is a JNI implementation of spawner * This is a JNI implementation of spawner
*/ */
#include "stdafx.h" #include "stdafx.h"

View file

@ -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. // spawner.cpp : Defines the entry point for the DLL application.
// //

View file

@ -1,13 +1,14 @@
/* Copyright, 2002, QNX Software Systems Ltd. All Rights Reserved /**********************************************************************
* Copyright (c) 2002,2003 QNX Software Systems and others.
* This source code has been published by QNX Software Systems * All rights reserved. This program and the accompanying materials
* Ltd. (QSSL). However, any use, reproduction, modification, distribution * are made available under the terms of the Common Public License v0.5
* or transfer of this software, or any software which includes or is based * which accompanies this distribution, and is available at
* upon any of this code, is only permitted if expressly authorized by a * http://www.eclipse.org/legal/cpl-v05.html
* written license agreement from QSSL. Contact the QNX Developer's Network *
* or contact QSSL's legal department for more information. * Contributors:
* * QNX Software Systems - Initial API and implementation
* ***********************************************************************/
/*
* starter.c * starter.c
* *
* This is a small utility for windows spawner * This is a small utility for windows spawner