mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Some old Fs/Po code added to the makefile
svn path=/trunk/; revision=902
This commit is contained in:
parent
4d5643a96a
commit
6b50f46c2f
14 changed files with 345 additions and 57 deletions
|
@ -15,7 +15,7 @@ include rules.mak
|
||||||
# Required to run the system
|
# Required to run the system
|
||||||
#
|
#
|
||||||
COMPONENTS = iface_native ntoskrnl
|
COMPONENTS = iface_native ntoskrnl
|
||||||
DLLS = ntdll kernel32 crtdll advapi32 fmifs gdi32 psxdll
|
DLLS = ntdll kernel32 crtdll advapi32 fmifs gdi32
|
||||||
#DLLS = mingw32 user32
|
#DLLS = mingw32 user32
|
||||||
SUBSYS = smss win32k
|
SUBSYS = smss win32k
|
||||||
#SUBSYS = csrss
|
#SUBSYS = csrss
|
||||||
|
|
162
reactos/include/ddk/fsfuncs.h
Normal file
162
reactos/include/ddk/fsfuncs.h
Normal file
|
@ -0,0 +1,162 @@
|
||||||
|
#ifndef __INCLUDE_DDK_FSFUNCS_H
|
||||||
|
#define __INCLUDE_DDK_FSFUNCS_H
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlAddLargeMcbEntry (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2,
|
||||||
|
DWORD Unknown3,
|
||||||
|
DWORD Unknown4,
|
||||||
|
DWORD Unknown5,
|
||||||
|
DWORD Unknown6
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlAddMcbEntry (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2,
|
||||||
|
DWORD Unknown3
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlGetNextLargeMcbEntry (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2,
|
||||||
|
DWORD Unknown3,
|
||||||
|
DWORD Unknown4
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlGetNextMcbEntry (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2,
|
||||||
|
DWORD Unknown3,
|
||||||
|
DWORD Unknown4
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlInitializeLargeMcb (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlInitializeMcb (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1
|
||||||
|
);
|
||||||
|
BOOLEAN
|
||||||
|
STDCALL
|
||||||
|
FsRtlIsNtstatusExpected (
|
||||||
|
NTSTATUS NtStatus
|
||||||
|
);
|
||||||
|
BOOLEAN
|
||||||
|
STDCALL
|
||||||
|
FsRtlIsTotalDeviceFailure (
|
||||||
|
NTSTATUS NtStatus
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlLookupLargeMcbEntry (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2,
|
||||||
|
DWORD Unknown3,
|
||||||
|
DWORD Unknown4,
|
||||||
|
DWORD Unknown5,
|
||||||
|
DWORD Unknown6,
|
||||||
|
DWORD Unknown7
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlLookupLastLargeMcbEntry (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlLookupLastMcbEntry (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlLookupMcbEntry (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2,
|
||||||
|
DWORD Unknown3,
|
||||||
|
DWORD Unknown4
|
||||||
|
);
|
||||||
|
NTSTATUS
|
||||||
|
STDCALL
|
||||||
|
FsRtlNormalizeNtstatus (
|
||||||
|
NTSTATUS NtStatusToNormalize,
|
||||||
|
NTSTATUS NormalizedNtStatus
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlNumberOfRunsInLargeMcb (
|
||||||
|
DWORD Unknown0
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlNumberOfRunsInMcb (
|
||||||
|
DWORD Unknown0
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlRemoveLargeMcbEntry (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2,
|
||||||
|
DWORD Unknown3,
|
||||||
|
DWORD Unknown4
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlRemoveMcbEntry (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlSplitLargeMcb (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2,
|
||||||
|
DWORD Unknown3,
|
||||||
|
DWORD Unknown4
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlTruncateLargeMcb (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlTruncateMcb (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlUninitializeLargeMcb (
|
||||||
|
DWORD Unknown0
|
||||||
|
);
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
FsRtlUninitializeMcb (
|
||||||
|
DWORD Unknown0
|
||||||
|
);
|
||||||
|
|
||||||
|
#endif /* __INCLUDE_DDK_FSFUNCS_H */
|
|
@ -290,6 +290,7 @@
|
||||||
#define STATUS_DEVICE_NOT_CONNECTED (0xc000009d)
|
#define STATUS_DEVICE_NOT_CONNECTED (0xc000009d)
|
||||||
#define STATUS_DEVICE_POWER_FAILURE (0xc000009e)
|
#define STATUS_DEVICE_POWER_FAILURE (0xc000009e)
|
||||||
#define STATUS_FREE_VM_NOT_AT_BASE (0xc000009f)
|
#define STATUS_FREE_VM_NOT_AT_BASE (0xc000009f)
|
||||||
|
#define STATUS_UNKNOWN_C00000AA (0xc00000aa)
|
||||||
#define STATUS_MEMORY_NOT_ALLOCATED (0xc0000100)
|
#define STATUS_MEMORY_NOT_ALLOCATED (0xc0000100)
|
||||||
#define STATUS_WORKING_SET_QUOTA (0xc0000101)
|
#define STATUS_WORKING_SET_QUOTA (0xc0000101)
|
||||||
#define STATUS_MEDIA_WRITE_PROTECTED (0xc0000102)
|
#define STATUS_MEDIA_WRITE_PROTECTED (0xc0000102)
|
||||||
|
|
|
@ -130,9 +130,13 @@ typedef struct _LPCMESSAGE
|
||||||
|
|
||||||
// system information
|
// system information
|
||||||
|
|
||||||
#define SystemPerformanceInformation 5
|
#define SystemInformation0 0
|
||||||
|
#define SystemInformation1 1
|
||||||
|
#define SystemPerformanceInformation 2
|
||||||
|
#define SystemInformation3 3
|
||||||
|
#define SystemProcessInformation 5
|
||||||
#define SystemDriverInformation 11
|
#define SystemDriverInformation 11
|
||||||
#define SystemIdentityInformation 12
|
#define SystemPageFileInformation 18
|
||||||
#define SystemCacheInformation 21
|
#define SystemCacheInformation 21
|
||||||
#define SystemTimeAdjustmentInformation 28
|
#define SystemTimeAdjustmentInformation 28
|
||||||
#define SystemTimeZoneInformation 44
|
#define SystemTimeZoneInformation 44
|
||||||
|
@ -304,6 +308,32 @@ typedef struct _OBJECT_TYPE_INFORMATION
|
||||||
|
|
||||||
// system information
|
// system information
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
#pragma pack(2)
|
||||||
|
typedef struct _SYSTEM_THREAD_INFORMATION
|
||||||
|
{
|
||||||
|
PVOID StartAddress;
|
||||||
|
DWORD ParentPid;
|
||||||
|
DWORD Tid;
|
||||||
|
|
||||||
|
} SYSTEM_THREAD_INFORMATION, * PSYSTEM_THREAD_INFORMATION;
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct _SYSTEM_PROCESS_INFORMATION
|
||||||
|
{
|
||||||
|
WORD Unknown0;
|
||||||
|
DWORD Unknown1;
|
||||||
|
DWORD Unknown2;
|
||||||
|
ULONG ThreadCount;
|
||||||
|
DWORD Unknown3 [10];
|
||||||
|
DWORD Pid;
|
||||||
|
DWORD Unknown4 [32];
|
||||||
|
WCHAR ImageName [16]; /* always ImageName[15] == L'\0' */
|
||||||
|
|
||||||
|
} SYSTEM_PROCESS_INFORMATION, * PSYSTEM_PROCESS_INFORMATION;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#pragma pack(4)
|
||||||
typedef struct _SYSTEM_DRIVER_INFO
|
typedef struct _SYSTEM_DRIVER_INFO
|
||||||
{
|
{
|
||||||
PVOID BaseAddress;
|
PVOID BaseAddress;
|
||||||
|
@ -311,8 +341,9 @@ typedef struct _SYSTEM_DRIVER_INFO
|
||||||
DWORD Unknown2;
|
DWORD Unknown2;
|
||||||
DWORD EntryIndex;
|
DWORD EntryIndex;
|
||||||
DWORD Unknown4;
|
DWORD Unknown4;
|
||||||
CHAR DriverName[MAX_PATH+1];
|
CHAR DriverName [256];
|
||||||
} SYSTEM_DRIVER_INFO, *PSYSTEM_DRIVER_INFO;
|
|
||||||
|
} SYSTEM_DRIVER_INFO, * PSYSTEM_DRIVER_INFO;
|
||||||
|
|
||||||
typedef struct _SYSTEM_DRIVERS_INFO
|
typedef struct _SYSTEM_DRIVERS_INFO
|
||||||
{
|
{
|
||||||
|
@ -320,11 +351,12 @@ typedef struct _SYSTEM_DRIVERS_INFO
|
||||||
SYSTEM_DRIVER_INFO DriverInfo[1];
|
SYSTEM_DRIVER_INFO DriverInfo[1];
|
||||||
} SYSTEM_DRIVERS_INFO, *PSYSTEM_DRIVERS_INFO;
|
} SYSTEM_DRIVERS_INFO, *PSYSTEM_DRIVERS_INFO;
|
||||||
|
|
||||||
|
#pragma pack(4)
|
||||||
typedef struct _SYSTEM_TIME_ADJUSTMENT
|
typedef struct _SYSTEM_TIME_ADJUSTMENT
|
||||||
{
|
{
|
||||||
ULONG TimeAdjustment;
|
TIME TimeAdjustment;
|
||||||
BOOL TimeAdjustmentDisabled;
|
BOOL TimeAdjustmentDisabled;
|
||||||
|
|
||||||
} SYSTEM_TIME_ADJUSTMENT, *PSYSTEM_TIME_ADJUSTMENT;
|
} SYSTEM_TIME_ADJUSTMENT, *PSYSTEM_TIME_ADJUSTMENT;
|
||||||
|
|
||||||
typedef struct _SYSTEM_CONFIGURATION_INFO {
|
typedef struct _SYSTEM_CONFIGURATION_INFO {
|
||||||
|
@ -347,6 +379,14 @@ typedef struct _SYSTEM_CONFIGURATION_INFO {
|
||||||
} SYSTEM_CONFIGURATION_INFO, *PSYSTEM_CONFIGURATION_INFO;
|
} SYSTEM_CONFIGURATION_INFO, *PSYSTEM_CONFIGURATION_INFO;
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct _SYSTEM_PAGEFILE_INFORMATION
|
||||||
|
{
|
||||||
|
DWORD Unknown [6];
|
||||||
|
WCHAR PagefileName [16];
|
||||||
|
|
||||||
|
} SYSTEM_PAGEFILE_INFORMATION, * PSYSTEM_PAGEFILE_INFORMATION;
|
||||||
|
|
||||||
|
|
||||||
typedef struct _SYSTEM_CACHE_INFORMATION
|
typedef struct _SYSTEM_CACHE_INFORMATION
|
||||||
{
|
{
|
||||||
ULONG CurrentSize;
|
ULONG CurrentSize;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: exit.c,v 1.2 1999/11/07 08:03:27 ea Exp $
|
/* $Id: exit.c,v 1.3 1999/12/26 16:36:44 ea Exp $
|
||||||
*
|
*
|
||||||
* reactos/lib/psxdll/libc/stdlib/exit.c
|
* reactos/lib/psxdll/libc/stdlib/exit.c
|
||||||
*
|
*
|
||||||
|
@ -6,19 +6,24 @@
|
||||||
*/
|
*/
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
#include <ntos.h>
|
#include <ntos.h>
|
||||||
|
#include "../../misc/psxdll.h"
|
||||||
|
|
||||||
|
void _exit (int code)
|
||||||
void
|
|
||||||
_exit (
|
|
||||||
int code
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
|
NTSTATUS Status;
|
||||||
|
|
||||||
/* FIXME: call atexit registered functions */
|
/* FIXME: call atexit registered functions */
|
||||||
|
#if 0
|
||||||
|
/* FIXME: notify psxss.exe we died */
|
||||||
|
Status = NtRequestWaitReplyPort (
|
||||||
|
__PdxApiPort,
|
||||||
|
...
|
||||||
|
);
|
||||||
|
#endif
|
||||||
NtTerminateProcess (
|
NtTerminateProcess (
|
||||||
NtCurrentProcess(),
|
NtCurrentProcess(),
|
||||||
code
|
code
|
||||||
);
|
);
|
||||||
/* FIXME: notify psxss.exe we died */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: makefile,v 1.4 1999/11/07 08:03:26 ea Exp $
|
# $Id: makefile,v 1.5 1999/12/26 16:36:44 ea Exp $
|
||||||
#
|
#
|
||||||
# ReactOS psxdll.dll makefile
|
# ReactOS psxdll.dll makefile
|
||||||
#
|
#
|
||||||
|
@ -19,15 +19,29 @@ BASE_CFLAGS = -I../../include
|
||||||
all: $(DLLTARGET)
|
all: $(DLLTARGET)
|
||||||
|
|
||||||
|
|
||||||
|
OBJECTS_LIBC_IO = libc/io/dup.o libc/io/dup2.o libc/io/fcntl.o
|
||||||
|
|
||||||
OBJECTS_LIBC_STDLIB = libc/stdlib/exit.o
|
OBJECTS_LIBC_STDLIB = libc/stdlib/exit.o
|
||||||
|
|
||||||
OBJECTS_LIBC = $(OBJECTS_LIBC_STDLIB)
|
OBJECTS_LIBC_SYS = libc/sys/uname.o
|
||||||
|
|
||||||
|
OBJECTS_LIBC_TIME = libc/time/gettimeofday.o libc/time/time.o
|
||||||
|
|
||||||
|
OBJECTS_LIBC = \
|
||||||
|
$(OBJECTS_LIBC_IO) \
|
||||||
|
$(OBJECTS_LIBC_STDLIB) \
|
||||||
|
$(OBJECTS_LIBC_SYS) \
|
||||||
|
$(OBJECTS_LIBC_TIME)
|
||||||
|
|
||||||
OBJECTS_MISC = misc/dllmain.o misc/special.o misc/heap.o misc/rtl.o
|
OBJECTS_MISC = misc/dllmain.o misc/special.o misc/heap.o misc/rtl.o
|
||||||
|
|
||||||
OBJECTS_RESOURCE = $(TARGETNAME).coff
|
OBJECTS_RESOURCE = $(TARGETNAME).coff
|
||||||
|
|
||||||
OBJECTS = $(OBJECTS_LIBC) $(OBJECTS_LIBM) $(OBJECTS_MISC) $(OBJECTS_RESOURCE)
|
OBJECTS = \
|
||||||
|
$(OBJECTS_LIBC) \
|
||||||
|
$(OBJECTS_LIBM) \
|
||||||
|
$(OBJECTS_MISC) \
|
||||||
|
$(OBJECTS_RESOURCE)
|
||||||
|
|
||||||
DEFS=$(TARGETNAME).def $(TARGETNAME).edf
|
DEFS=$(TARGETNAME).def $(TARGETNAME).edf
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
; $Id: psxdll.def,v 1.6 1999/11/20 21:47:22 ekohl Exp $
|
; $Id: psxdll.def,v 1.7 1999/12/26 16:36:44 ea Exp $
|
||||||
;
|
;
|
||||||
; psxdll.def
|
; psxdll.def
|
||||||
;
|
;
|
||||||
|
@ -62,8 +62,8 @@ _exit
|
||||||
;creat
|
;creat
|
||||||
;ctermid
|
;ctermid
|
||||||
;cuserid
|
;cuserid
|
||||||
;dup
|
dup
|
||||||
;dup2
|
dup2
|
||||||
;endutxent
|
;endutxent
|
||||||
;execl
|
;execl
|
||||||
;execl_asuser
|
;execl_asuser
|
||||||
|
@ -77,7 +77,7 @@ _exit
|
||||||
;execve_asuser
|
;execve_asuser
|
||||||
;execvp
|
;execvp
|
||||||
;execvp_asuser
|
;execvp_asuser
|
||||||
;fcntl
|
fcntl
|
||||||
;flock
|
;flock
|
||||||
;fork
|
;fork
|
||||||
;fpathconf
|
;fpathconf
|
||||||
|
@ -114,7 +114,7 @@ _exit
|
||||||
;getservbyport
|
;getservbyport
|
||||||
;getsockname
|
;getsockname
|
||||||
;getsockopt
|
;getsockopt
|
||||||
;gettimeofday
|
gettimeofday
|
||||||
;gettzenv
|
;gettzenv
|
||||||
;getuid
|
;getuid
|
||||||
;getutxent
|
;getutxent
|
||||||
|
@ -203,12 +203,12 @@ _exit
|
||||||
;tcsendbreak
|
;tcsendbreak
|
||||||
;tcsetattr
|
;tcsetattr
|
||||||
;tcsetpgrp
|
;tcsetpgrp
|
||||||
;time
|
time
|
||||||
;times
|
;times
|
||||||
;ttyname
|
;ttyname
|
||||||
;uidtontsid
|
;uidtontsid
|
||||||
;umask
|
;umask
|
||||||
;uname
|
uname
|
||||||
;unlink
|
;unlink
|
||||||
;unlockpt
|
;unlockpt
|
||||||
;utime
|
;utime
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
; $Id: psxdll.edf,v 1.5 1999/11/20 21:47:22 ekohl Exp $
|
; $Id: psxdll.edf,v 1.6 1999/12/26 16:36:44 ea Exp $
|
||||||
;
|
;
|
||||||
; psxdll.edf
|
; psxdll.edf
|
||||||
;
|
;
|
||||||
|
@ -62,8 +62,8 @@ _exit
|
||||||
;creat
|
;creat
|
||||||
;ctermid
|
;ctermid
|
||||||
;cuserid
|
;cuserid
|
||||||
;dup
|
dup
|
||||||
;dup2
|
dup2
|
||||||
;endutxent
|
;endutxent
|
||||||
;execl
|
;execl
|
||||||
;execl_asuser
|
;execl_asuser
|
||||||
|
@ -77,7 +77,7 @@ _exit
|
||||||
;execve_asuser
|
;execve_asuser
|
||||||
;execvp
|
;execvp
|
||||||
;execvp_asuser
|
;execvp_asuser
|
||||||
;fcntl
|
fcntl
|
||||||
;flock
|
;flock
|
||||||
;fork
|
;fork
|
||||||
;fpathconf
|
;fpathconf
|
||||||
|
@ -114,7 +114,7 @@ _exit
|
||||||
;getservbyport
|
;getservbyport
|
||||||
;getsockname
|
;getsockname
|
||||||
;getsockopt
|
;getsockopt
|
||||||
;gettimeofday
|
gettimeofday
|
||||||
;gettzenv
|
;gettzenv
|
||||||
;getuid
|
;getuid
|
||||||
;getutxent
|
;getutxent
|
||||||
|
@ -203,12 +203,12 @@ _exit
|
||||||
;tcsendbreak
|
;tcsendbreak
|
||||||
;tcsetattr
|
;tcsetattr
|
||||||
;tcsetpgrp
|
;tcsetpgrp
|
||||||
;time
|
time
|
||||||
;times
|
;times
|
||||||
;ttyname
|
;ttyname
|
||||||
;uidtontsid
|
;uidtontsid
|
||||||
;umask
|
;umask
|
||||||
;uname
|
uname
|
||||||
;unlink
|
;unlink
|
||||||
;unlockpt
|
;unlockpt
|
||||||
;utime
|
;utime
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: util.c,v 1.1 1999/08/20 16:29:22 ea Exp $
|
/* $Id: util.c,v 1.2 1999/12/26 16:36:45 ea Exp $
|
||||||
*
|
*
|
||||||
* reactos/ntoskrnl/fs/util.c
|
* reactos/ntoskrnl/fs/util.c
|
||||||
*
|
*
|
||||||
|
@ -20,12 +20,9 @@
|
||||||
*
|
*
|
||||||
* RETURN VALUE
|
* RETURN VALUE
|
||||||
* FALSE if either (NtStatus >= STATUS_SUCCESS),
|
* FALSE if either (NtStatus >= STATUS_SUCCESS),
|
||||||
* STATUS_CRC_ERROR, 0xC000009C; TRUE otherwise.
|
* STATUS_CRC_ERROR, STATUS_DEVICE_DATA_ERROR;
|
||||||
|
* TRUE otherwise.
|
||||||
*
|
*
|
||||||
* NOTES
|
|
||||||
* By calling the function with all possible values,
|
|
||||||
* one unknown NTSTATUS value makes the function
|
|
||||||
* return TRUE (0xC000009C).
|
|
||||||
*/
|
*/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
STDCALL
|
STDCALL
|
||||||
|
@ -36,7 +33,7 @@ FsRtlIsTotalDeviceFailure (
|
||||||
return (
|
return (
|
||||||
(NT_SUCCESS(NtStatus))
|
(NT_SUCCESS(NtStatus))
|
||||||
|| (STATUS_CRC_ERROR == NtStatus)
|
|| (STATUS_CRC_ERROR == NtStatus)
|
||||||
|| (STATUS_UNKNOWN_C000009C == NtStatus) /* FIXME */
|
|| (STATUS_DEVICE_DATA_ERROR == NtStatus)
|
||||||
? FALSE
|
? FALSE
|
||||||
: TRUE
|
: TRUE
|
||||||
);
|
);
|
||||||
|
@ -57,13 +54,13 @@ FsRtlIsTotalDeviceFailure (
|
||||||
*
|
*
|
||||||
* RETURN VALUE
|
* RETURN VALUE
|
||||||
* TRUE if NtStatus is either STATUS_ACCESS_VIOLATION,
|
* TRUE if NtStatus is either STATUS_ACCESS_VIOLATION,
|
||||||
* STATUS_ILLEGAL_INSTRUCTION, 0x80000002, 0xC00000AA;
|
* STATUS_ILLEGAL_INSTRUCTION, STATUS_DATATYPE_MISALIGNMENT,
|
||||||
* FALSE otherwise.
|
* 0xC00000AA; FALSE otherwise.
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* By calling the function with all possible values,
|
* By calling the function with all possible values,
|
||||||
* two unknown NTSTATUS values make the function
|
* one unknown NTSTATUS value makes the function
|
||||||
* return 0x00 (0x80000002, 0xC00000AA).
|
* return 0x00 (0xC00000AA).
|
||||||
*/
|
*/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
STDCALL
|
STDCALL
|
||||||
|
@ -72,7 +69,7 @@ FsRtlIsNtstatusExpected (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
(STATUS_UNKNOWN_80000002 == NtStatus) /* FIXME */
|
(STATUS_DATATYPE_MISALIGNMENT == NtStatus)
|
||||||
|| (STATUS_ACCESS_VIOLATION == NtStatus)
|
|| (STATUS_ACCESS_VIOLATION == NtStatus)
|
||||||
|| (STATUS_ILLEGAL_INSTRUCTION == NtStatus)
|
|| (STATUS_ILLEGAL_INSTRUCTION == NtStatus)
|
||||||
|| (STATUS_UNKNOWN_C00000AA == NtStatus) /* FIXME */
|
|| (STATUS_UNKNOWN_C00000AA == NtStatus) /* FIXME */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: makefile_rex,v 1.41 1999/12/26 15:50:47 dwelch Exp $
|
# $Id: makefile_rex,v 1.42 1999/12/26 16:36:44 ea Exp $
|
||||||
#
|
#
|
||||||
# ReactOS Operating System
|
# ReactOS Operating System
|
||||||
#
|
#
|
||||||
|
@ -55,14 +55,22 @@ EX_OBJECTS = ex/work.o ex/fmutex.o ex/resource.o ex/time.o ex/interlck.o \
|
||||||
ex/callback.o ex/napi.o ex/power.o ex/sysinfo.o ex/locale.o \
|
ex/callback.o ex/napi.o ex/power.o ex/sysinfo.o ex/locale.o \
|
||||||
ex/stamp.o ex/init.o
|
ex/stamp.o ex/init.o
|
||||||
|
|
||||||
|
FS_OBJECTS = fs/mcb.o fs/util.o
|
||||||
|
|
||||||
SE_OBJECTS = se/semgr.o se/acl.o se/sid.o se/sd.o se/token.o se/luid.o
|
SE_OBJECTS = se/semgr.o se/acl.o se/sid.o se/sd.o se/token.o se/luid.o
|
||||||
|
|
||||||
|
SE_OBJECTS = se/semgr.o
|
||||||
|
|
||||||
CM_OBJECTS = cm/registry.o
|
CM_OBJECTS = cm/registry.o
|
||||||
|
|
||||||
DBG_OBJECTS = dbg/brkpoint.o dbg/errinfo.o dbg/print.o
|
DBG_OBJECTS = dbg/brkpoint.o dbg/errinfo.o dbg/print.o
|
||||||
|
|
||||||
LDR_OBJECTS = ldr/loader.o ldr/init.o ldr/syspath.o
|
LDR_OBJECTS = ldr/loader.o ldr/init.o ldr/syspath.o
|
||||||
|
|
||||||
|
NLS_OBJECTS = nls/nls.o
|
||||||
|
|
||||||
|
PO_OBJECTS = po/power.o
|
||||||
|
|
||||||
CC_OBJECTS = cc/cacheman.o cc/view.o
|
CC_OBJECTS = cc/cacheman.o cc/view.o
|
||||||
|
|
||||||
KD_OBJECTS = kd/kdebug.o
|
KD_OBJECTS = kd/kdebug.o
|
||||||
|
@ -96,6 +104,9 @@ objects/ps.o: $(PS_OBJECTS)
|
||||||
objects/ex.o: $(EX_OBJECTS)
|
objects/ex.o: $(EX_OBJECTS)
|
||||||
$(LD) -r $(EX_OBJECTS) -o objects/ex.o
|
$(LD) -r $(EX_OBJECTS) -o objects/ex.o
|
||||||
|
|
||||||
|
objects/fs.o: $(FS_OBJECTS)
|
||||||
|
$(LD) -r $(FS_OBJECTS) -o objects/fs.o
|
||||||
|
|
||||||
objects/se.o: $(SE_OBJECTS)
|
objects/se.o: $(SE_OBJECTS)
|
||||||
$(LD) -r $(SE_OBJECTS) -o objects/se.o
|
$(LD) -r $(SE_OBJECTS) -o objects/se.o
|
||||||
|
|
||||||
|
@ -108,9 +119,15 @@ objects/dbg.o: $(DBG_OBJECTS)
|
||||||
objects/ldr.o: $(LDR_OBJECTS)
|
objects/ldr.o: $(LDR_OBJECTS)
|
||||||
$(LD) -r $(LDR_OBJECTS) -o objects/ldr.o
|
$(LD) -r $(LDR_OBJECTS) -o objects/ldr.o
|
||||||
|
|
||||||
|
objects/nls.o: $(NLS_OBJECTS)
|
||||||
|
$(LD) -r $(NLS_OBJECTS) -o objects/nls.o
|
||||||
|
|
||||||
objects/nt.o: $(NT_OBJECTS)
|
objects/nt.o: $(NT_OBJECTS)
|
||||||
$(LD) -r $(NT_OBJECTS) -o objects/nt.o
|
$(LD) -r $(NT_OBJECTS) -o objects/nt.o
|
||||||
|
|
||||||
|
objects/po.o: $(PO_OBJECTS)
|
||||||
|
$(LD) -r $(PO_OBJECTS) -o objects/po.o
|
||||||
|
|
||||||
objects/cc.o: $(CC_OBJECTS)
|
objects/cc.o: $(CC_OBJECTS)
|
||||||
$(LD) -r $(CC_OBJECTS) -o objects/cc.o
|
$(LD) -r $(CC_OBJECTS) -o objects/cc.o
|
||||||
|
|
||||||
|
@ -123,19 +140,20 @@ $(TARGET).coff: $(TARGET).rc ../include/reactos/resource.h
|
||||||
OBJECTS = objects/hal.o objects/ke.o objects/rtl.o objects/mm.o \
|
OBJECTS = objects/hal.o objects/ke.o objects/rtl.o objects/mm.o \
|
||||||
objects/io.o objects/ob.o objects/ps.o objects/ex.o \
|
objects/io.o objects/ob.o objects/ps.o objects/ex.o \
|
||||||
objects/se.o objects/cm.o objects/dbg.o objects/nt.o \
|
objects/se.o objects/cm.o objects/dbg.o objects/nt.o \
|
||||||
objects/cc.o objects/kd.o objects/ldr.o \
|
objects/cc.o objects/kd.o objects/ldr.o objects/fs.o \
|
||||||
|
objects/po.o objects/nls.o \
|
||||||
$(TARGET).coff
|
$(TARGET).coff
|
||||||
|
|
||||||
ifeq ($(DOSCLI),yes)
|
ifeq ($(DOSCLI),yes)
|
||||||
CLEAN_FILES = objects\*.o cc\*.o cm\*.o dbg\*.o ex\*.o hal\x86\*.o io\*.o \
|
CLEAN_FILES = objects\*.o cc\*.o cm\*.o dbg\*.o ex\*.o hal\x86\*.o io\*.o \
|
||||||
ke\*.o ldr\*.o mm\*.o nt\*.o ob\*.o ps\*.o rtl\*.o se\*.o \
|
ke\*.o ldr\*.o mm\*.o nt\*.o ob\*.o ps\*.o rtl\*.o se\*.o \
|
||||||
ke\i386\*.o mm\i386\*.o \
|
ke\i386\*.o mm\i386\*.o fs\*.o po\*.o nls\*.o \
|
||||||
kd\*.o utils\export\export.exe $(TARGET).o $(TARGET).a junk.tmp \
|
kd\*.o utils\export\export.exe $(TARGET).o $(TARGET).a junk.tmp \
|
||||||
base.tmp temp.exp $(TARGET).exe $(TARGET).sym $(TARGET).coff
|
base.tmp temp.exp $(TARGET).exe $(TARGET).sym $(TARGET).coff
|
||||||
else
|
else
|
||||||
CLEAN_FILES = objects/*.o cc/*.o cm/*.o dbg/*.o ex/*.o hal/x86/*.o io/*.o \
|
CLEAN_FILES = objects/*.o cc/*.o cm/*.o dbg/*.o ex/*.o hal/x86/*.o io/*.o \
|
||||||
ke/*.o ldr/*.o mm/*.o nt/*.o ob/*.o ps/*.o rtl/*.o se/*.o \
|
ke/*.o ldr/*.o mm/*.o nt/*.o ob/*.o ps/*.o rtl/*.o se/*.o \
|
||||||
ke/i386/*.o mm/i386/*.o \
|
ke/i386/*.o mm/i386/*.o fs/*.o po/*.o nls/*.o \
|
||||||
kd/*.o utils/export/export $(TARGET).o $(TARGET).a junk.tmp \
|
kd/*.o utils/export/export $(TARGET).o $(TARGET).a junk.tmp \
|
||||||
base.tmp temp.exp $(TARGET).exe $(TARGET).sym $(TARGET).coff
|
base.tmp temp.exp $(TARGET).exe $(TARGET).sym $(TARGET).coff
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
/* $Id: nls.c,v 1.1 1999/08/20 16:30:16 ea Exp $
|
/* $Id: nls.c,v 1.2 1999/12/26 16:36:45 ea Exp $
|
||||||
*
|
*
|
||||||
* reactos/ntoskrnl/nls/nls.c
|
* reactos/ntoskrnl/nls/nls.c
|
||||||
*/
|
*/
|
||||||
#include <ntos.h>
|
#include <ntos.h>
|
||||||
|
|
||||||
|
#if 0
|
||||||
BYTE
|
BYTE
|
||||||
NlsLeadByteInfo = 0; /* ? */
|
NlsLeadByteInfo = 0; /* ? */
|
||||||
|
|
||||||
USHORT
|
BOOLEAN /* USHORT? */
|
||||||
NlsMbCodePageTag = 0;
|
NlsMbCodePageTag = 0;
|
||||||
|
|
||||||
USHORT
|
USHORT
|
||||||
|
@ -15,5 +16,6 @@ NlsOemLeadByteInfo = 0;
|
||||||
|
|
||||||
USHORT
|
USHORT
|
||||||
NlsAnsiCodePage = 0;
|
NlsAnsiCodePage = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
; $Id: ntoskrnl.def,v 1.32 1999/12/11 21:14:47 dwelch Exp $
|
; $Id: ntoskrnl.def,v 1.33 1999/12/26 16:36:44 ea Exp $
|
||||||
;
|
;
|
||||||
; reactos/ntoskrnl/ntoskrnl.def
|
; reactos/ntoskrnl/ntoskrnl.def
|
||||||
;
|
;
|
||||||
|
@ -75,6 +75,28 @@ ExReleaseResourceForThread
|
||||||
ExReleaseResourceForThreadLite
|
ExReleaseResourceForThreadLite
|
||||||
ExSystemTimeToLocalTime
|
ExSystemTimeToLocalTime
|
||||||
ExTryToAcquireResourceExclusiveLite
|
ExTryToAcquireResourceExclusiveLite
|
||||||
|
FsRtlAddLargeMcbEntry@28
|
||||||
|
FsRtlAddMcbEntry@16
|
||||||
|
FsRtlGetNextLargeMcbEntry@20
|
||||||
|
FsRtlGetNextMcbEntry@20
|
||||||
|
FsRtlInitializeLargeMcb@8
|
||||||
|
FsRtlInitializeMcb@8
|
||||||
|
FsRtlIsNtstatusExpected@4
|
||||||
|
FsRtlIsTotalDeviceFailure@4
|
||||||
|
FsRtlLookupLargeMcbEntry@32
|
||||||
|
FsRtlLookupLastLargeMcbEntry@12
|
||||||
|
FsRtlLookupLastMcbEntry@12
|
||||||
|
FsRtlLookupMcbEntry@20
|
||||||
|
FsRtlNormalizeNtstatus@8
|
||||||
|
FsRtlNumberOfRunsInLargeMcb@4
|
||||||
|
FsRtlNumberOfRunsInMcb@4
|
||||||
|
FsRtlRemoveLargeMcbEntry@20
|
||||||
|
FsRtlRemoveMcbEntry@12
|
||||||
|
FsRtlSplitLargeMcb@20
|
||||||
|
FsRtlTruncateLargeMcb@12
|
||||||
|
FsRtlTruncateMcb@8
|
||||||
|
FsRtlUninitializeLargeMcb@4
|
||||||
|
FsRtlUninitializeMcb@4
|
||||||
HalRegisterServiceTable
|
HalRegisterServiceTable
|
||||||
IoAllocateController
|
IoAllocateController
|
||||||
IoAttachDeviceToDeviceStack
|
IoAttachDeviceToDeviceStack
|
||||||
|
@ -175,6 +197,9 @@ NtUnlockFile@20
|
||||||
;NtVdmControl@8 <--- ?
|
;NtVdmControl@8 <--- ?
|
||||||
NtWaitForSingleObject@12
|
NtWaitForSingleObject@12
|
||||||
NtWriteFile@36
|
NtWriteFile@36
|
||||||
|
PoQueryPowerSequence@0
|
||||||
|
PoRequestPowerChange@12
|
||||||
|
PoSetDeviceIdleDetection@8
|
||||||
RtlAnsiCharToUnicodeChar@4
|
RtlAnsiCharToUnicodeChar@4
|
||||||
RtlAnsiStringToUnicodeSize@4
|
RtlAnsiStringToUnicodeSize@4
|
||||||
RtlAnsiStringToUnicodeString@12
|
RtlAnsiStringToUnicodeString@12
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
; $Id: ntoskrnl.edf,v 1.19 1999/12/11 21:14:48 dwelch Exp $
|
; $Id: ntoskrnl.edf,v 1.20 1999/12/26 16:36:44 ea Exp $
|
||||||
;
|
;
|
||||||
; reactos/ntoskrnl/ntoskrnl.def
|
; reactos/ntoskrnl/ntoskrnl.def
|
||||||
;
|
;
|
||||||
|
@ -75,6 +75,28 @@ ExReleaseResourceForThread
|
||||||
ExReleaseResourceForThreadLite
|
ExReleaseResourceForThreadLite
|
||||||
ExSystemTimeToLocalTime
|
ExSystemTimeToLocalTime
|
||||||
ExTryToAcquireResourceExclusiveLite
|
ExTryToAcquireResourceExclusiveLite
|
||||||
|
FsRtlAddLargeMcbEntry=FsRtlAddLargeMcbEntry@28
|
||||||
|
FsRtlAddMcbEntry=FsRtlAddMcbEntry@16
|
||||||
|
FsRtlGetNextLargeMcbEntry=FsRtlGetNextLargeMcbEntry@20
|
||||||
|
FsRtlGetNextMcbEntry=FsRtlGetNextMcbEntry@20
|
||||||
|
FsRtlInitializeLargeMcb=FsRtlInitializeLargeMcb@8
|
||||||
|
FsRtlInitializeMcb=FsRtlInitializeMcb@8
|
||||||
|
FsRtlIsNtstatusExpected=FsRtlIsNtstatusExpected@4
|
||||||
|
FsRtlIsTotalDeviceFailure=FsRtlIsTotalDeviceFailure@4
|
||||||
|
FsRtlLookupLargeMcbEntry=FsRtlLookupLargeMcbEntry@32
|
||||||
|
FsRtlLookupLastLargeMcbEntry=FsRtlLookupLastLargeMcbEntry@12
|
||||||
|
FsRtlLookupLastMcbEntry=FsRtlLookupLastMcbEntry@12
|
||||||
|
FsRtlLookupMcbEntry=FsRtlLookupMcbEntry@20
|
||||||
|
FsRtlNormalizeNtstatus=FsRtlNormalizeNtstatus@8
|
||||||
|
FsRtlNumberOfRunsInLargeMcb=FsRtlNumberOfRunsInLargeMcb@4
|
||||||
|
FsRtlNumberOfRunsInMcb=FsRtlNumberOfRunsInMcb@4
|
||||||
|
FsRtlRemoveLargeMcbEntry=FsRtlRemoveLargeMcbEntry@20
|
||||||
|
FsRtlRemoveMcbEntry=FsRtlRemoveMcbEntry@12
|
||||||
|
FsRtlSplitLargeMcb=FsRtlSplitLargeMcb@20
|
||||||
|
FsRtlTruncateLargeMcb=FsRtlTruncateLargeMcb@12
|
||||||
|
FsRtlTruncateMcb=FsRtlTruncateMcb@8
|
||||||
|
FsRtlUninitializeLargeMcb=FsRtlUninitializeLargeMcb@4
|
||||||
|
FsRtlUninitializeMcb=FsRtlUninitializeMcb@4
|
||||||
HalRegisterServiceTable
|
HalRegisterServiceTable
|
||||||
IoAllocateController
|
IoAllocateController
|
||||||
IoAttachDeviceToDeviceStack
|
IoAttachDeviceToDeviceStack
|
||||||
|
@ -175,6 +197,9 @@ NtUnlockFile=NtUnlockFile@20
|
||||||
;NtVdmControl@8 <--- ?
|
;NtVdmControl@8 <--- ?
|
||||||
NtWaitForSingleObject=NtWaitForSingleObject@12
|
NtWaitForSingleObject=NtWaitForSingleObject@12
|
||||||
NtWriteFile=NtWriteFile@36
|
NtWriteFile=NtWriteFile@36
|
||||||
|
PoQueryPowerSequence=PoQueryPowerSequence@0
|
||||||
|
PoRequestPowerChange=PoRequestPowerChange@12
|
||||||
|
PoSetDeviceIdleDetection=PoSetDeviceIdleDetection@8
|
||||||
RtlAnsiCharToUnicodeChar=RtlAnsiCharToUnicodeChar@4
|
RtlAnsiCharToUnicodeChar=RtlAnsiCharToUnicodeChar@4
|
||||||
RtlAnsiStringToUnicodeSize=RtlAnsiStringToUnicodeSize@4
|
RtlAnsiStringToUnicodeSize=RtlAnsiStringToUnicodeSize@4
|
||||||
RtlAnsiStringToUnicodeString=RtlAnsiStringToUnicodeString@12
|
RtlAnsiStringToUnicodeString=RtlAnsiStringToUnicodeString@12
|
||||||
|
|
|
@ -1,22 +1,21 @@
|
||||||
/* $Id: process.c,v 1.1 1999/07/17 23:10:31 ea Exp $
|
/* $Id: process.c,v 1.2 1999/12/26 16:36:46 ea Exp $
|
||||||
*
|
*
|
||||||
* reactos/subsys/psxss/api/process.c
|
* reactos/subsys/psxss/api/process.c
|
||||||
*
|
*
|
||||||
* ReactOS Operating System
|
* ReactOS Operating System
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
static
|
|
||||||
LPC_RETURN_CODE
|
LPC_RETURN_CODE
|
||||||
PSXSS_creat(
|
POSIX_PROCESS_Create (
|
||||||
PLPC_REQUEST_REPLY pLpcRequestReply
|
PLPC_REQUEST_REPLY pLpcRequestReply
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return LPC_ERROR_CALL_NOT_IMPLEMENTED;
|
return LPC_ERROR_CALL_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
|
||||||
LPC_RETURN_CODE
|
LPC_RETURN_CODE
|
||||||
PSXSS_terminate(
|
POSIX_PROCESS_Terminate (
|
||||||
PLPC_REQUEST_REPLY pLpcRequestReply
|
PLPC_REQUEST_REPLY pLpcRequestReply
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue