mirror of
https://github.com/reactos/reactos.git
synced 2025-05-20 17:45:06 +00:00
Keep the posix module buildable, and add some CVS sugar for easier scanning.
svn path=/trunk/; revision=3896
This commit is contained in:
parent
2ed726833f
commit
c36596ece0
31 changed files with 136 additions and 15 deletions
5
posix/apps/baresh/.cvsignore
Normal file
5
posix/apps/baresh/.cvsignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
*.o
|
||||
*.d
|
||||
*.exe
|
||||
*.coff
|
||||
*.sym
|
5
posix/apps/posixw32/.cvsignore
Normal file
5
posix/apps/posixw32/.cvsignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
*.o
|
||||
*.d
|
||||
*.exe
|
||||
*.coff
|
||||
*.sym
|
1
posix/include/psx/.cvsignore
Normal file
1
posix/include/psx/.cvsignore
Normal file
|
@ -0,0 +1 @@
|
|||
syscall.h
|
|
@ -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
|
||||
* 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
|
||||
{
|
||||
LPC_MESSAGE_HEADER Header;
|
||||
//LPC_MESSAGE_HEADER Header;
|
||||
LPC_MESSAGE Header;
|
||||
PSX_MESSAGE_HEADER PsxHeader;
|
||||
BYTE Data [PSX_MAX_LPC_DATA_SIZE];
|
||||
} PSX_MAX_MESSAGE, * PPSX_MAX_MESSAGE;
|
||||
|
@ -75,7 +76,8 @@ typedef enum {
|
|||
|
||||
typedef struct _PSX_TERMINAL_IO
|
||||
{
|
||||
LPC_MESSAGE_HEADER Header;
|
||||
//LPC_MESSAGE_HEADER Header;
|
||||
LPC_MESSAGE Header;
|
||||
PSX_MESSAGE_HEADER PsxHeader;
|
||||
ULONG Size;
|
||||
ULONG Offset;
|
||||
|
|
5
posix/lib/.cvsignore
Normal file
5
posix/lib/.cvsignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
*.o
|
||||
*.d
|
||||
*.exe
|
||||
*.coff
|
||||
*.sym
|
7
posix/lib/psxdll/.cvsignore
Normal file
7
posix/lib/psxdll/.cvsignore
Normal file
|
@ -0,0 +1,7 @@
|
|||
*.o
|
||||
*.d
|
||||
*.a
|
||||
*.exe
|
||||
*.dll
|
||||
*.coff
|
||||
*.sym
|
2
posix/lib/psxdll/dirent/.cvsignore
Normal file
2
posix/lib/psxdll/dirent/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/dlfcn/.cvsignore
Normal file
2
posix/lib/psxdll/dlfcn/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/errno/.cvsignore
Normal file
2
posix/lib/psxdll/errno/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/fcntl/.cvsignore
Normal file
2
posix/lib/psxdll/fcntl/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/libgen/.cvsignore
Normal file
2
posix/lib/psxdll/libgen/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/misc/.cvsignore
Normal file
2
posix/lib/psxdll/misc/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
|
@ -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
|
||||
|
@ -121,26 +121,58 @@ __PdxProcessDataToProcessParameters
|
|||
fdDescriptor = __fdtable_entry_get(&ProcessData->FdTable, STDIN_FILENO);
|
||||
|
||||
if(fdDescriptor != NULL)
|
||||
(*ProcessParameters)->InputHandle = fdDescriptor->FileHandle;
|
||||
(*ProcessParameters)->hStdInput = fdDescriptor->FileHandle;
|
||||
|
||||
/* standard output handle */
|
||||
fdDescriptor = __fdtable_entry_get(&ProcessData->FdTable, STDOUT_FILENO);
|
||||
|
||||
if(fdDescriptor != NULL)
|
||||
(*ProcessParameters)->OutputHandle = fdDescriptor->FileHandle;
|
||||
(*ProcessParameters)->hStdOutput = fdDescriptor->FileHandle;
|
||||
|
||||
/* standard error handle */
|
||||
fdDescriptor = __fdtable_entry_get(&ProcessData->FdTable, STDERR_FILENO);
|
||||
|
||||
if(fdDescriptor != NULL)
|
||||
(*ProcessParameters)->ErrorHandle = fdDescriptor->FileHandle;
|
||||
(*ProcessParameters)->hStdError = fdDescriptor->FileHandle;
|
||||
|
||||
/* POSIX+ and NT environments are incompatible, we set the environment to
|
||||
nothing */
|
||||
(*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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
@ -222,7 +222,7 @@ NTSTATUS STDCALL __PdxSpawnPosixProcess
|
|||
}
|
||||
|
||||
/* 3.3.2: process parameters */
|
||||
nDestBufferSize = pppProcessParameters->Length;
|
||||
nDestBufferSize = pppProcessParameters->Size;
|
||||
|
||||
nErrCode = NtAllocateVirtualMemory
|
||||
(
|
||||
|
@ -317,7 +317,7 @@ NTSTATUS STDCALL __PdxSpawnPosixProcess
|
|||
hProcess,
|
||||
pParamsBuffer,
|
||||
pppProcessParameters,
|
||||
pppProcessParameters->Length,
|
||||
pppProcessParameters->Size,
|
||||
NULL
|
||||
);
|
||||
|
||||
|
@ -417,7 +417,7 @@ undoPData:
|
|||
NtCurrentProcess(),
|
||||
ProcessData->FdTable.Descriptors[i].FileHandle,
|
||||
hProcess,
|
||||
(PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, InputHandle)),
|
||||
(PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, hStdInput)),
|
||||
0,
|
||||
0,
|
||||
DUPLICATE_SAME_ACCESS | 4 /* | DUPLICATE_SAME_ATTRIBUTES */ /* FIXME */
|
||||
|
@ -438,7 +438,7 @@ undoPData:
|
|||
NtCurrentProcess(),
|
||||
ProcessData->FdTable.Descriptors[i].FileHandle,
|
||||
hProcess,
|
||||
(PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, OutputHandle)),
|
||||
(PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, hStdOutput)),
|
||||
0,
|
||||
0,
|
||||
DUPLICATE_SAME_ACCESS | 4 /* | DUPLICATE_SAME_ATTRIBUTES */ /* FIXME */
|
||||
|
@ -459,7 +459,7 @@ undoPData:
|
|||
NtCurrentProcess(),
|
||||
ProcessData->FdTable.Descriptors[i].FileHandle,
|
||||
hProcess,
|
||||
(PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, ErrorHandle)),
|
||||
(PHANDLE)((ULONG)pParamsBuffer + offsetof(RTL_USER_PROCESS_PARAMETERS, hStdError)),
|
||||
0,
|
||||
0,
|
||||
DUPLICATE_SAME_ACCESS | 4 /* | DUPLICATE_SAME_ATTRIBUTES */ /* FIXME */
|
||||
|
|
2
posix/lib/psxdll/pthread/.cvsignore
Normal file
2
posix/lib/psxdll/pthread/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/sched/.cvsignore
Normal file
2
posix/lib/psxdll/sched/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/signal/.cvsignore
Normal file
2
posix/lib/psxdll/signal/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/stdlib/.cvsignore
Normal file
2
posix/lib/psxdll/stdlib/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/string/.cvsignore
Normal file
2
posix/lib/psxdll/string/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/sys/stat/.cvsignore
Normal file
2
posix/lib/psxdll/sys/stat/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/sys/utsname/.cvsignore
Normal file
2
posix/lib/psxdll/sys/utsname/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/lib/psxdll/unistd/.cvsignore
Normal file
2
posix/lib/psxdll/unistd/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
7
posix/lib/psxx/.cvsignore
Normal file
7
posix/lib/psxx/.cvsignore
Normal file
|
@ -0,0 +1,7 @@
|
|||
*.o
|
||||
*.d
|
||||
*.a
|
||||
*.exe
|
||||
*.dll
|
||||
*.coff
|
||||
*.sym
|
6
posix/lib/psxx/misc/.cvsignore
Normal file
6
posix/lib/psxx/misc/.cvsignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
*.o
|
||||
*.d
|
||||
*.exe
|
||||
*.dll
|
||||
*.coff
|
||||
*.sym
|
6
posix/server/.cvsignore
Normal file
6
posix/server/.cvsignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
*.o
|
||||
*.d
|
||||
*.exe
|
||||
*.dll
|
||||
*.coff
|
||||
*.sym
|
4
posix/server/call/.cvsignore
Normal file
4
posix/server/call/.cvsignore
Normal file
|
@ -0,0 +1,4 @@
|
|||
stubs.c
|
||||
syscall.c
|
||||
*.o
|
||||
*.d
|
1
posix/server/include/.cvsignore
Normal file
1
posix/server/include/.cvsignore
Normal file
|
@ -0,0 +1 @@
|
|||
syscall.h
|
3
posix/server/misc/.cvsignore
Normal file
3
posix/server/misc/.cvsignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
*.o
|
||||
*.d
|
||||
*.coff
|
2
posix/server/ob/.cvsignore
Normal file
2
posix/server/ob/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
2
posix/server/port/.cvsignore
Normal file
2
posix/server/port/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
*.d
|
5
posix/tools/.cvsignore
Normal file
5
posix/tools/.cvsignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
*.o
|
||||
*.d
|
||||
*.exe
|
||||
*.coff
|
||||
*.sym
|
Loading…
Reference in a new issue