Keep the posix module buildable, and add some CVS sugar for easier scanning.

svn path=/trunk/; revision=3896
This commit is contained in:
Robert Dickenson 2002-12-26 18:14:38 +00:00
parent 2ed726833f
commit c36596ece0
31 changed files with 136 additions and 15 deletions

View file

@ -0,0 +1,5 @@
*.o
*.d
*.exe
*.coff
*.sym

View file

@ -0,0 +1,5 @@
*.o
*.d
*.exe
*.coff
*.sym

View file

@ -0,0 +1 @@
syscall.h

View file

@ -1,4 +1,4 @@
/* $Id: lpcproto.h,v 1.5 2002/10/29 04:45:13 rex Exp $ /* $Id: lpcproto.h,v 1.6 2002/12/26 18:14:34 robd Exp $
* *
* ReactOS POSIX+ Environment Subsystem * ReactOS POSIX+ Environment Subsystem
* LPC protocol spoken by PSXSS.EXE, PSXDLL.DLL, CSRTERM.EXE. * LPC protocol spoken by PSXSS.EXE, PSXDLL.DLL, CSRTERM.EXE.
@ -56,7 +56,8 @@ typedef PSX_MESSAGE_HEADER PSX_MESSAGE, * PPSX_MESSAGE;
typedef struct _PSX_MAX_MESSAGE typedef struct _PSX_MAX_MESSAGE
{ {
LPC_MESSAGE_HEADER Header; //LPC_MESSAGE_HEADER Header;
LPC_MESSAGE Header;
PSX_MESSAGE_HEADER PsxHeader; PSX_MESSAGE_HEADER PsxHeader;
BYTE Data [PSX_MAX_LPC_DATA_SIZE]; BYTE Data [PSX_MAX_LPC_DATA_SIZE];
} PSX_MAX_MESSAGE, * PPSX_MAX_MESSAGE; } PSX_MAX_MESSAGE, * PPSX_MAX_MESSAGE;
@ -75,7 +76,8 @@ typedef enum {
typedef struct _PSX_TERMINAL_IO typedef struct _PSX_TERMINAL_IO
{ {
LPC_MESSAGE_HEADER Header; //LPC_MESSAGE_HEADER Header;
LPC_MESSAGE Header;
PSX_MESSAGE_HEADER PsxHeader; PSX_MESSAGE_HEADER PsxHeader;
ULONG Size; ULONG Size;
ULONG Offset; ULONG Offset;

5
posix/lib/.cvsignore Normal file
View file

@ -0,0 +1,5 @@
*.o
*.d
*.exe
*.coff
*.sym

View file

@ -0,0 +1,7 @@
*.o
*.d
*.a
*.exe
*.dll
*.coff
*.sym

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -1,4 +1,4 @@
/* $Id: pdata.c,v 1.5 2002/10/29 04:45:33 rex Exp $ /* $Id: pdata.c,v 1.6 2002/12/26 18:14:36 robd Exp $
*/ */
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
@ -121,26 +121,58 @@ __PdxProcessDataToProcessParameters
fdDescriptor = __fdtable_entry_get(&ProcessData->FdTable, STDIN_FILENO); fdDescriptor = __fdtable_entry_get(&ProcessData->FdTable, STDIN_FILENO);
if(fdDescriptor != NULL) if(fdDescriptor != NULL)
(*ProcessParameters)->InputHandle = fdDescriptor->FileHandle; (*ProcessParameters)->hStdInput = fdDescriptor->FileHandle;
/* standard output handle */ /* standard output handle */
fdDescriptor = __fdtable_entry_get(&ProcessData->FdTable, STDOUT_FILENO); fdDescriptor = __fdtable_entry_get(&ProcessData->FdTable, STDOUT_FILENO);
if(fdDescriptor != NULL) if(fdDescriptor != NULL)
(*ProcessParameters)->OutputHandle = fdDescriptor->FileHandle; (*ProcessParameters)->hStdOutput = fdDescriptor->FileHandle;
/* standard error handle */ /* standard error handle */
fdDescriptor = __fdtable_entry_get(&ProcessData->FdTable, STDERR_FILENO); fdDescriptor = __fdtable_entry_get(&ProcessData->FdTable, STDERR_FILENO);
if(fdDescriptor != NULL) if(fdDescriptor != NULL)
(*ProcessParameters)->ErrorHandle = fdDescriptor->FileHandle; (*ProcessParameters)->hStdError = fdDescriptor->FileHandle;
/* POSIX+ and NT environments are incompatible, we set the environment to /* POSIX+ and NT environments are incompatible, we set the environment to
nothing */ nothing */
(*ProcessParameters)->Environment = NULL; (*ProcessParameters)->Environment = NULL;
(*ProcessParameters)->ConsoleHandle = (PVOID)-1; /*
(*ProcessParameters)->ConsoleFlags = 0; typedef struct _RTL_USER_PROCESS_PARAMETERS {
ULONG AllocationSize;
ULONG Size;
ULONG Flags;
ULONG DebugFlags;
HANDLE hConsole;
ULONG ProcessGroup;
HANDLE hStdInput;
HANDLE hStdOutput;
HANDLE hStdError;
UNICODE_STRING CurrentDirectoryName;
HANDLE CurrentDirectoryHandle;
UNICODE_STRING DllPath;
UNICODE_STRING ImagePathName;
UNICODE_STRING CommandLine;
PWSTR Environment;
ULONG dwX;
ULONG dwY;
ULONG dwXSize;
ULONG dwYSize;
ULONG dwXCountChars;
ULONG dwYCountChars;
ULONG dwFillAttribute;
ULONG dwFlags;
ULONG wShowWindow;
UNICODE_STRING WindowTitle;
UNICODE_STRING DesktopInfo;
UNICODE_STRING ShellInfo;
UNICODE_STRING RuntimeInfo;
} RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;
*/
(*ProcessParameters)->hConsole = (PVOID)-1;
(*ProcessParameters)->Flags = 0;
return (STATUS_SUCCESS); return (STATUS_SUCCESS);
} }

View file

@ -1,4 +1,4 @@
/* $Id: spawn.c,v 1.8 2002/10/29 04:45:35 rex Exp $ /* $Id: spawn.c,v 1.9 2002/12/26 18:14:36 robd Exp $
*/ */
/* /*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
@ -222,7 +222,7 @@ NTSTATUS STDCALL __PdxSpawnPosixProcess
} }
/* 3.3.2: process parameters */ /* 3.3.2: process parameters */
nDestBufferSize = pppProcessParameters->Length; nDestBufferSize = pppProcessParameters->Size;
nErrCode = NtAllocateVirtualMemory nErrCode = NtAllocateVirtualMemory
( (
@ -317,7 +317,7 @@ NTSTATUS STDCALL __PdxSpawnPosixProcess
hProcess, hProcess,
pParamsBuffer, pParamsBuffer,
pppProcessParameters, pppProcessParameters,
pppProcessParameters->Length, pppProcessParameters->Size,
NULL NULL
); );
@ -417,7 +417,7 @@ undoPData:
NtCurrentProcess(), NtCurrentProcess(),
ProcessData->FdTable.Descriptors[i].FileHandle, ProcessData->FdTable.Descriptors[i].FileHandle,
hProcess, hProcess,
(PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, InputHandle)), (PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, hStdInput)),
0, 0,
0, 0,
DUPLICATE_SAME_ACCESS | 4 /* | DUPLICATE_SAME_ATTRIBUTES */ /* FIXME */ DUPLICATE_SAME_ACCESS | 4 /* | DUPLICATE_SAME_ATTRIBUTES */ /* FIXME */
@ -438,7 +438,7 @@ undoPData:
NtCurrentProcess(), NtCurrentProcess(),
ProcessData->FdTable.Descriptors[i].FileHandle, ProcessData->FdTable.Descriptors[i].FileHandle,
hProcess, hProcess,
(PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, OutputHandle)), (PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, hStdOutput)),
0, 0,
0, 0,
DUPLICATE_SAME_ACCESS | 4 /* | DUPLICATE_SAME_ATTRIBUTES */ /* FIXME */ DUPLICATE_SAME_ACCESS | 4 /* | DUPLICATE_SAME_ATTRIBUTES */ /* FIXME */
@ -459,7 +459,7 @@ undoPData:
NtCurrentProcess(), NtCurrentProcess(),
ProcessData->FdTable.Descriptors[i].FileHandle, ProcessData->FdTable.Descriptors[i].FileHandle,
hProcess, hProcess,
(PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, ErrorHandle)), (PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, hStdError)),
0, 0,
0, 0,
DUPLICATE_SAME_ACCESS | 4 /* | DUPLICATE_SAME_ATTRIBUTES */ /* FIXME */ DUPLICATE_SAME_ACCESS | 4 /* | DUPLICATE_SAME_ATTRIBUTES */ /* FIXME */

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,7 @@
*.o
*.d
*.a
*.exe
*.dll
*.coff
*.sym

View file

@ -0,0 +1,6 @@
*.o
*.d
*.exe
*.dll
*.coff
*.sym

6
posix/server/.cvsignore Normal file
View file

@ -0,0 +1,6 @@
*.o
*.d
*.exe
*.dll
*.coff
*.sym

View file

@ -0,0 +1,4 @@
stubs.c
syscall.c
*.o
*.d

View file

@ -0,0 +1 @@
syscall.h

View file

@ -0,0 +1,3 @@
*.o
*.d
*.coff

View file

@ -0,0 +1,2 @@
*.o
*.d

View file

@ -0,0 +1,2 @@
*.o
*.d

5
posix/tools/.cvsignore Normal file
View file

@ -0,0 +1,5 @@
*.o
*.d
*.exe
*.coff
*.sym