mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Reduce header complexity
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
This commit is contained in:
parent
96f979dfc5
commit
fa20edc44d
3057 changed files with 410 additions and 4398 deletions
|
@ -4,7 +4,6 @@
|
|||
#include "libc/nt/struct/iocounters.h"
|
||||
#include "libc/nt/struct/memorystatusex.h"
|
||||
#include "libc/nt/thunk/msabi.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -70,5 +69,4 @@ int32_t SetProcessWorkingSetSizeEx(int64_t hProcess,
|
|||
#include "libc/nt/thunk/accounting.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ACCOUNTING_H_ */
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
│ cosmopolitan § new technology » aol hacking ─╬─│┼
|
||||
╚────────────────────────────────────────────────────────────────────────────│*/
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int64_t GetShellWindow(void);
|
||||
|
@ -49,5 +48,4 @@ intptr_t CallNextHookEx(int64_t hhk, int nCode, uintptr_t wParam,
|
|||
intptr_t lParam);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_AUTOMATION_H_ */
|
||||
|
|
|
@ -26,12 +26,10 @@
|
|||
│ cosmopolitan § new technology » common dialogs ─╬─│┼
|
||||
╚────────────────────────────────────────────────────────────────────────────│*/
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
bool32 GetOpenFileName(struct NtOpenFilename *arg);
|
||||
bool32 GetSaveFileName(struct NtOpenFilename *arg);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_COMDLG_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_COMMS_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_COMMS_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -32,5 +31,4 @@ bool32 TransmitCommChar(int64_t hFile, char cChar);
|
|||
bool32 ClearCommBreak(int64_t hFile);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_COMMS_H_ */
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
|
||||
#define kNtAttachParentProcess -1u
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
bool32 WriteConsoleOutput(int64_t hConsoleOutput,
|
||||
|
@ -111,5 +110,4 @@ bool32 SetConsoleCursorInfo(
|
|||
#include "libc/nt/thunk/console.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_CONSOLE_H_ */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_CREATEFILE_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_CREATEFILE_H_
|
||||
#include "libc/nt/struct/securityattributes.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int64_t CreateFile(
|
||||
|
@ -21,5 +20,4 @@ int64_t CreateFileA(
|
|||
int GetNtOpenFlags(int, int, uint32_t *, uint32_t *, uint32_t *, uint32_t *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_CREATEFILE_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_DEBUG_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_DEBUG_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -37,5 +36,4 @@ int32_t ContinueDebugEvent(uint32_t dwProcessId, uint32_t dwThreadId,
|
|||
void FatalExit(int uExitCode);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_DEBUG_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_DLL_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_DLL_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -40,5 +39,4 @@ int32_t FreeLibrary(int64_t hLibModule);
|
|||
void *AddDllDirectory(const char16_t *NewDirectory);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_DLL_H_ */
|
||||
|
|
|
@ -116,7 +116,6 @@
|
|||
} \
|
||||
}
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 6 && !defined(__chibicc__) && \
|
||||
|
@ -565,5 +564,4 @@ typedef struct {
|
|||
} EFI_LOADED_IMAGE;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_EFI_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_COMPUTERNAMEFORMAT_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_COMPUTERNAMEFORMAT_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
#define kNtComputerNameNetBios 0
|
||||
#define kNtComputerNameDnsHostname 1
|
||||
|
@ -12,5 +11,4 @@
|
|||
#define kNtComputerNamePhysicalDnsFullyQualified 7
|
||||
#define kNtComputerName_MAX 8
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_COMPUTERNAMEFORMAT_H_ */
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_CW_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_CW_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
#define kNtCwUsedefault ((int)0x80000000)
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_CW_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_FILEINFOBYHANDLECLASS_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_FILEINFOBYHANDLECLASS_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
#define kNtFileBasicInfo 0 /* struct NtFileBasicInformation */
|
||||
#define kNtFileStandardInfo 1 /* struct NtFileStandardInformation */
|
||||
|
@ -27,5 +26,4 @@
|
|||
#define kNtFileDispositionInfoEx 22 /* win10+ */
|
||||
#define kNtFileRenameInfoEx 23 /* win10+ */
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_FILEINFOBYHANDLECLASS_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_NTFILLATTRIBUTE_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_NTFILLATTRIBUTE_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
#define kNtForegroundBlue 0x0001
|
||||
#define kNtForegroundGreen 0x0002
|
||||
|
@ -11,5 +10,4 @@
|
|||
#define kNtBackgroundRed 0x0040
|
||||
#define kNtBackgroundIntensity 0x0080
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NTFILLATTRIBUTE_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_IDC_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_IDC_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define kNtIdcArrow ((const char16_t *)32512)
|
||||
|
@ -20,5 +19,4 @@ COSMOPOLITAN_C_START_
|
|||
#define kNtIdcPerson ((const char16_t *)32672)
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_IDC_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_IMPORTOBJECTNAMETYPE_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_IMPORTOBJECTNAMETYPE_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
enum NtImportObjectNameType {
|
||||
IMPORT_OBJECT_ORDINAL,
|
||||
|
@ -10,5 +9,4 @@ enum NtImportObjectNameType {
|
|||
IMPORT_OBJECT_NAME_EXPORTAS
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_IMPORTOBJECTNAMETYPE_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_IMPORTOBJECTTYPE_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_IMPORTOBJECTTYPE_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
enum NtImportObjectType {
|
||||
IMPORT_OBJECT_CODE,
|
||||
|
@ -8,5 +7,4 @@ enum NtImportObjectType {
|
|||
IMPORT_OBJECT_CONST
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_IMPORTOBJECTTYPE_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_KWAITREASON_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_KWAITREASON_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
#define kNtExecutive 0
|
||||
#define kNtFreePage 1
|
||||
|
@ -31,5 +30,4 @@
|
|||
#define kNtWrKernel 26
|
||||
#define kNtMaximumWaitReason 27
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_KWAITREASON_H_ */
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_LOADLIBRARYSEARCH_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_LOADLIBRARYSEARCH_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
#define kNtLoadLibrarySearchApplicationDir 0x00000200u
|
||||
#define kNtLoadLibrarySearchSearchSystem32 0x00000800u
|
||||
#define kNtLoadLibrarySearchUserDirs 0x00000400u
|
||||
#define kNtLoadLibrarySearchDefaultDirs 0x00001000u
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_LOADLIBRARYSEARCH_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_MB_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_MB_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
#define kNtMbOk 0x00000000
|
||||
#define kNtMbOkcancel 0x00000001
|
||||
|
@ -40,5 +39,4 @@
|
|||
#define kNtMbModemask 0x00003000
|
||||
#define kNtMbMiscmask 0x0000C000
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_MB_H_ */
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_SECTIONINHERIT_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_SECTIONINHERIT_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
enum NtSectionInherit { kNtViewShare = 1, kNtViewUnmap = 2 };
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_SECTIONINHERIT_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_STATFS_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_STATFS_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define kNtFileCasePreservedNames 0x00000002
|
||||
|
@ -25,5 +24,4 @@ COSMOPOLITAN_C_START_
|
|||
#define kNtFileSupportsBlockRefcounting 0x08000000
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_STATFS_H_ */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_THREADACCESS_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_THREADACCESS_H_
|
||||
#include "libc/nt/enum/accessmask.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
#define kNtThreadTerminate 0x0001
|
||||
#define kNtThreadSuspendResume 0x0002
|
||||
|
@ -17,5 +16,4 @@
|
|||
#define kNtThreadResume 0x1000
|
||||
#define kNtThreadAllAccess (kNtStandardRightsRequired | kNtSynchronize | 0xFFFF)
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_THREADACCESS_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_THREADINFOCLASS_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_THREADINFOCLASS_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
enum NtThreadInfoClass {
|
||||
kNtThreadBasicInformation,
|
||||
|
@ -24,5 +23,4 @@ enum NtThreadInfoClass {
|
|||
kNtThreadInfoClass_MAX
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_THREADINFOCLASS_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_VERSION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_VERSION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
/**
|
||||
* Known versions of the New Technology executive.
|
||||
|
@ -17,5 +16,4 @@
|
|||
#define kNtVersionWindows2000 0x0500 /* the golden age */
|
||||
#define kNtVersionFuture 0x0b00
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_VERSION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_WSAID_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_WSAID_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define WSAID_WSAPOLL \
|
||||
|
@ -67,5 +66,4 @@ COSMOPOLITAN_C_START_
|
|||
}
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_WSAID_H_ */
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
│ cosmopolitan § new technology » events ─╬─│┼
|
||||
╚────────────────────────────────────────────────────────────────────────────│*/
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int32_t GetMessage(struct NtMsg *lpMsg, int64_t hWnd, uint32_t wMsgFilterMin,
|
||||
|
@ -67,5 +66,4 @@ int32_t ResetEvent(int64_t hEvent);
|
|||
int32_t PulseEvent(int64_t hEvent);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_EVENTS_H_ */
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#define kNtDuplicateCloseSource 1
|
||||
#define kNtDuplicateSameAccess 2
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
intptr_t LoadResource(int64_t hModule, int64_t hResInfo);
|
||||
|
@ -230,5 +229,4 @@ bool32 GetVolumeInformationByHandle(int64_t hFile,
|
|||
#include "libc/nt/thunk/files.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_FILES_H_ */
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#define kNtFileSkipCompletionPortOnSuccess 1
|
||||
#define kNtFileSkipSetEventOnHandle 2
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
typedef void (*NtOverlappedCompletionRoutine)(
|
||||
|
@ -73,5 +72,4 @@ bool32 WriteFileEx(int64_t hFile, const void *lpBuffer,
|
|||
NtOverlappedCompletionRoutine lpCompletionRoutine);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_IOCP_H_ */
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
#define kNtPipeClientEnd 0x00000000
|
||||
#define kNtPipeServerEnd 0x00000001
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
bool32 CreatePipe(int64_t *out_hReadPipe, int64_t *out_hWritePipe,
|
||||
|
@ -91,5 +90,4 @@ bool32 GetNamedPipeInfo(int64_t hNamedPipe, uint32_t *opt_out_lpFlags,
|
|||
uint32_t *opt_out_lpMaxInstances);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_IPC_H_ */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_IPHLPAPI_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_IPHLPAPI_H_
|
||||
#include "libc/nt/struct/ipadapteraddresses.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -33,5 +32,4 @@ uint32_t GetAdaptersAddresses(uint32_t Family, uint32_t Flags, void *Reserved,
|
|||
uint32_t *SizePointer);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_IPHLPAPI_H_ */
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
#define kNtNumaNoPreferredNode 0xffffffffu
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
void *LocalFree(void *hMem);
|
||||
|
@ -93,5 +92,4 @@ void *GlobalFree(void *hMem);
|
|||
#include "libc/nt/thunk/memory.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_MEMORY_H_ */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_MESSAGEBOX_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_MESSAGEBOX_H_
|
||||
#include "libc/nt/enum/dialogresult.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int MessageBox(int64_t hWnd, const char16_t *lpText, const char16_t *lpCaption,
|
||||
|
@ -11,5 +10,4 @@ int MessageBoxEx(int64_t hWnd, const char16_t *lpText,
|
|||
uint16_t wLanguageId);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_MESSAGEBOX_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_NT_DEBUG_H_
|
||||
#include "libc/nt/enum/status.h"
|
||||
#include "libc/nt/struct/context.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -36,5 +35,4 @@ COSMOPOLITAN_C_START_
|
|||
NtStatus NtContinue(struct NtContext *Context, int32_t TestAlert);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NT_DEBUG_H_ */
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include "libc/nt/struct/iostatusblock.h"
|
||||
#include "libc/nt/thunk/msabi.h"
|
||||
#include "libc/nt/typedef/ioapcroutine.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -94,5 +93,4 @@ NtStatus RtlNtStatusToDosError(NtStatus Status);
|
|||
#include "libc/nt/thunk/ntfile.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NT_FILE_H_ */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_NT_IPC_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_NT_IPC_H_
|
||||
#include "libc/nt/enum/status.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -46,5 +45,4 @@ NtStatus NtCreateNamedPipeFile(int64_t *out_FileHandle, uint32_t DesiredAccess,
|
|||
int64_t *opt_DefaultTimeout);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NT_IPC_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_NT_EVENT_H_
|
||||
#include "libc/nt/enum/status.h"
|
||||
#include "libc/nt/struct/objectattributes.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -44,5 +43,4 @@ NtStatus NtWaitForKeyedEvent(int64_t KeyedEventHandle, void *KeyValue,
|
|||
bool32 Alertable, int64_t *Timeout);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NT_EVENT_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_NT_LOADER_H_
|
||||
#include "libc/nt/enum/status.h"
|
||||
#include "libc/nt/typedef/wambda.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -50,5 +49,4 @@ NtStatus LdrGetDllHandle(const char16_t *opt_PathToFile, uint32_t opt_Unused,
|
|||
void **out_ModuleHandle);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NT_LOADER_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_NT_MEMORY_H_
|
||||
#include "libc/nt/enum/memoryinformationclass.h"
|
||||
#include "libc/nt/enum/status.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -53,5 +52,4 @@ NtStatus NtWriteVirtualMemory(int64_t ProcessHandle, void *BaseAddress,
|
|||
size_t *opt_out_ReturnLength);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NT_MEMORY_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_NT_PROCESS_H_
|
||||
#include "libc/nt/enum/status.h"
|
||||
#include "libc/nt/thunk/msabi.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -81,5 +80,4 @@ NtStatus RtlCloneUserProcess(
|
|||
#include "libc/nt/nt/thunk/process.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NT_PROCESS_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_NT_SECTIONS_H_
|
||||
#include "libc/nt/enum/status.h"
|
||||
#include "libc/nt/struct/objectattributes.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
NtStatus NtCreateSection(int64_t *out_SectionHandle, uint32_t DesiredAccess,
|
||||
|
@ -23,5 +22,4 @@ NtStatus NtQuerySection(int64_t SectionHandle, int SectionInformationClass,
|
|||
uint32_t *opt_out_ResultLength);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NT_SECTIONS_H_ */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_NT_SIGNING_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_NT_SIGNING_H_
|
||||
#include "libc/nt/enum/status.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -36,5 +35,4 @@ NtStatus CsrClientCallServer(void *inout_Message, void *unknown,
|
|||
uint32_t Opcode, uint32_t Size);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NT_SIGNING_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_NT_THREAD_H_
|
||||
#include "libc/nt/enum/status.h"
|
||||
#include "libc/nt/enum/threadinfoclass.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -73,5 +72,4 @@ NtStatus NtSetInformationThread(int64_t ThreadHandle,
|
|||
uint32_t ThreadInformationLength);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NT_THREAD_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_NT_THREAD_H_
|
||||
#include "libc/nt/enum/status.h"
|
||||
#include "libc/nt/thunk/msabi.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -39,5 +38,4 @@ NtStatus NtDelayExecution(bool32 alertable, int64_t *AbsCobolOrNegRelHectoNano);
|
|||
#include "libc/nt/nt/thunk/time.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NT_THREAD_H_ */
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include "libc/nt/thunk/msabi.h"
|
||||
#include "libc/nt/typedef/ioapcroutine.h"
|
||||
#include "libc/nt/typedef/pknormalroutine.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/* ░░░░
|
||||
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||||
|
@ -229,5 +228,4 @@ NtStatus RtlWalkHeap(int64_t heap, void *out_Info);
|
|||
#include "libc/nt/thunk/ntdll.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NTDLL_H_ */
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include "libc/nt/struct/paintstruct.h"
|
||||
#include "libc/nt/struct/rect.h"
|
||||
#include "libc/nt/thunk/msabi.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
/*───────────────────────────────────────────────────────────────────────────│─╗
|
||||
│ cosmopolitan § new technology » cpu graphics ─╬─│┼
|
||||
|
@ -42,5 +41,4 @@ bool32 RestoreDC(int64_t hdc, int nSavedDC);
|
|||
#include "libc/nt/thunk/paint.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_PAINT_H_ */
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
│ cosmopolitan § new technology » performance counters ─╬─│┼
|
||||
╚────────────────────────────────────────────────────────────────────────────│*/
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int PdhOpenQuery(const char16_t *opt_szDataSource, uint32_t *dwUserData,
|
||||
|
@ -44,5 +43,4 @@ int PdhGetFormattedCounterValue(int64_t hCounter, uint32_t dwFormat,
|
|||
struct NtPdhFmtCountervalue *out_pValue);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_PDH_H_ */
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
#define kNtSePrivilegeRemoved 0x00000004u
|
||||
#define kNtSePrivilegeUsedForAccess 0x80000000u
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
bool32 LookupPrivilegeValue(const char16_t *opt_lpSystemName,
|
||||
|
@ -48,5 +47,4 @@ bool32 ImpersonateSelf(int kNtSecurityImpersonationLevel);
|
|||
bool32 RevertToSelf(void);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_PRIVILEGE_H_ */
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
│ cosmopolitan § new technology » processes ─╬─│┼
|
||||
╚────────────────────────────────────────────────────────────────────────────│*/
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
bool32 CreateProcess(const char16_t *opt_lpApplicationName,
|
||||
|
@ -96,5 +95,4 @@ uint32_t GetModuleBaseName(int64_t hProcess, int64_t opt_hModule,
|
|||
#include "libc/nt/thunk/process.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_PROCESS_H_ */
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#define kNtHkeyDynData 0x80000006l
|
||||
#define kNtHkeyCurrentUserLocalSettings 0x80000007l
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int RegOpenKey(int64_t hKey, const char16_t *opt_lpSubKey,
|
||||
|
@ -133,5 +132,4 @@ int RegSetKeySecurity(int64_t hKey, uint32_t SecurityInformation,
|
|||
int RegUnLoadKey(int64_t hKey, const char16_t *lpSubKey);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_REGISTRY_H_ */
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#define GetCurrentProcess() -1
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
char16_t *GetCommandLine(void) nosideeffect;
|
||||
|
@ -49,5 +48,4 @@ uint32_t GetModuleFileName(int64_t hModule, char16_t *lpFilename,
|
|||
#include "libc/nt/thunk/runtime.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_RUNTIME_H_ */
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
│ cosmopolitan § new technology » signals ─╬─│┼
|
||||
╚────────────────────────────────────────────────────────────────────────────│*/
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
typedef int (*NtTopLevelExceptionFilter)(const struct NtExceptionPointers *);
|
||||
|
@ -51,5 +50,4 @@ NtTopLevelExceptionFilter SetUnhandledExceptionFilter(
|
|||
#include "libc/nt/thunk/signals.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_EXCEPTIONS_H_ */
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include "libc/nt/struct/procthreadattributelist.h"
|
||||
#include "libc/nt/struct/startupinfo.h"
|
||||
#include "libc/nt/thunk/msabi.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define kNtProcThreadAttributeParentProcess 0x00020000
|
||||
|
@ -25,5 +24,4 @@ void DeleteProcThreadAttributeList(
|
|||
#include "libc/nt/thunk/startupinfo.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_NTSTARTUPINFO_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_ACL_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_ACL_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtAcl {
|
||||
uint8_t AclRevision;
|
||||
|
@ -10,5 +9,4 @@ struct NtAcl {
|
|||
uint16_t Sbz2;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_ACL_H_ */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_AFD_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_AFD_H_
|
||||
#include "libc/nt/enum/status.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct NtAfdPollHandleInfo {
|
||||
|
@ -18,5 +17,4 @@ struct NtAfdPollInfo {
|
|||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_AFD_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_ANSISTRING_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_ANSISTRING_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtAnsiString {
|
||||
unsigned short Length;
|
||||
|
@ -8,5 +7,4 @@ struct NtAnsiString {
|
|||
char *Buffer;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_ANSISTRING_H_ */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_BYHANDLEFILEINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_BYHANDLEFILEINFORMATION_H_
|
||||
#include "libc/nt/struct/filetime.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtByHandleFileInformation {
|
||||
uint32_t dwFileAttributes; /* ←NtFileFlagAndAttributes */
|
||||
|
@ -16,5 +15,4 @@ struct NtByHandleFileInformation {
|
|||
uint32_t nFileIndexLow;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_BYHANDLEFILEINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CHARINFO_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_CHARINFO_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtCharInfo {
|
||||
union {
|
||||
|
@ -10,5 +9,4 @@ struct NtCharInfo {
|
|||
uint16_t Attributes;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CHARINFO_H_ */
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CLIENTID_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_CLIENTID_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtClientId {
|
||||
void *UniqueProcess;
|
||||
void *UniqueThread;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CLIENTID_H_ */
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLECURSORINFO_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLECURSORINFO_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtConsoleCursorInfo {
|
||||
uint32_t dwSize;
|
||||
bool32 bVisible;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLECURSORINFO_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESCREENBUFFERINFO_H_
|
||||
#include "libc/nt/struct/coord.h"
|
||||
#include "libc/nt/struct/smallrect.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtConsoleScreenBufferInfo {
|
||||
struct NtCoord dwSize;
|
||||
|
@ -12,5 +11,4 @@ struct NtConsoleScreenBufferInfo {
|
|||
struct NtCoord dwMaximumWindowSize;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESCREENBUFFERINFO_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESCREENBUFFERINFOEX_H_
|
||||
#include "libc/nt/struct/coord.h"
|
||||
#include "libc/nt/struct/smallrect.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtConsoleScreenBufferInfoEx {
|
||||
uint32_t cbSize; /* sizeof(struct NtConsoleScreenBufferInfoEx) */
|
||||
|
@ -16,5 +15,4 @@ struct NtConsoleScreenBufferInfoEx {
|
|||
uint32_t ColorTable[16]; /* 0x00BBGGRR */
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESCREENBUFFERINFOEX_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESELECTIONINFO_H_
|
||||
#include "libc/nt/struct/coord.h"
|
||||
#include "libc/nt/struct/smallrect.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtConsoleSelectionInfo {
|
||||
uint32_t dwFlags;
|
||||
|
@ -10,5 +9,4 @@ struct NtConsoleSelectionInfo {
|
|||
struct NtSmallRect srSelection;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESELECTIONINFO_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CONTEXT_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_CONTEXT_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtM128A {
|
||||
uint64_t Low;
|
||||
|
@ -55,5 +54,4 @@ struct NtContext {
|
|||
uint64_t LastExceptionFromRip;
|
||||
} forcealign(16);
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CONTEXT_H_ */
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_COORD_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_COORD_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtCoord {
|
||||
int16_t X;
|
||||
int16_t Y;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_COORD_H_ */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CRITICALSECTION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_CRITICALSECTION_H_
|
||||
#include "libc/nt/struct/criticalsectiondebug.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtCriticalSection {
|
||||
struct NtCriticalSectionDebug *DebugInfo;
|
||||
|
@ -12,5 +11,4 @@ struct NtCriticalSection {
|
|||
uintptr_t SpinCount;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CRITICALSECTION_H_ */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_NT_STRUCT_CRITICALSECTIONDEBUG_H_
|
||||
#include "libc/nt/struct/criticalsection.h"
|
||||
#include "libc/nt/struct/linkedlist.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtCriticalSectionDebug {
|
||||
uint16_t Type;
|
||||
|
@ -14,5 +13,4 @@ struct NtCriticalSectionDebug {
|
|||
uint32_t Spare[2];
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CRITICALSECTIONDEBUG_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_DRAWTEXTPARAMS_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_DRAWTEXTPARAMS_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct NtDrawTextParams {
|
||||
|
@ -12,5 +11,4 @@ struct NtDrawTextParams {
|
|||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_DRAWTEXTPARAMS_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_EDITMENU_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_EDITMENU_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtEditMenu {
|
||||
int64_t hmenu;
|
||||
|
@ -12,5 +11,4 @@ struct NtEditMenu {
|
|||
uint16_t idUndo;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_EDITMENU_H_ */
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_EXCEPTIONFRAME_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_EXCEPTIONFRAME_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtExceptionFrame {
|
||||
struct NtExceptionFrame *Prev;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_EXCEPTIONFRAME_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FDSET_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FDSET_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct NtFdSet {
|
||||
|
@ -9,5 +8,4 @@ struct NtFdSet {
|
|||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FDSET_H_ */
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEACCESSINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEACCESSINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileAccessInformation {
|
||||
uint32_t AccessFlags;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEACCESSINFORMATION_H_ */
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEALIGNMENTINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEALIGNMENTINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileAlignmentInformation {
|
||||
uint32_t AlignmentRequirement;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEALIGNMENTINFORMATION_H_ */
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include "libc/nt/struct/filenameinformation.h"
|
||||
#include "libc/nt/struct/filepositioninformation.h"
|
||||
#include "libc/nt/struct/filestandardinformation.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileAllInformation {
|
||||
struct NtFileBasicInformation BasicInformation;
|
||||
|
@ -23,5 +22,4 @@ struct NtFileAllInformation {
|
|||
struct NtFileNameInformation NameInformation;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEALLINFORMATION_H_ */
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEALLOCATIONINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEALLOCATIONINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileAllocationInformation {
|
||||
int64_t AllocationSize;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEALLOCATIONINFORMATION_H_ */
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEATTRIBUTETAGINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEATTRIBUTETAGINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileAttributeTagInformation {
|
||||
uint32_t FileAttributes;
|
||||
uint32_t ReparseTag;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEATTRIBUTETAGINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFO_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFO_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileBasicInfo {
|
||||
int64_t CreationTime; /* in 100ns units */
|
||||
|
@ -10,5 +9,4 @@ struct NtFileBasicInfo {
|
|||
uint32_t FileAttributes; /* kNtFileAttributeXXX */
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFO_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileBasicInformation {
|
||||
int64_t CreationTime; /* in 100ns units */
|
||||
|
@ -10,5 +9,4 @@ struct NtFileBasicInformation {
|
|||
uint32_t FileAttributes; /* kNtFileAttributeXXX */
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEBOTHDIRECTORYINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEBOTHDIRECTORYINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct NtFileBothDirectoryInformation {
|
||||
|
@ -21,5 +20,4 @@ struct NtFileBothDirectoryInformation {
|
|||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEBOTHDIRECTORYINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILECOMPRESSIONINFO_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILECOMPRESSIONINFO_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileCompressionInfo {
|
||||
int64_t CompressedFileSize;
|
||||
|
@ -11,5 +10,4 @@ struct NtFileCompressionInfo {
|
|||
uint8_t Reserved[3];
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILECOMPRESSIONINFO_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEDIRECTORYINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEDIRECTORYINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileDirectoryInformation {
|
||||
uint32_t NextEntryOffset;
|
||||
|
@ -16,5 +15,4 @@ struct NtFileDirectoryInformation {
|
|||
char16_t FileName[1];
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEDIRECTORYINFORMATION_H_ */
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEDISPOSITIONINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEDISPOSITIONINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileDispositionInformation {
|
||||
bool32 DoDeleteFile;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEDISPOSITIONINFORMATION_H_ */
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEEAINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEEAINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileEaInformation {
|
||||
uint32_t EaSize;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEEAINFORMATION_H_ */
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEENDOFFILEINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEENDOFFILEINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct FileEndOfFileInformation {
|
||||
int64_t EndOfFile;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEENDOFFILEINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEFSFULLSIZEINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEFSFULLSIZEINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct NtFileFsFullSizeInformation {
|
||||
|
@ -12,5 +11,4 @@ struct NtFileFsFullSizeInformation {
|
|||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEFSFULLSIZEINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLDIRECTORYINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLDIRECTORYINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileFullDirectoryInformation {
|
||||
uint32_t NextEntryOffset;
|
||||
|
@ -17,5 +16,4 @@ struct NtFileFullDirectoryInformation {
|
|||
char16_t FileName[1];
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLDIRECTORYINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLEAINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLEAINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileFullEaInformation {
|
||||
uint32_t NextEntryOffset;
|
||||
|
@ -10,5 +9,4 @@ struct NtFileFullEaInformation {
|
|||
char EaName[1];
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLEAINFORMATION_H_ */
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEINTERNALINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEINTERNALINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileInternalInformation {
|
||||
int64_t IndexNumber;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEINTERNALINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTQUERYINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTQUERYINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileMailslotQueryInformation {
|
||||
uint32_t MaximumMessageSize;
|
||||
|
@ -10,5 +9,4 @@ struct NtFileMailslotQueryInformation {
|
|||
int64_t ReadTimeout;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTQUERYINFORMATION_H_ */
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTSETINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTSETINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileMailslotSetInformation {
|
||||
int64_t ReadTimeout;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTSETINFORMATION_H_ */
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEMODEINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEMODEINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileModeInformation {
|
||||
uint32_t Mode;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEMODEINFORMATION_H_ */
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMEINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMEINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileNameInformation {
|
||||
uint32_t FileNameLength;
|
||||
char16_t FileName[1];
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMEINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMESINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMESINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileNamesInformation {
|
||||
uint32_t NextEntryOffset;
|
||||
|
@ -9,5 +8,4 @@ struct NtFileNamesInformation {
|
|||
char16_t FileName[1];
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMESINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILENETWORKOPENINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILENETWORKOPENINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileNetworkOpenInformation {
|
||||
int64_t CreationTime;
|
||||
|
@ -12,5 +11,4 @@ struct NtFileNetworkOpenInformation {
|
|||
uint32_t FileAttributes;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILENETWORKOPENINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEPIPELOCALINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEPIPELOCALINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFilePipeLocalInformation {
|
||||
uint32_t NamedPipeType;
|
||||
|
@ -15,5 +14,4 @@ struct NtFilePipeLocalInformation {
|
|||
uint32_t NamedPipeEnd;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEPIPELOCALINFORMATION_H_ */
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEPOSITIONINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEPOSITIONINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFilePositionInformation {
|
||||
int64_t CurrentByteOffset;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEPOSITIONINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILERENAMEINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILERENAMEINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileRenameInformation {
|
||||
bool32 Replace;
|
||||
|
@ -9,5 +8,4 @@ struct NtFileRenameInformation {
|
|||
char16_t FileName[1];
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILERENAMEINFORMATION_H_ */
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILESEGMENTELEMENT_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILESEGMENTELEMENT_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
union NtFileSegmentElement {
|
||||
void *Buffer;
|
||||
uint64_t Alignment;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILESEGMENTELEMENT_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILESTANDARDINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILESTANDARDINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileStandardInformation {
|
||||
int64_t AllocationSize;
|
||||
|
@ -10,5 +9,4 @@ struct NtFileStandardInformation {
|
|||
bool32 Directory;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILESTANDARDINFORMATION_H_ */
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILESTREAMINFORMATION_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILESTREAMINFORMATION_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileStreamInformation {
|
||||
uint32_t NextEntryOffset;
|
||||
|
@ -10,5 +9,4 @@ struct NtFileStreamInformation {
|
|||
char16_t StreamName[1];
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILESTREAMINFORMATION_H_ */
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_FILETIME_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_FILETIME_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct NtFileTime {
|
||||
uint32_t dwLowDateTime;
|
||||
uint32_t dwHighDateTime;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_FILETIME_H_ */
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue