diff --git a/Makefile b/Makefile index b02682a54..073ba83d3 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ # build/config.mk SHELL = build/bootstrap/cocmd.com -HOSTS ?= freebsd openbsd netbsd rhel7 rhel5 xnu win10 win10:31338 +HOSTS ?= freebsd openbsd netbsd rhel7 rhel5 xnu win10 win10:31336 MAKEFLAGS += -j --no-builtin-rules .SUFFIXES: diff --git a/README.md b/README.md index edd5cb1e8..7a270548e 100644 --- a/README.md +++ b/README.md @@ -246,12 +246,16 @@ gdb foo.com -ex 'add-symbol-file foo.com.dbg 0x401000' | AMD | K8 Venus | 2005 | | Intel | Core | 2006 | | Linux | 2.6.18 | 2007 | -| Windows | 8 | 2012 | +| Windows | 8 [1] | 2012 | | Mac OS X | 15.6 | 2018 | | OpenBSD | 6.4 | 2018 | | FreeBSD | 13 | 2020 | | NetBSD | 9.2 | 2021 | +[1] See our [vista branch](https://github.com/jart/cosmopolitan/tree/vista) + for a community supported version of Cosmopolitan that works on Windows + Vista and Windows 7. + ## Special Thanks Funding for this project is crowdsourced using diff --git a/libc/calls/__sig2.c b/libc/calls/__sig2.c index d784b23ed..cf820f486 100644 --- a/libc/calls/__sig2.c +++ b/libc/calls/__sig2.c @@ -108,7 +108,6 @@ static bool __sig_deliver(bool restartable, int sig, int si_code, STRACE("delivering %G", sig); // enter the signal - __sig_lock(); rva = __sighandrvas[sig]; flags = __sighandflags[sig]; if ((~flags & SA_NODEFER) || (flags & SA_RESETHAND)) { @@ -119,7 +118,6 @@ static bool __sig_deliver(bool restartable, int sig, int si_code, // signal handler. in that case you must use SA_NODEFER. __sighandrvas[sig] = (int32_t)(intptr_t)SIG_DFL; } - __sig_unlock(); // setup the somewhat expensive information args // only if they're requested by the user in sigaction() @@ -141,11 +139,9 @@ static bool __sig_deliver(bool restartable, int sig, int si_code, // since sigaction() is @asyncsignalsafe we only restore it if the // user didn't change it during the signal handler. we also don't // need to do anything if this was a oneshot signal or nodefer. - __sig_lock(); if (__sighandrvas[sig] == (int32_t)(intptr_t)SIG_DFL) { __sighandrvas[sig] = rva; } - __sig_unlock(); } if (!restartable) { @@ -228,12 +224,12 @@ textwindows int __sig_add(int tid, int sig, int si_code) { int rc; struct Signal *mem; if (1 <= sig && sig <= 64) { - __sig_lock(); if (__sighandrvas[sig] == (unsigned)(intptr_t)SIG_IGN) { STRACE("ignoring %G", sig); rc = 0; } else { STRACE("enqueuing %G", sig); + __sig_lock(); ++__sig_count; if ((mem = __sig_alloc())) { mem->tid = tid; @@ -245,8 +241,8 @@ textwindows int __sig_add(int tid, int sig, int si_code) { } else { rc = enomem(); } + __sig_unlock(); } - __sig_unlock(); } else { rc = einval(); } diff --git a/libc/calls/setrlimit.c b/libc/calls/setrlimit.c index 8d4c9381c..4ed2f38e4 100644 --- a/libc/calls/setrlimit.c +++ b/libc/calls/setrlimit.c @@ -1,3 +1,2677 @@ +#ifndef COSMOPOLITAN_NT_ERRORS_H_ +#define COSMOPOLITAN_NT_ERRORS_H_ + +#define kNtNoError 0 + +#define kNtErrorInsufficientBuffer 122 + +#define kNtErrorSuccess 0 +#define kNtErrorInvalidFunction 1 /* ENOSYS */ +#define kNtErrorFileNotFound 2 /* ENOENT */ +#define kNtErrorPathNotFound 3 /* ENOTDIR */ +#define kNtErrorTooManyOpenFiles 4 /* EMFILE */ +#define kNtErrorAccessDenied 5 /* EACCES */ +#define kNtErrorInvalidHandle 6 /* EBADF */ +#define kNtErrorArenaTrashed 7 +#define kNtErrorNotEnoughMemory 8 +#define kNtErrorInvalidBlock 9 +#define kNtErrorBadEnvironment 10 +#define kNtErrorBadFormat 11 +#define kNtErrorInvalidAccess 12 /* EPERM */ +#define kNtErrorInvalidData 13 +#define kNtErrorOutofmemory 14 /* ENOMEM */ +#define kNtErrorInvalidDrive 15 +#define kNtErrorCurrentDirectory 16 +#define kNtErrorNotSameDevice 17 +#define kNtErrorNoMoreFiles 18 +#define kNtErrorWriteProtect 19 +#define kNtErrorBadUnit 20 +#define kNtErrorNotReady 21 +#define kNtErrorBadCommand 22 +#define kNtErrorCrc 23 +#define kNtErrorBadLength 24 +#define kNtErrorSeek 25 /* ESPIPE */ +#define kNtErrorNotDosDisk 26 /* ENOTBLK */ +#define kNtErrorSectorNotFound 27 +#define kNtErrorOutOfPaper 28 +#define kNtErrorWriteFault 29 +#define kNtErrorReadFault 30 +#define kNtErrorGenFailure 31 +#define kNtErrorSharingViolation 32 +#define kNtErrorLockViolation 33 +#define kNtErrorWrongDisk 34 +#define kNtErrorSharingBufferExceeded 36 +#define kNtErrorHandleEof 38 /* w/ GetOverlappedResult() */ +#define kNtErrorHandleDiskFull 39 +#define kNtErrorNotSupported 50 +#define kNtErrorRemNotList 51 +#define kNtErrorDupName 52 +#define kNtErrorBadNetpath 53 +#define kNtErrorNetworkBusy 54 +#define kNtErrorDevNotExist 55 +#define kNtErrorTooManyCmds 56 +#define kNtErrorAdapHdwErr 57 +#define kNtErrorBadNetResp 58 +#define kNtErrorUnexpNetErr 59 +#define kNtErrorBadRemAdap 60 +#define kNtErrorPrintqFull 61 +#define kNtErrorNoSpoolSpace 62 +#define kNtErrorPrintCancelled 63 +#define kNtErrorNetnameDeleted 64 +#define kNtErrorNetworkAccessDenied 65 +#define kNtErrorBadDevType 66 +#define kNtErrorBadNetName 67 +#define kNtErrorTooManyNames 68 +#define kNtErrorTooManySess 69 +#define kNtErrorSharingPaused 70 +#define kNtErrorReqNotAccep 71 +#define kNtErrorRedirPaused 72 +#define kNtErrorFileExists 80 /* EEXIST */ +#define kNtErrorCannotMake 82 +#define kNtErrorFailI24 83 +#define kNtErrorOutOfStructures 84 +#define kNtErrorAlreadyAssigned 85 +#define kNtErrorInvalidPassword 86 +#define kNtErrorInvalidParameter 87 /* EINVAL */ +#define kNtErrorNetWriteFault 88 +#define kNtErrorNoProcSlots 89 +#define kNtErrorTooManySemaphores 100 +#define kNtErrorExclSemAlreadyOwned 101 +#define kNtErrorSemIsSet 102 +#define kNtErrorTooManySemRequests 103 +#define kNtErrorInvalidAtInterruptTime 104 +#define kNtErrorSemOwnerDied 105 /* EOWNERDEAD */ +#define kNtErrorSemUserLimit 106 +#define kNtErrorDiskChange 107 +#define kNtErrorDriveLocked 108 +#define kNtErrorBrokenPipe 109 /* EPIPE; happens on ReadFile() too */ +#define kNtErrorOpenFailed 110 +#define kNtErrorBufferOverflow 111 +#define kNtErrorDiskFull 112 /* ENOSPC */ +#define kNtErrorNoMoreSearchHandles 113 +#define kNtErrorInvalidTargetHandle 114 /* EBADF */ +#define kNtErrorInvalidCategory 117 +#define kNtErrorInvalidVerifySwitch 118 +#define kNtErrorBadDriverLevel 119 +#define kNtErrorCallNotImplemented 120 +#define kNtErrorSemTimeout 121 +#define kNtErrorInsufficientBuffer 122 +#define kNtErrorInvalidName 123 +#define kNtErrorInvalidLevel 124 +#define kNtErrorNoVolumeLabel 125 +#define kNtErrorModNotFound 126 +#define kNtErrorProcNotFound 127 +#define kNtErrorWaitNoChildren 128 /* ECHILD */ +#define kNtErrorChildNotComplete 129 +#define kNtErrorDirectAccessHandle 130 /* EBADF */ +#define kNtErrorNegativeSeek 131 +#define kNtErrorSeekOnDevice 132 +#define kNtErrorIsJoinTarget 133 +#define kNtErrorIsJoined 134 +#define kNtErrorIsSubsted 135 +#define kNtErrorNotJoined 136 +#define kNtErrorNotSubsted 137 +#define kNtErrorJoinToJoin 138 +#define kNtErrorSubstToSubst 139 +#define kNtErrorJoinToSubst 140 +#define kNtErrorSubstToJoin 141 +#define kNtErrorBusyDrive 142 +#define kNtErrorSameDrive 143 +#define kNtErrorDirNotRoot 144 +#define kNtErrorDirNotEmpty 145 +#define kNtErrorIsSubstPath 146 +#define kNtErrorIsJoinPath 147 +#define kNtErrorPathBusy 148 /* ETXTBSY */ +#define kNtErrorIsSubstTarget 149 +#define kNtErrorSystemTrace 150 +#define kNtErrorInvalidEventCount 151 +#define kNtErrorTooManyMuxwaiters 152 +#define kNtErrorInvalidListFormat 153 +#define kNtErrorLabelTooLong 154 +#define kNtErrorTooManyTcbs 155 +#define kNtErrorSignalRefused 156 +#define kNtErrorDiscarded 157 +#define kNtErrorNotLocked 158 /* ENOLCK */ +#define kNtErrorBadThreadidAddr 159 +#define kNtErrorBadArguments 160 +#define kNtErrorBadPathname 161 +#define kNtErrorSignalPending 162 +#define kNtErrorMaxThrdsReached 164 +#define kNtErrorLockFailed 167 +#define kNtErrorBusy 170 /* EBUSY */ +#define kNtErrorDeviceSupportInProgress 171 +#define kNtErrorCancelViolation 173 +#define kNtErrorAtomicLocksNotSupported 174 +#define kNtErrorInvalidSegmentNumber 180 +#define kNtErrorInvalidOrdinal 182 +#define kNtErrorAlreadyExists 183 /* EEXIST */ +#define kNtErrorInvalidFlagNumber 186 +#define kNtErrorSemNotFound 187 +#define kNtErrorInvalidStartingCodeseg 188 +#define kNtErrorInvalidStackseg 189 +#define kNtErrorInvalidModuletype 190 +#define kNtErrorInvalidExeSignature 191 +#define kNtErrorExeMarkedInvalid 192 +#define kNtErrorBadExeFormat 193 /* ENOEXEC */ +#define kNtErrorIteratedDataExceeds_64k 194 +#define kNtErrorInvalidMinallocsize 195 +#define kNtErrorDynlinkFromInvalidRing 196 +#define kNtErrorIoplNotEnabled 197 +#define kNtErrorInvalidSegdpl 198 +#define kNtErrorAutodatasegExceeds_64k 199 +#define kNtErrorRing2segMustBeMovable 200 +#define kNtErrorRelocChainXeedsSeglim 201 +#define kNtErrorInfloopInRelocChain 202 +#define kNtErrorEnvvarNotFound 203 +#define kNtErrorNoSignalSent 205 +#define kNtErrorFilenameExcedRange 206 /* ENAMETOOLONG */ +#define kNtErrorRing2StackInUse 207 +#define kNtErrorMetaExpansionTooLong 208 +#define kNtErrorInvalidSignalNumber 209 +#define kNtErrorThread_1Inactive 210 +#define kNtErrorLocked 212 +#define kNtErrorTooManyModules 214 +#define kNtErrorNestingNotAllowed 215 +#define kNtErrorExeMachineTypeMismatch 216 +#define kNtErrorExeCannotModifySignedBinary 217 +#define kNtErrorExeCannotModifyStrongSignedBinary 218 +#define kNtErrorFileCheckedOut 220 +#define kNtErrorCheckoutRequired 221 +#define kNtErrorBadFileType 222 +#define kNtErrorFileTooLarge 223 /* EFBIG */ +#define kNtErrorFormsAuthRequired 224 +#define kNtErrorVirusInfected 225 +#define kNtErrorVirusDeleted 226 +#define kNtErrorPipeLocal 229 +#define kNtErrorBadPipe 230 +#define kNtErrorPipeBusy 231 +#define kNtErrorNoData 232 +#define kNtErrorPipeNotConnected 233 +#define kNtErrorMoreData 234 +#define kNtErrorNoWorkDone 235 +#define kNtErrorVcDisconnected 240 +#define kNtErrorInvalidEaName 254 +#define kNtErrorEaListInconsistent 255 +#define kNtErrorNoMoreItems 259 +#define kNtErrorCannotCopy 266 +#define kNtErrorDirectory 267 /* EISDIR */ +#define kNtErrorEasDidntFit 275 +#define kNtErrorEaFileCorrupt 276 +#define kNtErrorEaTableFull 277 +#define kNtErrorInvalidEaHandle 278 +#define kNtErrorEasNotSupported 282 +#define kNtErrorNotOwner 288 +#define kNtErrorTooManyPosts 298 +#define kNtErrorPartialCopy 299 +#define kNtErrorOplockNotGranted 300 +#define kNtErrorInvalidOplockProtocol 301 +#define kNtErrorDiskTooFragmented 302 +#define kNtErrorDeletePending 303 +#define kNtErrorIncompatibleWithGlobalShortNameRegistrySetting 304 +#define kNtErrorShortNamesNotEnabledOnVolume 305 +#define kNtErrorSecurityStreamIsInconsistent 306 +#define kNtErrorInvalidLockRange 307 +#define kNtErrorImageSubsystemNotPresent 308 +#define kNtErrorNotificationGuidAlreadyDefined 309 +#define kNtErrorInvalidExceptionHandler 310 +#define kNtErrorDuplicatePrivileges 311 +#define kNtErrorNoRangesProcessed 312 +#define kNtErrorNotAllowedOnSystemFile 313 +#define kNtErrorDiskResourcesExhausted 314 +#define kNtErrorInvalidToken 315 +#define kNtErrorDeviceFeatureNotSupported 316 +#define kNtErrorMrMidNotFound 317 +#define kNtErrorScopeNotFound 318 +#define kNtErrorUndefinedScope 319 +#define kNtErrorInvalidCap 320 +#define kNtErrorDeviceUnreachable 321 +#define kNtErrorDeviceNoResources 322 +#define kNtErrorDataChecksumError 323 +#define kNtErrorIntermixedKernelEaOperation 324 +#define kNtErrorFileLevelTrimNotSupported 326 +#define kNtErrorOffsetAlignmentViolation 327 +#define kNtErrorInvalidFieldInParameterList 328 +#define kNtErrorOperationInProgress 329 +#define kNtErrorBadDevicePath 330 +#define kNtErrorTooManyDescriptors 331 /* ENFILE */ +#define kNtErrorScrubDataDisabled 332 +#define kNtErrorNotRedundantStorage 333 +#define kNtErrorResidentFileNotSupported 334 +#define kNtErrorCompressedFileNotSupported 335 +#define kNtErrorDirectoryNotSupported 336 +#define kNtErrorNotReadFromCopy 337 +#define kNtErrorFtWriteFailure 338 +#define kNtErrorFtDiScanRequired 339 +#define kNtErrorInvalidKernelInfoVersion 340 +#define kNtErrorInvalidPepInfoVersion 341 +#define kNtErrorObjectNotExternallyBacked 342 +#define kNtErrorExternalBackingProviderUnknown 343 +#define kNtErrorCompressionNotBeneficial 344 +#define kNtErrorStorageTopologyIdMismatch 345 +#define kNtErrorBlockedByParentalControls 346 +#define kNtErrorBlockTooManyReferences 347 +#define kNtErrorMarkedToDisallowWrites 348 +#define kNtErrorEnclaveFailure 349 +#define kNtErrorFailNoactionReboot 350 +#define kNtErrorFailShutdown 351 +#define kNtErrorFailRestart 352 +#define kNtErrorMaxSessionsReached 353 +#define kNtErrorNetworkAccessDeniedEdp 354 +#define kNtErrorDeviceHintNameBufferTooSmall 355 +#define kNtErrorEdpPolicyDeniesOperation 356 +#define kNtErrorEdpDplPolicyCantBeSatisfied 357 +#define kNtErrorCloudFileSyncRootMetadataCorrupt 358 +#define kNtErrorDeviceInMaintenance 359 +#define kNtErrorNotSupportedOnDax 360 +#define kNtErrorDaxMappingExists 361 +#define kNtErrorCloudFileProviderNotRunning 362 +#define kNtErrorCloudFileMetadataCorrupt 363 +#define kNtErrorCloudFileMetadataTooLarge 364 +#define kNtErrorCloudFilePropertyBlobTooLarge 365 +#define kNtErrorCloudFilePropertyBlobChecksumMismatch 366 +#define kNtErrorChildProcessBlocked 367 +#define kNtErrorStorageLostDataPersistence 368 +#define kNtErrorFileSystemVirtualizationUnavailable 369 +#define kNtErrorFileSystemVirtualizationMetadataCorrupt 370 +#define kNtErrorFileSystemVirtualizationBusy 371 +#define kNtErrorFileSystemVirtualizationProviderUnknown 372 +#define kNtErrorGdiHandleLeak 373 +#define kNtErrorCloudFileTooManyPropertyBlobs 374 +#define kNtErrorCloudFilePropertyVersionNotSupported 375 +#define kNtErrorNotACloudFile 376 +#define kNtErrorCloudFileNotInSync 377 +#define kNtErrorCloudFileAlreadyConnected 378 +#define kNtErrorCloudFileNotSupported 379 +#define kNtErrorCloudFileInvalidRequest 380 +#define kNtErrorCloudFileReadOnlyVolume 381 +#define kNtErrorCloudFileConnectedProviderOnly 382 +#define kNtErrorCloudFileValidationFailed 383 +#define kNtErrorSmb1NotAvailable 384 +#define kNtErrorFileSystemVirtualizationInvalidOperation 385 +#define kNtErrorCloudFileAuthenticationFailed 386 +#define kNtErrorCloudFileInsufficientResources 387 +#define kNtErrorCloudFileNetworkUnavailable 388 +#define kNtErrorCloudFileUnsuccessful 389 +#define kNtErrorCloudFileNotUnderSyncRoot 390 +#define kNtErrorCloudFileInUse 391 +#define kNtErrorCloudFilePinned 392 +#define kNtErrorCloudFileRequestAborted 393 +#define kNtErrorCloudFilePropertyCorrupt 394 +#define kNtErrorCloudFileAccessDenied 395 +#define kNtErrorCloudFileIncompatibleHardlinks 396 +#define kNtErrorCloudFilePropertyLockConflict 397 +#define kNtErrorCloudFileRequestCanceled 398 +#define kNtErrorExternalSyskeyNotSupported 399 +#define kNtErrorThreadModeAlreadyBackground 400 +#define kNtErrorThreadModeNotBackground 401 +#define kNtErrorProcessModeAlreadyBackground 402 +#define kNtErrorProcessModeNotBackground 403 +#define kNtErrorCloudFileProviderTerminated 404 +#define kNtErrorNotACloudSyncRoot 405 +#define kNtErrorFileProtectedUnderDpl 406 +#define kNtErrorVolumeNotClusterAligned 407 +#define kNtErrorNoPhysicallyAlignedFreeSpaceFound 408 +#define kNtErrorAppxFileNotEncrypted 409 +#define kNtErrorRwrawEncryptedFileNotEncrypted 410 +#define kNtErrorRwrawEncryptedInvalidEdatainfoFileoffset 411 +#define kNtErrorRwrawEncryptedInvalidEdatainfoFilerange 412 +#define kNtErrorRwrawEncryptedInvalidEdatainfoParameter 413 +#define kNtErrorLinuxSubsystemNotPresent 414 +#define kNtErrorCapauthzNotDevunlocked 450 +#define kNtErrorCapauthzChangeType 451 +#define kNtErrorCapauthzNotProvisioned 452 +#define kNtErrorCapauthzNotAuthorized 453 +#define kNtErrorCapauthzNoPolicy 454 +#define kNtErrorCapauthzDbCorrupted 455 +#define kNtErrorCapauthzSccdInvalidCatalog 456 +#define kNtErrorCapauthzSccdNoAuthEntity 457 +#define kNtErrorCapauthzSccdParseError 458 +#define kNtErrorCapauthzSccdDevModeRequired 459 +#define kNtErrorCapauthzSccdNoCapabilityMatch 460 +#define kNtErrorPnpQueryRemoveDeviceTimeout 480 +#define kNtErrorPnpQueryRemoveRelatedDeviceTimeout 481 +#define kNtErrorPnpQueryRemoveUnrelatedDeviceTimeout 482 +#define kNtErrorDeviceHardwareError 483 +#define kNtErrorInvalidAddress 487 /* EFAULT */ +#define kNtErrorVrfCfgEnabled 1183 +#define kNtErrorPartitionTerminating 1184 +#define kNtErrorUserProfileLoad 500 +#define kNtErrorArithmeticOverflow 534 /* EOVERFLOW */ +#define kNtErrorPipeConnected 535 +#define kNtErrorPipeListening 536 +#define kNtErrorVerifierStop 537 +#define kNtErrorAbiosError 538 +#define kNtErrorWx86Warning 539 +#define kNtErrorWx86Error 540 +#define kNtErrorTimerNotCanceled 541 +#define kNtErrorUnwind 542 +#define kNtErrorBadStack 543 +#define kNtErrorInvalidUnwindTarget 544 +#define kNtErrorInvalidPortAttributes 545 +#define kNtErrorPortMessageTooLong 546 +#define kNtErrorInvalidQuotaLower 547 +#define kNtErrorDeviceAlreadyAttached 548 +#define kNtErrorInstructionMisalignment 549 +#define kNtErrorProfilingNotStarted 550 +#define kNtErrorProfilingNotStopped 551 +#define kNtErrorCouldNotInterpret 552 +#define kNtErrorProfilingAtLimit 553 +#define kNtErrorCantWait 554 +#define kNtErrorCantTerminateSelf 555 +#define kNtErrorUnexpectedMmCreateErr 556 +#define kNtErrorUnexpectedMmMapError 557 +#define kNtErrorUnexpectedMmExtendErr 558 +#define kNtErrorBadFunctionTable 559 +#define kNtErrorNoGuidTranslation 560 +#define kNtErrorInvalidLdtSize 561 +#define kNtErrorInvalidLdtOffset 563 +#define kNtErrorInvalidLdtDescriptor 564 +#define kNtErrorTooManyThreads 565 +#define kNtErrorThreadNotInProcess 566 /* ESRCH */ +#define kNtErrorPagefileQuotaExceeded 567 +#define kNtErrorLogonServerConflict 568 +#define kNtErrorSynchronizationRequired 569 +#define kNtErrorNetOpenFailed 570 +#define kNtErrorIoPrivilegeFailed 571 +#define kNtErrorControlCExit 572 +#define kNtErrorMissingSystemfile 573 +#define kNtErrorUnhandledException 574 +#define kNtErrorAppInitFailure 575 +#define kNtErrorPagefileCreateFailed 576 +#define kNtErrorInvalidImageHash 577 +#define kNtErrorNoPagefile 578 +#define kNtErrorIllegalFloatContext 579 +#define kNtErrorNoEventPair 580 +#define kNtErrorDomainCtrlrConfigError 581 +#define kNtErrorIllegalCharacter 582 /* EILSEQ */ +#define kNtErrorUndefinedCharacter 583 +#define kNtErrorFloppyVolume 584 +#define kNtErrorBiosFailedToConnectInterrupt 585 +#define kNtErrorBackupController 586 +#define kNtErrorMutantLimitExceeded 587 +#define kNtErrorFsDriverRequired 588 +#define kNtErrorCannotLoadRegistryFile 589 +#define kNtErrorDebugAttachFailed 590 +#define kNtErrorSystemProcessTerminated 591 +#define kNtErrorDataNotAccepted 592 +#define kNtErrorVdmHardError 593 +#define kNtErrorDriverCancelTimeout 594 +#define kNtErrorReplyMessageMismatch 595 +#define kNtErrorLostWritebehindData 596 +#define kNtErrorClientServerParametersInvalid 597 +#define kNtErrorNotTinyStream 598 +#define kNtErrorStackOverflowRead 599 +#define kNtErrorConvertToLarge 600 +#define kNtErrorFoundOutOfScope 601 +#define kNtErrorAllocateBucket 602 +#define kNtErrorMarshallOverflow 603 +#define kNtErrorInvalidVariant 604 +#define kNtErrorBadCompressionBuffer 605 +#define kNtErrorAuditFailed 606 +#define kNtErrorTimerResolutionNotSet 607 +#define kNtErrorInsufficientLogonInfo 608 +#define kNtErrorBadDllEntrypoint 609 +#define kNtErrorBadServiceEntrypoint 610 +#define kNtErrorIpAddressConflict1 611 +#define kNtErrorIpAddressConflict2 612 +#define kNtErrorRegistryQuotaLimit 613 +#define kNtErrorNoCallbackActive 614 +#define kNtErrorPwdTooShort 615 +#define kNtErrorPwdTooRecent 616 +#define kNtErrorPwdHistoryConflict 617 +#define kNtErrorUnsupportedCompression 618 +#define kNtErrorInvalidHwProfile 619 +#define kNtErrorInvalidPlugplayDevicePath 620 +#define kNtErrorQuotaListInconsistent 621 +#define kNtErrorEvaluationExpiration 622 +#define kNtErrorIllegalDllRelocation 623 +#define kNtErrorDllInitFailedLogoff 624 +#define kNtErrorValidateContinue 625 +#define kNtErrorNoMoreMatches 626 +#define kNtErrorRangeListConflict 627 +#define kNtErrorServerSidMismatch 628 +#define kNtErrorCantEnableDenyOnly 629 +#define kNtErrorFloatMultipleFaults 630 +#define kNtErrorFloatMultipleTraps 631 +#define kNtErrorNointerface 632 +#define kNtErrorDriverFailedSleep 633 +#define kNtErrorCorruptSystemFile 634 +#define kNtErrorCommitmentMinimum 635 +#define kNtErrorPnpRestartEnumeration 636 +#define kNtErrorSystemImageBadSignature 637 +#define kNtErrorPnpRebootRequired 638 +#define kNtErrorInsufficientPower 639 +#define kNtErrorMultipleFaultViolation 640 +#define kNtErrorSystemShutdown 641 +#define kNtErrorPortNotSet 642 +#define kNtErrorDsVersionCheckFailure 643 +#define kNtErrorRangeNotFound 644 +#define kNtErrorNotSafeModeDriver 646 +#define kNtErrorFailedDriverEntry 647 +#define kNtErrorDeviceEnumerationError 648 +#define kNtErrorMountPointNotResolved 649 +#define kNtErrorInvalidDeviceObjectParameter 650 +#define kNtErrorMcaOccured 651 +#define kNtErrorDriverDatabaseError 652 +#define kNtErrorSystemHiveTooLarge 653 +#define kNtErrorDriverFailedPriorUnload 654 +#define kNtErrorVolsnapPrepareHibernate 655 +#define kNtErrorHibernationFailure 656 +#define kNtErrorPwdTooLong 657 +#define kNtErrorFileSystemLimitation 665 +#define kNtErrorAssertionFailure 668 +#define kNtErrorAcpiError 669 +#define kNtErrorWowAssertion 670 +#define kNtErrorPnpBadMpsTable 671 +#define kNtErrorPnpTranslationFailed 672 +#define kNtErrorPnpIrqTranslationFailed 673 +#define kNtErrorPnpInvalidId 674 +#define kNtErrorWakeSystemDebugger 675 +#define kNtErrorHandlesClosed 676 +#define kNtErrorExtraneousInformation 677 +#define kNtErrorRxactCommitNecessary 678 +#define kNtErrorMediaCheck 679 +#define kNtErrorGuidSubstitutionMade 680 +#define kNtErrorStoppedOnSymlink 681 +#define kNtErrorLongjump 682 +#define kNtErrorPlugplayQueryVetoed 683 +#define kNtErrorUnwindConsolidate 684 +#define kNtErrorRegistryHiveRecovered 685 +#define kNtErrorDllMightBeInsecure 686 +#define kNtErrorDllMightBeIncompatible 687 +#define kNtErrorDbgExceptionNotHandled 688 +#define kNtErrorDbgReplyLater 689 +#define kNtErrorDbgUnableToProvideHandle 690 +#define kNtErrorDbgTerminateThread 691 +#define kNtErrorDbgTerminateProcess 692 +#define kNtErrorDbgControlC 693 +#define kNtErrorDbgPrintexceptionC 694 +#define kNtErrorDbgRipexception 695 +#define kNtErrorDbgControlBreak 696 +#define kNtErrorDbgCommandException 697 +#define kNtErrorObjectNameExists 698 +#define kNtErrorThreadWasSuspended 699 +#define kNtErrorImageNotAtBase 700 +#define kNtErrorRxactStateCreated 701 +#define kNtErrorSegmentNotification 702 +#define kNtErrorBadCurrentDirectory 703 +#define kNtErrorFtReadRecoveryFromBackup 704 +#define kNtErrorFtWriteRecovery 705 +#define kNtErrorImageMachineTypeMismatch 706 +#define kNtErrorReceivePartial 707 +#define kNtErrorReceiveExpedited 708 +#define kNtErrorReceivePartialExpedited 709 +#define kNtErrorEventDone 710 +#define kNtErrorEventPending 711 +#define kNtErrorCheckingFileSystem 712 +#define kNtErrorFatalAppExit 713 +#define kNtErrorPredefinedHandle 714 +#define kNtErrorWasUnlocked 715 +#define kNtErrorServiceNotification 716 +#define kNtErrorWasLocked 717 +#define kNtErrorLogHardError 718 +#define kNtErrorAlreadyWin32 719 +#define kNtErrorImageMachineTypeMismatchExe 720 +#define kNtErrorNoYieldPerformed 721 +#define kNtErrorTimerResumeIgnored 722 +#define kNtErrorArbitrationUnhandled 723 +#define kNtErrorCardbusNotSupported 724 +#define kNtErrorMpProcessorMismatch 725 +#define kNtErrorHibernated 726 +#define kNtErrorResumeHibernation 727 +#define kNtErrorFirmwareUpdated 728 +#define kNtErrorDriversLeakingLockedPages 729 +#define kNtErrorWakeSystem 730 +#define kNtErrorWait_1 731 +#define kNtErrorWait_2 732 +#define kNtErrorWait_3 733 +#define kNtErrorWait_63 734 +#define kNtErrorAbandonedWait_0 735 +#define kNtErrorAbandonedWait_63 736 +#define kNtErrorUserApc 737 +#define kNtErrorKernelApc 738 +#define kNtErrorAlerted 739 +#define kNtErrorElevationRequired 740 +#define kNtErrorReparse 741 +#define kNtErrorOplockBreakInProgress 742 +#define kNtErrorVolumeMounted 743 +#define kNtErrorRxactCommitted 744 +#define kNtErrorNotifyCleanup 745 +#define kNtErrorPrimaryTransportConnectFailed 746 +#define kNtErrorPageFaultTransition 747 +#define kNtErrorPageFaultDemandZero 748 +#define kNtErrorPageFaultCopyOnWrite 749 +#define kNtErrorPageFaultGuardPage 750 +#define kNtErrorPageFaultPagingFile 751 +#define kNtErrorCachePageLocked 752 +#define kNtErrorCrashDump 753 +#define kNtErrorBufferAllZeros 754 +#define kNtErrorReparseObject 755 +#define kNtErrorResourceRequirementsChanged 756 +#define kNtErrorTranslationComplete 757 +#define kNtErrorNothingToTerminate 758 +#define kNtErrorProcessNotInJob 759 +#define kNtErrorProcessInJob 760 +#define kNtErrorVolsnapHibernateReady 761 +#define kNtErrorFsfilterOpCompletedSuccessfully 762 +#define kNtErrorInterruptVectorAlreadyConnected 763 +#define kNtErrorInterruptStillConnected 764 +#define kNtErrorWaitForOplock 765 +#define kNtErrorDbgExceptionHandled 766 +#define kNtErrorDbgContinue 767 +#define kNtErrorCallbackPopStack 768 +#define kNtErrorCompressionDisabled 769 +#define kNtErrorCantfetchbackwards 770 +#define kNtErrorCantscrollbackwards 771 +#define kNtErrorRowsnotreleased 772 +#define kNtErrorBadAccessorFlags 773 +#define kNtErrorErrorsEncountered 774 +#define kNtErrorNotCapable 775 +#define kNtErrorRequestOutOfSequence 776 +#define kNtErrorVersionParseError 777 +#define kNtErrorBadstartposition 778 +#define kNtErrorMemoryHardware 779 +#define kNtErrorDiskRepairDisabled 780 +#define kNtErrorInsufficientResourceForSpecifiedSharedSectionSize 781 +#define kNtErrorSystemPowerstateTransition 782 +#define kNtErrorSystemPowerstateComplexTransition 783 +#define kNtErrorMcaException 784 +#define kNtErrorAccessAuditByPolicy 785 +#define kNtErrorAccessDisabledNoSaferUiByPolicy 786 +#define kNtErrorAbandonHiberfile 787 +#define kNtErrorLostWritebehindDataNetworkDisconnected 788 +#define kNtErrorLostWritebehindDataNetworkServerError 789 +#define kNtErrorLostWritebehindDataLocalDiskError 790 +#define kNtErrorBadMcfgTable 791 +#define kNtErrorDiskRepairRedirected 792 +#define kNtErrorDiskRepairUnsuccessful 793 +#define kNtErrorCorruptLogOverfull 794 +#define kNtErrorCorruptLogCorrupted 795 +#define kNtErrorCorruptLogUnavailable 796 +#define kNtErrorCorruptLogDeletedFull 797 +#define kNtErrorCorruptLogCleared 798 +#define kNtErrorOrphanNameExhausted 799 +#define kNtErrorOplockSwitchedToNewHandle 800 +#define kNtErrorCannotGrantRequestedOplock 801 +#define kNtErrorCannotBreakOplock 802 +#define kNtErrorOplockHandleClosed 803 +#define kNtErrorNoAceCondition 804 +#define kNtErrorInvalidAceCondition 805 +#define kNtErrorFileHandleRevoked 806 +#define kNtErrorImageAtDifferentBase 807 +#define kNtErrorEncryptedIoNotPossible 808 +#define kNtErrorFileMetadataOptimizationInProgress 809 +#define kNtErrorQuotaActivity 810 +#define kNtErrorHandleRevoked 811 +#define kNtErrorCallbackInvokeInline 812 +#define kNtErrorCpuSetInvalid 813 +#define kNtErrorEnclaveNotTerminated 814 +#define kNtErrorEnclaveViolation 815 +#define kNtErrorEaAccessDenied 994 +#define kNtErrorOperationAborted 995 +#define kNtErrorIoIncomplete 996 +#define kNtErrorIoPending 997 +#define kNtErrorNoaccess 998 +#define kNtErrorSwaperror 999 +#define kNtErrorStackOverflow 1001 +#define kNtErrorInvalidMessage 1002 +#define kNtErrorCanNotComplete 1003 +#define kNtErrorInvalidFlags 1004 +#define kNtErrorUnrecognizedVolume 1005 +#define kNtErrorFileInvalid 1006 +#define kNtErrorFullscreenMode 1007 +#define kNtErrorNoToken 1008 +#define kNtErrorBaddb 1009 +#define kNtErrorBadkey 1010 +#define kNtErrorCantopen 1011 +#define kNtErrorCantread 1012 +#define kNtErrorCantwrite 1013 +#define kNtErrorRegistryRecovered 1014 +#define kNtErrorRegistryCorrupt 1015 +#define kNtErrorRegistryIoFailed 1016 +#define kNtErrorNotRegistryFile 1017 +#define kNtErrorKeyDeleted 1018 +#define kNtErrorNoLogSpace 1019 +#define kNtErrorKeyHasChildren 1020 +#define kNtErrorChildMustBeVolatile 1021 +#define kNtErrorNotifyEnumDir 1022 +#define kNtErrorDependentServicesRunning 1051 +#define kNtErrorInvalidServiceControl 1052 +#define kNtErrorServiceRequestTimeout 1053 +#define kNtErrorServiceNoThread 1054 +#define kNtErrorServiceDatabaseLocked 1055 +#define kNtErrorServiceAlreadyRunning 1056 +#define kNtErrorInvalidServiceAccount 1057 +#define kNtErrorServiceDisabled 1058 +#define kNtErrorCircularDependency 1059 +#define kNtErrorServiceDoesNotExist 1060 +#define kNtErrorServiceCannotAcceptCtrl 1061 +#define kNtErrorServiceNotActive 1062 +#define kNtErrorFailedServiceControllerConnect 1063 +#define kNtErrorExceptionInService 1064 +#define kNtErrorDatabaseDoesNotExist 1065 +#define kNtErrorServiceSpecificError 1066 +#define kNtErrorProcessAborted 1067 +#define kNtErrorServiceDependencyFail 1068 +#define kNtErrorServiceLogonFailed 1069 +#define kNtErrorServiceStartHang 1070 +#define kNtErrorInvalidServiceLock 1071 +#define kNtErrorServiceMarkedForDelete 1072 +#define kNtErrorServiceExists 1073 +#define kNtErrorAlreadyRunningLkg 1074 +#define kNtErrorServiceDependencyDeleted 1075 +#define kNtErrorBootAlreadyAccepted 1076 +#define kNtErrorServiceNeverStarted 1077 +#define kNtErrorDuplicateServiceName 1078 +#define kNtErrorDifferentServiceAccount 1079 +#define kNtErrorCannotDetectDriverFailure 1080 +#define kNtErrorCannotDetectProcessAbort 1081 +#define kNtErrorNoRecoveryProgram 1082 +#define kNtErrorServiceNotInExe 1083 +#define kNtErrorNotSafebootService 1084 +#define kNtErrorEndOfMedia 1100 +#define kNtErrorFilemarkDetected 1101 +#define kNtErrorBeginningOfMedia 1102 +#define kNtErrorSetmarkDetected 1103 +#define kNtErrorNoDataDetected 1104 +#define kNtErrorPartitionFailure 1105 +#define kNtErrorInvalidBlockLength 1106 +#define kNtErrorDeviceNotPartitioned 1107 +#define kNtErrorUnableToLockMedia 1108 +#define kNtErrorUnableToUnloadMedia 1109 +#define kNtErrorMediaChanged 1110 +#define kNtErrorBusReset 1111 +#define kNtErrorNoMediaInDrive 1112 /* ENXIO */ +#define kNtErrorNoUnicodeTranslation 1113 +#define kNtErrorDllInitFailed 1114 +#define kNtErrorShutdownInProgress 1115 +#define kNtErrorNoShutdownInProgress 1116 +#define kNtErrorIoDevice 1117 /* EIO */ +#define kNtErrorSerialNoDevice 1118 /* ENOTTY */ +#define kNtErrorIrqBusy 1119 +#define kNtErrorMoreWrites 1120 +#define kNtErrorCounterTimeout 1121 +#define kNtErrorFloppyIdMarkNotFound 1122 +#define kNtErrorFloppyWrongCylinder 1123 +#define kNtErrorFloppyUnknownError 1124 +#define kNtErrorFloppyBadRegisters 1125 +#define kNtErrorDiskRecalibrateFailed 1126 +#define kNtErrorDiskOperationFailed 1127 +#define kNtErrorDiskResetFailed 1128 +#define kNtErrorEomOverflow 1129 +#define kNtErrorNotEnoughServerMemory 1130 +#define kNtErrorPossibleDeadlock 1131 /* EDEADLK */ +#define kNtErrorMappedAlignment 1132 +#define kNtErrorSetPowerStateVetoed 1140 +#define kNtErrorSetPowerStateFailed 1141 +#define kNtErrorTooManyLinks 1142 +#define kNtErrorOldWinVersion 1150 +#define kNtErrorAppWrongOs 1151 +#define kNtErrorSingleInstanceApp 1152 +#define kNtErrorRmodeApp 1153 +#define kNtErrorInvalidDll 1154 +#define kNtErrorNoAssociation 1155 +#define kNtErrorDdeFail 1156 +#define kNtErrorDllNotFound 1157 +#define kNtErrorNoMoreUserHandles 1158 +#define kNtErrorMessageSyncOnly 1159 +#define kNtErrorSourceElementEmpty 1160 +#define kNtErrorDestinationElementFull 1161 +#define kNtErrorIllegalElementAddress 1162 +#define kNtErrorMagazineNotPresent 1163 +#define kNtErrorDeviceReinitializationNeeded 1164 +#define kNtErrorDeviceRequiresCleaning 1165 +#define kNtErrorDeviceDoorOpen 1166 +#define kNtErrorDeviceNotConnected 1167 +#define kNtErrorNotFound 1168 +#define kNtErrorNoMatch 1169 +#define kNtErrorSetNotFound 1170 +#define kNtErrorPointNotFound 1171 +#define kNtErrorNoTrackingService 1172 +#define kNtErrorNoVolumeId 1173 +#define kNtErrorUnableToRemoveReplaced 1175 +#define kNtErrorUnableToMoveReplacement 1176 +#define kNtErrorUnableToMoveReplacement_2 1177 +#define kNtErrorJournalDeleteInProgress 1178 +#define kNtErrorJournalNotActive 1179 +#define kNtErrorPotentialFileFound 1180 +#define kNtErrorJournalEntryDeleted 1181 +#define kNtErrorShutdownIsScheduled 1190 +#define kNtErrorShutdownUsersLoggedOn 1191 +#define kNtErrorBadDevice 1200 /* ENODEV */ +#define kNtErrorConnectionUnavail 1201 +#define kNtErrorDeviceAlreadyRemembered 1202 +#define kNtErrorNoNetOrBadPath 1203 +#define kNtErrorBadProvider 1204 +#define kNtErrorCannotOpenProfile 1205 +#define kNtErrorBadProfile 1206 +#define kNtErrorNotContainer 1207 +#define kNtErrorExtendedError 1208 +#define kNtErrorInvalidGroupname 1209 +#define kNtErrorInvalidComputername 1210 +#define kNtErrorInvalidEventname 1211 +#define kNtErrorInvalidDomainname 1212 +#define kNtErrorInvalidServicename 1213 +#define kNtErrorInvalidNetname 1214 +#define kNtErrorInvalidSharename 1215 +#define kNtErrorInvalidPasswordname 1216 +#define kNtErrorInvalidMessagename 1217 +#define kNtErrorInvalidMessagedest 1218 +#define kNtErrorSessionCredentialConflict 1219 +#define kNtErrorRemoteSessionLimitExceeded 1220 +#define kNtErrorDupDomainname 1221 +#define kNtErrorNoNetwork 1222 +#define kNtErrorCancelled 1223 /* ECANCELED */ +#define kNtErrorUserMappedFile 1224 +#define kNtErrorConnectionRefused 1225 +#define kNtErrorGracefulDisconnect 1226 +#define kNtErrorAddressAlreadyAssociated 1227 +#define kNtErrorAddressNotAssociated 1228 +#define kNtErrorConnectionInvalid 1229 +#define kNtErrorConnectionActive 1230 +#define kNtErrorNetworkUnreachable 1231 +#define kNtErrorHostUnreachable 1232 +#define kNtErrorProtocolUnreachable 1233 /* EPROTO */ +#define kNtErrorPortUnreachable 1234 +#define kNtErrorRequestAborted 1235 +#define kNtErrorConnectionAborted 1236 +#define kNtErrorRetry 1237 +#define kNtErrorConnectionCountLimit 1238 +#define kNtErrorLoginTimeRestriction 1239 +#define kNtErrorLoginWkstaRestriction 1240 +#define kNtErrorIncorrectAddress 1241 +#define kNtErrorAlreadyRegistered 1242 +#define kNtErrorServiceNotFound 1243 +#define kNtErrorNotAuthenticated 1244 +#define kNtErrorNotLoggedOn 1245 +#define kNtErrorContinue 1246 +#define kNtErrorAlreadyInitialized 1247 +#define kNtErrorNoMoreDevices 1248 +#define kNtErrorNoSuchSite 1249 +#define kNtErrorDomainControllerExists 1250 +#define kNtErrorOnlyIfConnected 1251 +#define kNtErrorOverrideNochanges 1252 +#define kNtErrorBadUserProfile 1253 +#define kNtErrorNotSupportedOnSbs 1254 +#define kNtErrorServerShutdownInProgress 1255 +#define kNtErrorHostDown 1256 +#define kNtErrorNonAccountSid 1257 +#define kNtErrorNonDomainSid 1258 +#define kNtErrorApphelpBlock 1259 +#define kNtErrorAccessDisabledByPolicy 1260 +#define kNtErrorRegNatConsumption 1261 +#define kNtErrorCscshareOffline 1262 +#define kNtErrorPkinitFailure 1263 +#define kNtErrorSmartcardSubsystemFailure 1264 +#define kNtErrorDowngradeDetected 1265 +#define kNtErrorMachineLocked 1271 +#define kNtErrorSmbGuestLogonBlocked 1272 +#define kNtErrorCallbackSuppliedInvalidData 1273 +#define kNtErrorSyncForegroundRefreshRequired 1274 +#define kNtErrorDriverBlocked 1275 +#define kNtErrorInvalidImportOfNonDll 1276 +#define kNtErrorAccessDisabledWebblade 1277 +#define kNtErrorAccessDisabledWebbladeTamper 1278 +#define kNtErrorRecoveryFailure 1279 +#define kNtErrorAlreadyFiber 1280 +#define kNtErrorAlreadyThread 1281 +#define kNtErrorStackBufferOverrun 1282 +#define kNtErrorParameterQuotaExceeded 1283 +#define kNtErrorDebuggerInactive 1284 +#define kNtErrorDelayLoadFailed 1285 +#define kNtErrorVdmDisallowed 1286 +#define kNtErrorUnidentifiedError 1287 /* EIDRM */ +#define kNtErrorInvalidCruntimeParameter 1288 +#define kNtErrorBeyondVdl 1289 +#define kNtErrorIncompatibleServiceSidType 1290 +#define kNtErrorDriverProcessTerminated 1291 +#define kNtErrorImplementationLimit 1292 +#define kNtErrorProcessIsProtected 1293 +#define kNtErrorServiceNotifyClientLagging 1294 +#define kNtErrorDiskQuotaExceeded 1295 +#define kNtErrorContentBlocked 1296 +#define kNtErrorIncompatibleServicePrivilege 1297 +#define kNtErrorAppHang 1298 +#define kNtErrorInvalidLabel 1299 +#define kNtErrorNotAllAssigned 1300 +#define kNtErrorSomeNotMapped 1301 +#define kNtErrorNoQuotasForAccount 1302 +#define kNtErrorLocalUserSessionKey 1303 +#define kNtErrorNullLmPassword 1304 +#define kNtErrorUnknownRevision 1305 +#define kNtErrorRevisionMismatch 1306 +#define kNtErrorInvalidOwner 1307 +#define kNtErrorInvalidPrimaryGroup 1308 +#define kNtErrorNoImpersonationToken 1309 +#define kNtErrorCantDisableMandatory 1310 +#define kNtErrorNoLogonServers 1311 +#define kNtErrorNoSuchLogonSession 1312 +#define kNtErrorNoSuchPrivilege 1313 +#define kNtErrorPrivilegeNotHeld 1314 +#define kNtErrorInvalidAccountName 1315 +#define kNtErrorUserExists 1316 +#define kNtErrorNoSuchUser 1317 +#define kNtErrorGroupExists 1318 +#define kNtErrorNoSuchGroup 1319 +#define kNtErrorMemberInGroup 1320 +#define kNtErrorMemberNotInGroup 1321 +#define kNtErrorLastAdmin 1322 +#define kNtErrorWrongPassword 1323 +#define kNtErrorIllFormedPassword 1324 +#define kNtErrorPasswordRestriction 1325 +#define kNtErrorLogonFailure 1326 +#define kNtErrorAccountRestriction 1327 +#define kNtErrorInvalidLogonHours 1328 +#define kNtErrorInvalidWorkstation 1329 +#define kNtErrorPasswordExpired 1330 +#define kNtErrorAccountDisabled 1331 +#define kNtErrorNoneMapped 1332 +#define kNtErrorTooManyLuidsRequested 1333 +#define kNtErrorLuidsExhausted 1334 +#define kNtErrorInvalidSubAuthority 1335 +#define kNtErrorInvalidAcl 1336 +#define kNtErrorInvalidSid 1337 +#define kNtErrorInvalidSecurityDescr 1338 +#define kNtErrorBadInheritanceAcl 1340 +#define kNtErrorServerDisabled 1341 +#define kNtErrorServerNotDisabled 1342 +#define kNtErrorInvalidIdAuthority 1343 +#define kNtErrorAllottedSpaceExceeded 1344 +#define kNtErrorInvalidGroupAttributes 1345 +#define kNtErrorBadImpersonationLevel 1346 +#define kNtErrorCantOpenAnonymous 1347 +#define kNtErrorBadValidationClass 1348 +#define kNtErrorBadTokenType 1349 +#define kNtErrorNoSecurityOnObject 1350 +#define kNtErrorCantAccessDomainInfo 1351 +#define kNtErrorInvalidServerState 1352 +#define kNtErrorInvalidDomainState 1353 +#define kNtErrorInvalidDomainRole 1354 +#define kNtErrorNoSuchDomain 1355 +#define kNtErrorDomainExists 1356 +#define kNtErrorDomainLimitExceeded 1357 +#define kNtErrorInternalDbCorruption 1358 +#define kNtErrorInternalError 1359 +#define kNtErrorGenericNotMapped 1360 +#define kNtErrorBadDescriptorFormat 1361 +#define kNtErrorNotLogonProcess 1362 +#define kNtErrorLogonSessionExists 1363 +#define kNtErrorNoSuchPackage 1364 +#define kNtErrorBadLogonSessionState 1365 +#define kNtErrorLogonSessionCollision 1366 +#define kNtErrorInvalidLogonType 1367 +#define kNtErrorCannotImpersonate 1368 +#define kNtErrorRxactInvalidState 1369 +#define kNtErrorRxactCommitFailure 1370 +#define kNtErrorSpecialAccount 1371 +#define kNtErrorSpecialGroup 1372 +#define kNtErrorSpecialUser 1373 +#define kNtErrorMembersPrimaryGroup 1374 +#define kNtErrorTokenAlreadyInUse 1375 +#define kNtErrorNoSuchAlias 1376 +#define kNtErrorMemberNotInAlias 1377 +#define kNtErrorMemberInAlias 1378 +#define kNtErrorAliasExists 1379 +#define kNtErrorLogonNotGranted 1380 +#define kNtErrorTooManySecrets 1381 +#define kNtErrorSecretTooLong 1382 +#define kNtErrorInternalDbError 1383 +#define kNtErrorTooManyContextIds 1384 +#define kNtErrorLogonTypeNotGranted 1385 +#define kNtErrorNtCrossEncryptionRequired 1386 +#define kNtErrorNoSuchMember 1387 +#define kNtErrorInvalidMember 1388 +#define kNtErrorTooManySids 1389 +#define kNtErrorLmCrossEncryptionRequired 1390 +#define kNtErrorNoInheritance 1391 +#define kNtErrorFileCorrupt 1392 +#define kNtErrorDiskCorrupt 1393 +#define kNtErrorNoUserSessionKey 1394 +#define kNtErrorLicenseQuotaExceeded 1395 +#define kNtErrorWrongTargetName 1396 +#define kNtErrorMutualAuthFailed 1397 +#define kNtErrorTimeSkew 1398 +#define kNtErrorCurrentDomainNotAllowed 1399 +#define kNtErrorInvalidWindowHandle 1400 +#define kNtErrorInvalidMenuHandle 1401 +#define kNtErrorInvalidCursorHandle 1402 +#define kNtErrorInvalidAccelHandle 1403 +#define kNtErrorInvalidHookHandle 1404 +#define kNtErrorInvalidDwpHandle 1405 +#define kNtErrorTlwWithWschild 1406 +#define kNtErrorCannotFindWndClass 1407 +#define kNtErrorWindowOfOtherThread 1408 +#define kNtErrorHotkeyAlreadyRegistered 1409 +#define kNtErrorClassAlreadyExists 1410 +#define kNtErrorClassDoesNotExist 1411 +#define kNtErrorClassHasWindows 1412 +#define kNtErrorInvalidIndex 1413 +#define kNtErrorInvalidIconHandle 1414 +#define kNtErrorPrivateDialogIndex 1415 +#define kNtErrorListboxIdNotFound 1416 +#define kNtErrorNoWildcardCharacters 1417 +#define kNtErrorClipboardNotOpen 1418 +#define kNtErrorHotkeyNotRegistered 1419 +#define kNtErrorWindowNotDialog 1420 +#define kNtErrorControlIdNotFound 1421 +#define kNtErrorInvalidComboboxMessage 1422 +#define kNtErrorWindowNotCombobox 1423 +#define kNtErrorInvalidEditHeight 1424 +#define kNtErrorDcNotFound 1425 +#define kNtErrorInvalidHookFilter 1426 +#define kNtErrorInvalidFilterProc 1427 +#define kNtErrorHookNeedsHmod 1428 +#define kNtErrorGlobalOnlyHook 1429 +#define kNtErrorJournalHookSet 1430 +#define kNtErrorHookNotInstalled 1431 +#define kNtErrorInvalidLbMessage 1432 +#define kNtErrorSetcountOnBadLb 1433 +#define kNtErrorLbWithoutTabstops 1434 +#define kNtErrorDestroyObjectOfOtherThread 1435 +#define kNtErrorChildWindowMenu 1436 +#define kNtErrorNoSystemMenu 1437 +#define kNtErrorInvalidMsgboxStyle 1438 +#define kNtErrorInvalidSpiValue 1439 +#define kNtErrorScreenAlreadyLocked 1440 +#define kNtErrorHwndsHaveDiffParent 1441 +#define kNtErrorNotChildWindow 1442 +#define kNtErrorInvalidGwCommand 1443 +#define kNtErrorInvalidThreadId 1444 +#define kNtErrorNonMdichildWindow 1445 +#define kNtErrorPopupAlreadyActive 1446 +#define kNtErrorNoScrollbars 1447 +#define kNtErrorInvalidScrollbarRange 1448 +#define kNtErrorInvalidShowwinCommand 1449 +#define kNtErrorNoSystemResources 1450 +#define kNtErrorNonpagedSystemResources 1451 +#define kNtErrorPagedSystemResources 1452 +#define kNtErrorWorkingSetQuota 1453 +#define kNtErrorPagefileQuota 1454 +#define kNtErrorCommitmentLimit 1455 +#define kNtErrorMenuItemNotFound 1456 +#define kNtErrorInvalidKeyboardHandle 1457 +#define kNtErrorHookTypeNotAllowed 1458 +#define kNtErrorRequiresInteractiveWindowstation 1459 +#define kNtErrorTimeout 1460 /* ETIMEDOUT */ +#define kNtErrorInvalidMonitorHandle 1461 +#define kNtErrorIncorrectSize 1462 +#define kNtErrorSymlinkClassDisabled 1463 +#define kNtErrorSymlinkNotSupported 1464 +#define kNtErrorXmlParseError 1465 +#define kNtErrorXmldsigError 1466 +#define kNtErrorRestartApplication 1467 +#define kNtErrorWrongCompartment 1468 +#define kNtErrorAuthipFailure 1469 +#define kNtErrorNoNvramResources 1470 +#define kNtErrorNotGuiProcess 1471 +#define kNtErrorEventlogFileCorrupt 1500 +#define kNtErrorEventlogCantStart 1501 +#define kNtErrorLogFileFull 1502 +#define kNtErrorEventlogFileChanged 1503 +#define kNtErrorContainerAssigned 1504 +#define kNtErrorJobNoContainer 1505 +#define kNtErrorInvalidTaskName 1550 +#define kNtErrorInvalidTaskIndex 1551 +#define kNtErrorThreadAlreadyInTask 1552 +#define kNtErrorInstallServiceFailure 1601 +#define kNtErrorInstallUserexit 1602 +#define kNtErrorInstallFailure 1603 +#define kNtErrorInstallSuspend 1604 +#define kNtErrorUnknownProduct 1605 +#define kNtErrorUnknownFeature 1606 +#define kNtErrorUnknownComponent 1607 +#define kNtErrorUnknownProperty 1608 +#define kNtErrorInvalidHandleState 1609 +#define kNtErrorBadConfiguration 1610 +#define kNtErrorIndexAbsent 1611 +#define kNtErrorInstallSourceAbsent 1612 +#define kNtErrorInstallPackageVersion 1613 +#define kNtErrorProductUninstalled 1614 +#define kNtErrorBadQuerySyntax 1615 +#define kNtErrorInvalidField 1616 +#define kNtErrorDeviceRemoved 1617 +#define kNtErrorInstallAlreadyRunning 1618 +#define kNtErrorInstallPackageOpenFailed 1619 +#define kNtErrorInstallPackageInvalid 1620 +#define kNtErrorInstallUiFailure 1621 +#define kNtErrorInstallLogFailure 1622 +#define kNtErrorInstallLanguageUnsupported 1623 +#define kNtErrorInstallTransformFailure 1624 +#define kNtErrorInstallPackageRejected 1625 +#define kNtErrorFunctionNotCalled 1626 +#define kNtErrorFunctionFailed 1627 +#define kNtErrorInvalidTable 1628 +#define kNtErrorDatatypeMismatch 1629 +#define kNtErrorUnsupportedType 1630 +#define kNtErrorCreateFailed 1631 +#define kNtErrorInstallTempUnwritable 1632 +#define kNtErrorInstallPlatformUnsupported 1633 +#define kNtErrorInstallNotused 1634 +#define kNtErrorPatchPackageOpenFailed 1635 +#define kNtErrorPatchPackageInvalid 1636 +#define kNtErrorPatchPackageUnsupported 1637 +#define kNtErrorProductVersion 1638 +#define kNtErrorInvalidCommandLine 1639 /* E2BIG */ +#define kNtErrorInstallRemoteDisallowed 1640 +#define kNtErrorSuccessRebootInitiated 1641 +#define kNtErrorPatchTargetNotFound 1642 +#define kNtErrorPatchPackageRejected 1643 +#define kNtErrorInstallTransformRejected 1644 +#define kNtErrorInstallRemoteProhibited 1645 +#define kNtErrorPatchRemovalUnsupported 1646 +#define kNtErrorUnknownPatch 1647 +#define kNtErrorPatchNoSequence 1648 +#define kNtErrorPatchRemovalDisallowed 1649 +#define kNtErrorInvalidPatchXml 1650 +#define kNtErrorPatchManagedAdvertisedProduct 1651 +#define kNtErrorInstallServiceSafeboot 1652 +#define kNtErrorFailFastException 1653 +#define kNtErrorInstallRejected 1654 +#define kNtErrorDynamicCodeBlocked 1655 +#define kNtErrorNotSameObject 1656 +#define kNtErrorStrictCfgViolation 1657 +#define kNtErrorSetContextDenied 1660 +#define kNtErrorCrossPartitionViolation 1661 +#define kNtErrorInvalidUserBuffer 1784 +#define kNtErrorUnrecognizedMedia 1785 +#define kNtErrorNoTrustLsaSecret 1786 +#define kNtErrorNoTrustSamAccount 1787 +#define kNtErrorTrustedDomainFailure 1788 +#define kNtErrorTrustedRelationshipFailure 1789 +#define kNtErrorTrustFailure 1790 +#define kNtErrorNetlogonNotStarted 1792 +#define kNtErrorAccountExpired 1793 +#define kNtErrorRedirectorHasOpenHandles 1794 +#define kNtErrorPrinterDriverAlreadyInstalled 1795 +#define kNtErrorUnknownPort 1796 +#define kNtErrorUnknownPrinterDriver 1797 +#define kNtErrorUnknownPrintprocessor 1798 +#define kNtErrorInvalidSeparatorFile 1799 +#define kNtErrorInvalidPriority 1800 +#define kNtErrorInvalidPrinterName 1801 +#define kNtErrorPrinterAlreadyExists 1802 +#define kNtErrorInvalidPrinterCommand 1803 +#define kNtErrorInvalidDatatype 1804 +#define kNtErrorInvalidEnvironment 1805 +#define kNtErrorNologonInterdomainTrustAccount 1807 +#define kNtErrorNologonWorkstationTrustAccount 1808 +#define kNtErrorNologonServerTrustAccount 1809 +#define kNtErrorDomainTrustInconsistent 1810 +#define kNtErrorServerHasOpenHandles 1811 +#define kNtErrorResourceDataNotFound 1812 +#define kNtErrorResourceTypeNotFound 1813 +#define kNtErrorResourceNameNotFound 1814 +#define kNtErrorResourceLangNotFound 1815 +#define kNtErrorNotEnoughQuota 1816 /* EDQUOT */ +#define kNtErrorInvalidTime 1901 +#define kNtErrorInvalidFormName 1902 +#define kNtErrorInvalidFormSize 1903 +#define kNtErrorAlreadyWaiting 1904 +#define kNtErrorPrinterDeleted 1905 +#define kNtErrorInvalidPrinterState 1906 +#define kNtErrorPasswordMustChange 1907 +#define kNtErrorDomainControllerNotFound 1908 +#define kNtErrorAccountLockedOut 1909 +#define kNtErrorNoSitename 1919 +#define kNtErrorCantAccessFile 1920 +#define kNtErrorCantResolveFilename 1921 +#define kNtErrorKmDriverBlocked 1930 +#define kNtErrorContextExpired 1931 +#define kNtErrorPerUserTrustQuotaExceeded 1932 +#define kNtErrorAllUserTrustQuotaExceeded 1933 +#define kNtErrorUserDeleteTrustQuotaExceeded 1934 +#define kNtErrorAuthenticationFirewallFailed 1935 +#define kNtErrorRemotePrintConnectionsBlocked 1936 +#define kNtErrorNtlmBlocked 1937 +#define kNtErrorPasswordChangeRequired 1938 +#define kNtErrorLostModeLogonRestriction 1939 +#define kNtErrorInvalidPixelFormat 2000 +#define kNtErrorBadDriver 2001 +#define kNtErrorInvalidWindowStyle 2002 +#define kNtErrorMetafileNotSupported 2003 +#define kNtErrorTransformNotSupported 2004 +#define kNtErrorClippingNotSupported 2005 +#define kNtErrorInvalidCmm 2010 +#define kNtErrorInvalidProfile 2011 +#define kNtErrorTagNotFound 2012 +#define kNtErrorTagNotPresent 2013 +#define kNtErrorDuplicateTag 2014 +#define kNtErrorProfileNotAssociatedWithDevice 2015 +#define kNtErrorProfileNotFound 2016 +#define kNtErrorInvalidColorspace 2017 +#define kNtErrorIcmNotEnabled 2018 +#define kNtErrorDeletingIcmXform 2019 +#define kNtErrorInvalidTransform 2020 +#define kNtErrorColorspaceMismatch 2021 +#define kNtErrorInvalidColorindex 2022 +#define kNtErrorProfileDoesNotMatchDevice 2023 +#define kNtErrorConnectedOtherPassword 2108 +#define kNtErrorConnectedOtherPasswordDefault 2109 +#define kNtErrorBadUsername 2202 +#define kNtErrorNotConnected 2250 +#define kNtErrorOpenFiles 2401 +#define kNtErrorActiveConnections 2402 +#define kNtErrorDeviceInUse 2404 +#define kNtErrorUnknownPrintMonitor 3000 +#define kNtErrorPrinterDriverInUse 3001 +#define kNtErrorSpoolFileNotFound 3002 +#define kNtErrorSplNoStartdoc 3003 +#define kNtErrorSplNoAddjob 3004 +#define kNtErrorPrintProcessorAlreadyInstalled 3005 +#define kNtErrorPrintMonitorAlreadyInstalled 3006 +#define kNtErrorInvalidPrintMonitor 3007 +#define kNtErrorPrintMonitorInUse 3008 +#define kNtErrorPrinterHasJobsQueued 3009 +#define kNtErrorSuccessRebootRequired 3010 +#define kNtErrorSuccessRestartRequired 3011 +#define kNtErrorPrinterNotFound 3012 +#define kNtErrorPrinterDriverWarned 3013 +#define kNtErrorPrinterDriverBlocked 3014 +#define kNtErrorPrinterDriverPackageInUse 3015 +#define kNtErrorCoreDriverPackageNotFound 3016 +#define kNtErrorFailRebootRequired 3017 +#define kNtErrorFailRebootInitiated 3018 +#define kNtErrorPrinterDriverDownloadNeeded 3019 +#define kNtErrorPrintJobRestartRequired 3020 +#define kNtErrorInvalidPrinterDriverManifest 3021 +#define kNtErrorPrinterNotShareable 3022 +#define kNtErrorRequestPaused 3050 +#define kNtErrorAppexecConditionNotSatisfied 3060 +#define kNtErrorAppexecHandleInvalidated 3061 +#define kNtErrorAppexecInvalidHostGeneration 3062 +#define kNtErrorAppexecUnexpectedProcessRegistration 3063 +#define kNtErrorAppexecInvalidHostState 3064 +#define kNtErrorAppexecNoDonor 3065 +#define kNtErrorAppexecHostIdMismatch 3066 +#define kNtErrorIoReissueAsCached 3950 +#define kNtErrorWinsInternal 4000 +#define kNtErrorCanNotDelLocalWins 4001 +#define kNtErrorStaticInit 4002 +#define kNtErrorIncBackup 4003 +#define kNtErrorFullBackup 4004 +#define kNtErrorRecNonExistent 4005 +#define kNtErrorRplNotAllowed 4006 +#define kNtErrorDhcpAddressConflict 4100 +#define kNtErrorWmiGuidNotFound 4200 +#define kNtErrorWmiInstanceNotFound 4201 +#define kNtErrorWmiItemidNotFound 4202 +#define kNtErrorWmiTryAgain 4203 +#define kNtErrorWmiDpNotFound 4204 +#define kNtErrorWmiUnresolvedInstanceRef 4205 +#define kNtErrorWmiAlreadyEnabled 4206 +#define kNtErrorWmiGuidDisconnected 4207 +#define kNtErrorWmiServerUnavailable 4208 +#define kNtErrorWmiDpFailed 4209 +#define kNtErrorWmiInvalidMof 4210 +#define kNtErrorWmiInvalidReginfo 4211 +#define kNtErrorWmiAlreadyDisabled 4212 +#define kNtErrorWmiReadOnly 4213 +#define kNtErrorWmiSetFailure 4214 +#define kNtErrorNotAppcontainer 4250 +#define kNtErrorAppcontainerRequired 4251 +#define kNtErrorNotSupportedInAppcontainer 4252 +#define kNtErrorInvalidPackageSidLength 4253 +#define kNtErrorInvalidMedia 4300 +#define kNtErrorInvalidLibrary 4301 +#define kNtErrorInvalidMediaPool 4302 +#define kNtErrorDriveMediaMismatch 4303 +#define kNtErrorMediaOffline 4304 +#define kNtErrorLibraryOffline 4305 +#define kNtErrorEmpty 4306 /* ENOMSG */ +#define kNtErrorNotEmpty 4307 +#define kNtErrorMediaUnavailable 4308 +#define kNtErrorResourceDisabled 4309 +#define kNtErrorInvalidCleaner 4310 +#define kNtErrorUnableToClean 4311 +#define kNtErrorObjectNotFound 4312 +#define kNtErrorDatabaseFailure 4313 +#define kNtErrorDatabaseFull 4314 +#define kNtErrorMediaIncompatible 4315 +#define kNtErrorResourceNotPresent 4316 +#define kNtErrorInvalidOperation 4317 +#define kNtErrorMediaNotAvailable 4318 +#define kNtErrorDeviceNotAvailable 4319 +#define kNtErrorRequestRefused 4320 +#define kNtErrorInvalidDriveObject 4321 +#define kNtErrorLibraryFull 4322 +#define kNtErrorMediumNotAccessible 4323 +#define kNtErrorUnableToLoadMedium 4324 +#define kNtErrorUnableToInventoryDrive 4325 +#define kNtErrorUnableToInventorySlot 4326 +#define kNtErrorUnableToInventoryTransport 4327 +#define kNtErrorTransportFull 4328 +#define kNtErrorControllingIeport 4329 +#define kNtErrorUnableToEjectMountedMedia 4330 +#define kNtErrorCleanerSlotSet 4331 +#define kNtErrorCleanerSlotNotSet 4332 +#define kNtErrorCleanerCartridgeSpent 4333 +#define kNtErrorUnexpectedOmid 4334 +#define kNtErrorCantDeleteLastItem 4335 +#define kNtErrorMessageExceedsMaxSize 4336 +#define kNtErrorVolumeContainsSysFiles 4337 +#define kNtErrorIndigenousType 4338 +#define kNtErrorNoSupportingDrives 4339 +#define kNtErrorCleanerCartridgeInstalled 4340 +#define kNtErrorIeportFull 4341 +#define kNtErrorFileOffline 4350 +#define kNtErrorRemoteStorageNotActive 4351 +#define kNtErrorRemoteStorageMediaError 4352 +#define kNtErrorNotAReparsePoint 4390 +#define kNtErrorReparseAttributeConflict 4391 +#define kNtErrorInvalidReparseData 4392 +#define kNtErrorReparseTagInvalid 4393 +#define kNtErrorReparseTagMismatch 4394 +#define kNtErrorReparsePointEncountered 4395 +#define kNtErrorAppDataNotFound 4400 +#define kNtErrorAppDataExpired 4401 +#define kNtErrorAppDataCorrupt 4402 +#define kNtErrorAppDataLimitExceeded 4403 +#define kNtErrorAppDataRebootRequired 4404 +#define kNtErrorSecurebootRollbackDetected 4420 +#define kNtErrorSecurebootPolicyViolation 4421 +#define kNtErrorSecurebootInvalidPolicy 4422 +#define kNtErrorSecurebootPolicyPublisherNotFound 4423 +#define kNtErrorSecurebootPolicyNotSigned 4424 +#define kNtErrorSecurebootNotEnabled 4425 +#define kNtErrorSecurebootFileReplaced 4426 +#define kNtErrorSecurebootPolicyNotAuthorized 4427 +#define kNtErrorSecurebootPolicyUnknown 4428 +#define kNtErrorSecurebootPolicyMissingAntirollbackversion 4429 +#define kNtErrorSecurebootPlatformIdMismatch 4430 +#define kNtErrorSecurebootPolicyRollbackDetected 4431 +#define kNtErrorSecurebootPolicyUpgradeMismatch 4432 +#define kNtErrorSecurebootRequiredPolicyFileMissing 4433 +#define kNtErrorSecurebootNotBasePolicy 4434 +#define kNtErrorSecurebootNotSupplementalPolicy 4435 +#define kNtErrorOffloadReadFltNotSupported 4440 +#define kNtErrorOffloadWriteFltNotSupported 4441 +#define kNtErrorOffloadReadFileNotSupported 4442 +#define kNtErrorOffloadWriteFileNotSupported 4443 +#define kNtErrorAlreadyHasStreamId 4444 +#define kNtErrorSmrGarbageCollectionRequired 4445 +#define kNtErrorWofWimHeaderCorrupt 4446 +#define kNtErrorWofWimResourceTableCorrupt 4447 +#define kNtErrorWofFileResourceTableCorrupt 4448 +#define kNtErrorVolumeNotSisEnabled 4500 +#define kNtErrorSystemIntegrityRollbackDetected 4550 +#define kNtErrorSystemIntegrityPolicyViolation 4551 +#define kNtErrorSystemIntegrityInvalidPolicy 4552 +#define kNtErrorSystemIntegrityPolicyNotSigned 4553 +#define kNtErrorVsmNotInitialized 4560 +#define kNtErrorVsmDmaProtectionNotInUse 4561 +#define kNtErrorPlatformManifestNotAuthorized 4570 +#define kNtErrorPlatformManifestInvalid 4571 +#define kNtErrorPlatformManifestFileNotAuthorized 4572 +#define kNtErrorPlatformManifestCatalogNotAuthorized 4573 +#define kNtErrorPlatformManifestBinaryIdNotFound 4574 +#define kNtErrorPlatformManifestNotActive 4575 +#define kNtErrorPlatformManifestNotSigned 4576 +#define kNtErrorDependentResourceExists 5001 +#define kNtErrorDependencyNotFound 5002 +#define kNtErrorDependencyAlreadyExists 5003 +#define kNtErrorResourceNotOnline 5004 +#define kNtErrorHostNodeNotAvailable 5005 +#define kNtErrorResourceNotAvailable 5006 +#define kNtErrorResourceNotFound 5007 +#define kNtErrorShutdownCluster 5008 +#define kNtErrorCantEvictActiveNode 5009 +#define kNtErrorObjectAlreadyExists 5010 +#define kNtErrorObjectInList 5011 +#define kNtErrorGroupNotAvailable 5012 +#define kNtErrorGroupNotFound 5013 +#define kNtErrorGroupNotOnline 5014 +#define kNtErrorHostNodeNotResourceOwner 5015 +#define kNtErrorHostNodeNotGroupOwner 5016 +#define kNtErrorResmonCreateFailed 5017 +#define kNtErrorResmonOnlineFailed 5018 +#define kNtErrorResourceOnline 5019 +#define kNtErrorQuorumResource 5020 +#define kNtErrorNotQuorumCapable 5021 +#define kNtErrorClusterShuttingDown 5022 +#define kNtErrorInvalidState 5023 +#define kNtErrorResourcePropertiesStored 5024 +#define kNtErrorNotQuorumClass 5025 +#define kNtErrorCoreResource 5026 +#define kNtErrorQuorumResourceOnlineFailed 5027 +#define kNtErrorQuorumlogOpenFailed 5028 +#define kNtErrorClusterlogCorrupt 5029 +#define kNtErrorClusterlogRecordExceedsMaxsize 5030 +#define kNtErrorClusterlogExceedsMaxsize 5031 +#define kNtErrorClusterlogChkpointNotFound 5032 +#define kNtErrorClusterlogNotEnoughSpace 5033 +#define kNtErrorQuorumOwnerAlive 5034 +#define kNtErrorNetworkNotAvailable 5035 +#define kNtErrorNodeNotAvailable 5036 +#define kNtErrorAllNodesNotAvailable 5037 +#define kNtErrorResourceFailed 5038 +#define kNtErrorClusterInvalidNode 5039 +#define kNtErrorClusterNodeExists 5040 +#define kNtErrorClusterJoinInProgress 5041 +#define kNtErrorClusterNodeNotFound 5042 +#define kNtErrorClusterLocalNodeNotFound 5043 +#define kNtErrorClusterNetworkExists 5044 +#define kNtErrorClusterNetworkNotFound 5045 +#define kNtErrorClusterNetinterfaceExists 5046 +#define kNtErrorClusterNetinterfaceNotFound 5047 +#define kNtErrorClusterInvalidRequest 5048 +#define kNtErrorClusterInvalidNetworkProvider 5049 +#define kNtErrorClusterNodeDown 5050 +#define kNtErrorClusterNodeUnreachable 5051 +#define kNtErrorClusterNodeNotMember 5052 +#define kNtErrorClusterJoinNotInProgress 5053 +#define kNtErrorClusterInvalidNetwork 5054 +#define kNtErrorClusterNodeUp 5056 +#define kNtErrorClusterIpaddrInUse 5057 +#define kNtErrorClusterNodeNotPaused 5058 +#define kNtErrorClusterNoSecurityContext 5059 +#define kNtErrorClusterNetworkNotInternal 5060 +#define kNtErrorClusterNodeAlreadyUp 5061 +#define kNtErrorClusterNodeAlreadyDown 5062 +#define kNtErrorClusterNetworkAlreadyOnline 5063 +#define kNtErrorClusterNetworkAlreadyOffline 5064 +#define kNtErrorClusterNodeAlreadyMember 5065 +#define kNtErrorClusterLastInternalNetwork 5066 +#define kNtErrorClusterNetworkHasDependents 5067 +#define kNtErrorInvalidOperationOnQuorum 5068 +#define kNtErrorDependencyNotAllowed 5069 +#define kNtErrorClusterNodePaused 5070 +#define kNtErrorNodeCantHostResource 5071 +#define kNtErrorClusterNodeNotReady 5072 +#define kNtErrorClusterNodeShuttingDown 5073 +#define kNtErrorClusterJoinAborted 5074 +#define kNtErrorClusterIncompatibleVersions 5075 +#define kNtErrorClusterMaxnumOfResourcesExceeded 5076 +#define kNtErrorClusterSystemConfigChanged 5077 +#define kNtErrorClusterResourceTypeNotFound 5078 +#define kNtErrorClusterRestypeNotSupported 5079 +#define kNtErrorClusterResnameNotFound 5080 +#define kNtErrorClusterNoRpcPackagesRegistered 5081 +#define kNtErrorClusterOwnerNotInPreflist 5082 +#define kNtErrorClusterDatabaseSeqmismatch 5083 +#define kNtErrorResmonInvalidState 5084 +#define kNtErrorClusterGumNotLocker 5085 +#define kNtErrorQuorumDiskNotFound 5086 +#define kNtErrorDatabaseBackupCorrupt 5087 +#define kNtErrorClusterNodeAlreadyHasDfsRoot 5088 +#define kNtErrorResourcePropertyUnchangeable 5089 +#define kNtErrorNoAdminAccessPoint 5090 +#define kNtErrorClusterMembershipInvalidState 5890 +#define kNtErrorClusterQuorumlogNotFound 5891 +#define kNtErrorClusterMembershipHalt 5892 +#define kNtErrorClusterInstanceIdMismatch 5893 +#define kNtErrorClusterNetworkNotFoundForIp 5894 +#define kNtErrorClusterPropertyDataTypeMismatch 5895 +#define kNtErrorClusterEvictWithoutCleanup 5896 +#define kNtErrorClusterParameterMismatch 5897 +#define kNtErrorNodeCannotBeClustered 5898 +#define kNtErrorClusterWrongOsVersion 5899 +#define kNtErrorClusterCantCreateDupClusterName 5900 +#define kNtErrorCluscfgAlreadyCommitted 5901 +#define kNtErrorCluscfgRollbackFailed 5902 +#define kNtErrorCluscfgSystemDiskDriveLetterConflict 5903 +#define kNtErrorClusterOldVersion 5904 +#define kNtErrorClusterMismatchedComputerAcctName 5905 +#define kNtErrorClusterNoNetAdapters 5906 +#define kNtErrorClusterPoisoned 5907 +#define kNtErrorClusterGroupMoving 5908 +#define kNtErrorClusterResourceTypeBusy 5909 +#define kNtErrorResourceCallTimedOut 5910 +#define kNtErrorInvalidClusterIpv6Address 5911 +#define kNtErrorClusterInternalInvalidFunction 5912 +#define kNtErrorClusterParameterOutOfBounds 5913 +#define kNtErrorClusterPartialSend 5914 +#define kNtErrorClusterRegistryInvalidFunction 5915 +#define kNtErrorClusterInvalidStringTermination 5916 +#define kNtErrorClusterInvalidStringFormat 5917 +#define kNtErrorClusterDatabaseTransactionInProgress 5918 +#define kNtErrorClusterDatabaseTransactionNotInProgress 5919 +#define kNtErrorClusterNullData 5920 +#define kNtErrorClusterPartialRead 5921 +#define kNtErrorClusterPartialWrite 5922 +#define kNtErrorClusterCantDeserializeData 5923 +#define kNtErrorDependentResourcePropertyConflict 5924 +#define kNtErrorClusterNoQuorum 5925 +#define kNtErrorClusterInvalidIpv6Network 5926 +#define kNtErrorClusterInvalidIpv6TunnelNetwork 5927 +#define kNtErrorQuorumNotAllowedInThisGroup 5928 +#define kNtErrorDependencyTreeTooComplex 5929 +#define kNtErrorExceptionInResourceCall 5930 +#define kNtErrorClusterRhsFailedInitialization 5931 +#define kNtErrorClusterNotInstalled 5932 +#define kNtErrorClusterResourcesMustBeOnlineOnTheSameNode 5933 +#define kNtErrorClusterMaxNodesInCluster 5934 +#define kNtErrorClusterTooManyNodes 5935 +#define kNtErrorClusterObjectAlreadyUsed 5936 +#define kNtErrorNoncoreGroupsFound 5937 +#define kNtErrorFileShareResourceConflict 5938 +#define kNtErrorClusterEvictInvalidRequest 5939 +#define kNtErrorClusterSingletonResource 5940 +#define kNtErrorClusterGroupSingletonResource 5941 +#define kNtErrorClusterResourceProviderFailed 5942 +#define kNtErrorClusterResourceConfigurationError 5943 +#define kNtErrorClusterGroupBusy 5944 +#define kNtErrorClusterNotSharedVolume 5945 +#define kNtErrorClusterInvalidSecurityDescriptor 5946 +#define kNtErrorClusterSharedVolumesInUse 5947 +#define kNtErrorClusterUseSharedVolumesApi 5948 +#define kNtErrorClusterBackupInProgress 5949 +#define kNtErrorNonCsvPath 5950 +#define kNtErrorCsvVolumeNotLocal 5951 +#define kNtErrorClusterWatchdogTerminating 5952 +#define kNtErrorClusterResourceVetoedMoveIncompatibleNodes 5953 +#define kNtErrorClusterInvalidNodeWeight 5954 +#define kNtErrorClusterResourceVetoedCall 5955 +#define kNtErrorResmonSystemResourcesLacking 5956 +#define kNtErrorClusterResourceVetoedMoveNotEnoughResourcesOnSource 5958 +#define kNtErrorClusterGroupQueued 5959 +#define kNtErrorClusterResourceLockedStatus 5960 +#define kNtErrorClusterSharedVolumeFailoverNotAllowed 5961 +#define kNtErrorClusterNodeDrainInProgress 5962 +#define kNtErrorClusterDiskNotConnected 5963 +#define kNtErrorDiskNotCsvCapable 5964 +#define kNtErrorResourceNotInAvailableStorage 5965 +#define kNtErrorClusterSharedVolumeRedirected 5966 +#define kNtErrorClusterSharedVolumeNotRedirected 5967 +#define kNtErrorClusterCannotReturnProperties 5968 +#define kNtErrorClusterResourceIsInMaintenanceMode 5970 +#define kNtErrorClusterAffinityConflict 5971 +#define kNtErrorClusterResourceIsReplicaVirtualMachine 5972 +#define kNtErrorClusterUpgradeIncompatibleVersions 5973 +#define kNtErrorClusterUpgradeFixQuorumNotSupported 5974 +#define kNtErrorClusterUpgradeRestartRequired 5975 +#define kNtErrorClusterUpgradeInProgress 5976 +#define kNtErrorClusterUpgradeIncomplete 5977 +#define kNtErrorClusterNodeInGracePeriod 5978 +#define kNtErrorClusterCsvIoPauseTimeout 5979 +#define kNtErrorNodeNotActiveClusterMember 5980 +#define kNtErrorClusterResourceNotMonitored 5981 +#define kNtErrorClusterResourceDoesNotSupportUnmonitored 5982 +#define kNtErrorClusterResourceIsReplicated 5983 +#define kNtErrorClusterNodeIsolated 5984 +#define kNtErrorClusterNodeQuarantined 5985 +#define kNtErrorClusterDatabaseUpdateConditionFailed 5986 +#define kNtErrorClusterSpaceDegraded 5987 +#define kNtErrorClusterTokenDelegationNotSupported 5988 +#define kNtErrorClusterCsvInvalidHandle 5989 +#define kNtErrorClusterCsvSupportedOnlyOnCoordinator 5990 +#define kNtErrorGroupsetNotAvailable 5991 +#define kNtErrorGroupsetNotFound 5992 +#define kNtErrorGroupsetCantProvide 5993 +#define kNtErrorClusterFaultDomainParentNotFound 5994 +#define kNtErrorClusterFaultDomainInvalidHierarchy 5995 +#define kNtErrorClusterFaultDomainFailedS2dValidation 5996 +#define kNtErrorClusterFaultDomainS2dConnectivityLoss 5997 +#define kNtErrorClusterInvalidInfrastructureFileserverName 5998 +#define kNtErrorClustersetManagementClusterUnreachable 5999 +#define kNtErrorEncryptionFailed 6000 +#define kNtErrorDecryptionFailed 6001 +#define kNtErrorFileEncrypted 6002 +#define kNtErrorNoRecoveryPolicy 6003 +#define kNtErrorNoEfs 6004 +#define kNtErrorWrongEfs 6005 +#define kNtErrorNoUserKeys 6006 +#define kNtErrorFileNotEncrypted 6007 +#define kNtErrorNotExportFormat 6008 +#define kNtErrorFileReadOnly 6009 /* EROFS */ +#define kNtErrorDirEfsDisallowed 6010 +#define kNtErrorEfsServerNotTrusted 6011 +#define kNtErrorBadRecoveryPolicy 6012 +#define kNtErrorEfsAlgBlobTooBig 6013 +#define kNtErrorVolumeNotSupportEfs 6014 +#define kNtErrorEfsDisabled 6015 +#define kNtErrorEfsVersionNotSupport 6016 +#define kNtErrorCsEncryptionInvalidServerResponse 6017 +#define kNtErrorCsEncryptionUnsupportedServer 6018 +#define kNtErrorCsEncryptionExistingEncryptedFile 6019 +#define kNtErrorCsEncryptionNewEncryptedFile 6020 +#define kNtErrorCsEncryptionFileNotCse 6021 +#define kNtErrorEncryptionPolicyDeniesOperation 6022 +#define kNtErrorNoBrowserServersFound 6118 +#define kNtErrorLogSectorInvalid 6600 +#define kNtErrorLogSectorParityInvalid 6601 +#define kNtErrorLogSectorRemapped 6602 +#define kNtErrorLogBlockIncomplete 6603 +#define kNtErrorLogInvalidRange 6604 /* ERANGE */ +#define kNtErrorLogBlocksExhausted 6605 +#define kNtErrorLogReadContextInvalid 6606 +#define kNtErrorLogRestartInvalid 6607 +#define kNtErrorLogBlockVersion 6608 +#define kNtErrorLogBlockInvalid 6609 +#define kNtErrorLogReadModeInvalid 6610 +#define kNtErrorLogNoRestart 6611 +#define kNtErrorLogMetadataCorrupt 6612 +#define kNtErrorLogMetadataInvalid 6613 +#define kNtErrorLogMetadataInconsistent 6614 +#define kNtErrorLogReservationInvalid 6615 +#define kNtErrorLogCantDelete 6616 +#define kNtErrorLogContainerLimitExceeded 6617 +#define kNtErrorLogStartOfLog 6618 +#define kNtErrorLogPolicyAlreadyInstalled 6619 +#define kNtErrorLogPolicyNotInstalled 6620 +#define kNtErrorLogPolicyInvalid 6621 +#define kNtErrorLogPolicyConflict 6622 +#define kNtErrorLogPinnedArchiveTail 6623 +#define kNtErrorLogRecordNonexistent 6624 +#define kNtErrorLogRecordsReservedInvalid 6625 +#define kNtErrorLogSpaceReservedInvalid 6626 +#define kNtErrorLogTailInvalid 6627 +#define kNtErrorLogFull 6628 +#define kNtErrorCouldNotResizeLog 6629 +#define kNtErrorLogMultiplexed 6630 +#define kNtErrorLogDedicated 6631 +#define kNtErrorLogArchiveNotInProgress 6632 +#define kNtErrorLogArchiveInProgress 6633 +#define kNtErrorLogEphemeral 6634 +#define kNtErrorLogNotEnoughContainers 6635 +#define kNtErrorLogClientAlreadyRegistered 6636 +#define kNtErrorLogClientNotRegistered 6637 +#define kNtErrorLogFullHandlerInProgress 6638 +#define kNtErrorLogContainerReadFailed 6639 +#define kNtErrorLogContainerWriteFailed 6640 +#define kNtErrorLogContainerOpenFailed 6641 +#define kNtErrorLogContainerStateInvalid 6642 +#define kNtErrorLogStateInvalid 6643 +#define kNtErrorLogPinned 6644 +#define kNtErrorLogMetadataFlushFailed 6645 +#define kNtErrorLogInconsistentSecurity 6646 +#define kNtErrorLogAppendedFlushFailed 6647 +#define kNtErrorLogPinnedReservation 6648 +#define kNtErrorInvalidTransaction 6700 +#define kNtErrorTransactionNotActive 6701 +#define kNtErrorTransactionRequestNotValid 6702 +#define kNtErrorTransactionNotRequested 6703 +#define kNtErrorTransactionAlreadyAborted 6704 +#define kNtErrorTransactionAlreadyCommitted 6705 +#define kNtErrorTmInitializationFailed 6706 +#define kNtErrorResourcemanagerReadOnly 6707 +#define kNtErrorTransactionNotJoined 6708 +#define kNtErrorTransactionSuperiorExists 6709 +#define kNtErrorCrmProtocolAlreadyExists 6710 +#define kNtErrorTransactionPropagationFailed 6711 +#define kNtErrorCrmProtocolNotFound 6712 +#define kNtErrorTransactionInvalidMarshallBuffer 6713 +#define kNtErrorCurrentTransactionNotValid 6714 +#define kNtErrorTransactionNotFound 6715 +#define kNtErrorResourcemanagerNotFound 6716 +#define kNtErrorEnlistmentNotFound 6717 +#define kNtErrorTransactionmanagerNotFound 6718 +#define kNtErrorTransactionmanagerNotOnline 6719 +#define kNtErrorTransactionmanagerRecoveryNameCollision 6720 +#define kNtErrorTransactionNotRoot 6721 +#define kNtErrorTransactionObjectExpired 6722 +#define kNtErrorTransactionResponseNotEnlisted 6723 +#define kNtErrorTransactionRecordTooLong 6724 +#define kNtErrorImplicitTransactionNotSupported 6725 +#define kNtErrorTransactionIntegrityViolated 6726 +#define kNtErrorTransactionmanagerIdentityMismatch 6727 +#define kNtErrorRmCannotBeFrozenForSnapshot 6728 +#define kNtErrorTransactionMustWritethrough 6729 +#define kNtErrorTransactionNoSuperior 6730 +#define kNtErrorHeuristicDamagePossible 6731 +#define kNtErrorTransactionalConflict 6800 +#define kNtErrorRmNotActive 6801 +#define kNtErrorRmMetadataCorrupt 6802 +#define kNtErrorDirectoryNotRm 6803 +#define kNtErrorTransactionsUnsupportedRemote 6805 +#define kNtErrorLogResizeInvalidSize 6806 +#define kNtErrorObjectNoLongerExists 6807 +#define kNtErrorStreamMiniversionNotFound 6808 +#define kNtErrorStreamMiniversionNotValid 6809 +#define kNtErrorMiniversionInaccessibleFromSpecifiedTransaction 6810 +#define kNtErrorCantOpenMiniversionWithModifyIntent 6811 +#define kNtErrorCantCreateMoreStreamMiniversions 6812 +#define kNtErrorRemoteFileVersionMismatch 6814 +#define kNtErrorHandleNoLongerValid 6815 +#define kNtErrorNoTxfMetadata 6816 +#define kNtErrorLogCorruptionDetected 6817 +#define kNtErrorCantRecoverWithHandleOpen 6818 +#define kNtErrorRmDisconnected 6819 +#define kNtErrorEnlistmentNotSuperior 6820 +#define kNtErrorRecoveryNotNeeded 6821 +#define kNtErrorRmAlreadyStarted 6822 +#define kNtErrorFileIdentityNotPersistent 6823 +#define kNtErrorCantBreakTransactionalDependency 6824 +#define kNtErrorCantCrossRmBoundary 6825 +#define kNtErrorTxfDirNotEmpty 6826 +#define kNtErrorIndoubtTransactionsExist 6827 +#define kNtErrorTmVolatile 6828 +#define kNtErrorRollbackTimerExpired 6829 +#define kNtErrorTxfAttributeCorrupt 6830 +#define kNtErrorEfsNotAllowedInTransaction 6831 +#define kNtErrorTransactionalOpenNotAllowed 6832 +#define kNtErrorLogGrowthFailed 6833 +#define kNtErrorTransactedMappingUnsupportedRemote 6834 +#define kNtErrorTxfMetadataAlreadyPresent 6835 +#define kNtErrorTransactionScopeCallbacksNotSet 6836 +#define kNtErrorTransactionRequiredPromotion 6837 +#define kNtErrorCannotExecuteFileInTransaction 6838 +#define kNtErrorTransactionsNotFrozen 6839 +#define kNtErrorTransactionFreezeInProgress 6840 +#define kNtErrorNotSnapshotVolume 6841 +#define kNtErrorNoSavepointWithOpenFiles 6842 +#define kNtErrorDataLostRepair 6843 +#define kNtErrorSparseNotAllowedInTransaction 6844 +#define kNtErrorTmIdentityMismatch 6845 +#define kNtErrorFloatedSection 6846 +#define kNtErrorCannotAcceptTransactedWork 6847 +#define kNtErrorCannotAbortTransactions 6848 +#define kNtErrorBadClusters 6849 +#define kNtErrorCompressionNotAllowedInTransaction 6850 +#define kNtErrorVolumeDirty 6851 +#define kNtErrorNoLinkTrackingInTransaction 6852 +#define kNtErrorOperationNotSupportedInTransaction 6853 +#define kNtErrorExpiredHandle 6854 +#define kNtErrorTransactionNotEnlisted 6855 +#define kNtErrorCtxWinstationNameInvalid 7001 +#define kNtErrorCtxInvalidPd 7002 +#define kNtErrorCtxPdNotFound 7003 +#define kNtErrorCtxWdNotFound 7004 +#define kNtErrorCtxCannotMakeEventlogEntry 7005 +#define kNtErrorCtxServiceNameCollision 7006 +#define kNtErrorCtxClosePending 7007 +#define kNtErrorCtxNoOutbuf 7008 +#define kNtErrorCtxModemInfNotFound 7009 +#define kNtErrorCtxInvalidModemname 7010 +#define kNtErrorCtxModemResponseError 7011 +#define kNtErrorCtxModemResponseTimeout 7012 +#define kNtErrorCtxModemResponseNoCarrier 7013 +#define kNtErrorCtxModemResponseNoDialtone 7014 +#define kNtErrorCtxModemResponseBusy 7015 +#define kNtErrorCtxModemResponseVoice 7016 +#define kNtErrorCtxTdError 7017 +#define kNtErrorCtxWinstationNotFound 7022 +#define kNtErrorCtxWinstationAlreadyExists 7023 +#define kNtErrorCtxWinstationBusy 7024 +#define kNtErrorCtxBadVideoMode 7025 +#define kNtErrorCtxGraphicsInvalid 7035 +#define kNtErrorCtxLogonDisabled 7037 +#define kNtErrorCtxNotConsole 7038 +#define kNtErrorCtxClientQueryTimeout 7040 +#define kNtErrorCtxConsoleDisconnect 7041 +#define kNtErrorCtxConsoleConnect 7042 +#define kNtErrorCtxShadowDenied 7044 +#define kNtErrorCtxWinstationAccessDenied 7045 +#define kNtErrorCtxInvalidWd 7049 +#define kNtErrorCtxShadowInvalid 7050 +#define kNtErrorCtxShadowDisabled 7051 +#define kNtErrorCtxClientLicenseInUse 7052 +#define kNtErrorCtxClientLicenseNotSet 7053 +#define kNtErrorCtxLicenseNotAvailable 7054 +#define kNtErrorCtxLicenseClientInvalid 7055 +#define kNtErrorCtxLicenseExpired 7056 +#define kNtErrorCtxShadowNotRunning 7057 +#define kNtErrorCtxShadowEndedByModeChange 7058 +#define kNtErrorActivationCountExceeded 7059 +#define kNtErrorCtxWinstationsDisabled 7060 +#define kNtErrorCtxEncryptionLevelRequired 7061 +#define kNtErrorCtxSessionInUse 7062 +#define kNtErrorCtxNoForceLogoff 7063 +#define kNtErrorCtxAccountRestriction 7064 +#define kNtErrorRdpProtocolError 7065 +#define kNtErrorCtxCdmConnect 7066 +#define kNtErrorCtxCdmDisconnect 7067 +#define kNtErrorCtxSecurityLayerError 7068 +#define kNtErrorTsIncompatibleSessions 7069 +#define kNtErrorTsVideoSubsystemError 7070 +#define kNtErrorDsNotInstalled 8200 +#define kNtErrorDsMembershipEvaluatedLocally 8201 +#define kNtErrorDsNoAttributeOrValue 8202 +#define kNtErrorDsInvalidAttributeSyntax 8203 +#define kNtErrorDsAttributeTypeUndefined 8204 +#define kNtErrorDsAttributeOrValueExists 8205 +#define kNtErrorDsBusy 8206 +#define kNtErrorDsUnavailable 8207 +#define kNtErrorDsNoRidsAllocated 8208 +#define kNtErrorDsNoMoreRids 8209 +#define kNtErrorDsIncorrectRoleOwner 8210 +#define kNtErrorDsRidmgrInitError 8211 +#define kNtErrorDsObjClassViolation 8212 +#define kNtErrorDsCantOnNonLeaf 8213 +#define kNtErrorDsCantOnRdn 8214 +#define kNtErrorDsCantModObjClass 8215 +#define kNtErrorDsCrossDomMoveError 8216 +#define kNtErrorDsGcNotAvailable 8217 +#define kNtErrorSharedPolicy 8218 +#define kNtErrorPolicyObjectNotFound 8219 +#define kNtErrorPolicyOnlyInDs 8220 +#define kNtErrorPromotionActive 8221 +#define kNtErrorNoPromotionActive 8222 +#define kNtErrorDsOperationsError 8224 +#define kNtErrorDsProtocolError 8225 +#define kNtErrorDsTimelimitExceeded 8226 +#define kNtErrorDsSizelimitExceeded 8227 +#define kNtErrorDsAdminLimitExceeded 8228 +#define kNtErrorDsCompareFalse 8229 +#define kNtErrorDsCompareTrue 8230 +#define kNtErrorDsAuthMethodNotSupported 8231 +#define kNtErrorDsStrongAuthRequired 8232 +#define kNtErrorDsInappropriateAuth 8233 +#define kNtErrorDsAuthUnknown 8234 +#define kNtErrorDsReferral 8235 +#define kNtErrorDsUnavailableCritExtension 8236 +#define kNtErrorDsConfidentialityRequired 8237 +#define kNtErrorDsInappropriateMatching 8238 +#define kNtErrorDsConstraintViolation 8239 +#define kNtErrorDsNoSuchObject 8240 +#define kNtErrorDsAliasProblem 8241 +#define kNtErrorDsInvalidDnSyntax 8242 +#define kNtErrorDsIsLeaf 8243 +#define kNtErrorDsAliasDerefProblem 8244 +#define kNtErrorDsUnwillingToPerform 8245 +#define kNtErrorDsLoopDetect 8246 +#define kNtErrorDsNamingViolation 8247 +#define kNtErrorDsObjectResultsTooLarge 8248 +#define kNtErrorDsAffectsMultipleDsas 8249 +#define kNtErrorDsServerDown 8250 +#define kNtErrorDsLocalError 8251 +#define kNtErrorDsEncodingError 8252 +#define kNtErrorDsDecodingError 8253 +#define kNtErrorDsFilterUnknown 8254 +#define kNtErrorDsParamError 8255 +#define kNtErrorDsNotSupported 8256 +#define kNtErrorDsNoResultsReturned 8257 +#define kNtErrorDsControlNotFound 8258 +#define kNtErrorDsClientLoop 8259 +#define kNtErrorDsReferralLimitExceeded 8260 +#define kNtErrorDsSortControlMissing 8261 +#define kNtErrorDsOffsetRangeError 8262 +#define kNtErrorDsRidmgrDisabled 8263 +#define kNtErrorDsRootMustBeNc 8301 +#define kNtErrorDsAddReplicaInhibited 8302 +#define kNtErrorDsAttNotDefInSchema 8303 +#define kNtErrorDsMaxObjSizeExceeded 8304 +#define kNtErrorDsObjStringNameExists 8305 +#define kNtErrorDsNoRdnDefinedInSchema 8306 +#define kNtErrorDsRdnDoesntMatchSchema 8307 +#define kNtErrorDsNoRequestedAttsFound 8308 +#define kNtErrorDsUserBufferToSmall 8309 +#define kNtErrorDsAttIsNotOnObj 8310 +#define kNtErrorDsIllegalModOperation 8311 +#define kNtErrorDsObjTooLarge 8312 +#define kNtErrorDsBadInstanceType 8313 +#define kNtErrorDsMasterdsaRequired 8314 +#define kNtErrorDsObjectClassRequired 8315 +#define kNtErrorDsMissingRequiredAtt 8316 +#define kNtErrorDsAttNotDefForClass 8317 +#define kNtErrorDsAttAlreadyExists 8318 +#define kNtErrorDsCantAddAttValues 8320 +#define kNtErrorDsSingleValueConstraint 8321 +#define kNtErrorDsRangeConstraint 8322 +#define kNtErrorDsAttValAlreadyExists 8323 +#define kNtErrorDsCantRemMissingAtt 8324 +#define kNtErrorDsCantRemMissingAttVal 8325 +#define kNtErrorDsRootCantBeSubref 8326 +#define kNtErrorDsNoChaining 8327 +#define kNtErrorDsNoChainedEval 8328 +#define kNtErrorDsNoParentObject 8329 +#define kNtErrorDsParentIsAnAlias 8330 +#define kNtErrorDsCantMixMasterAndReps 8331 +#define kNtErrorDsChildrenExist 8332 +#define kNtErrorDsObjNotFound 8333 +#define kNtErrorDsAliasedObjMissing 8334 +#define kNtErrorDsBadNameSyntax 8335 +#define kNtErrorDsAliasPointsToAlias 8336 +#define kNtErrorDsCantDerefAlias 8337 +#define kNtErrorDsOutOfScope 8338 +#define kNtErrorDsObjectBeingRemoved 8339 +#define kNtErrorDsCantDeleteDsaObj 8340 +#define kNtErrorDsGenericError 8341 +#define kNtErrorDsDsaMustBeIntMaster 8342 +#define kNtErrorDsClassNotDsa 8343 +#define kNtErrorDsInsuffAccessRights 8344 +#define kNtErrorDsIllegalSuperior 8345 +#define kNtErrorDsAttributeOwnedBySam 8346 +#define kNtErrorDsNameTooManyParts 8347 +#define kNtErrorDsNameTooLong 8348 +#define kNtErrorDsNameValueTooLong 8349 +#define kNtErrorDsNameUnparseable 8350 +#define kNtErrorDsNameTypeUnknown 8351 +#define kNtErrorDsNotAnObject 8352 +#define kNtErrorDsSecDescTooShort 8353 +#define kNtErrorDsSecDescInvalid 8354 +#define kNtErrorDsNoDeletedName 8355 +#define kNtErrorDsSubrefMustHaveParent 8356 +#define kNtErrorDsNcnameMustBeNc 8357 +#define kNtErrorDsCantAddSystemOnly 8358 +#define kNtErrorDsClassMustBeConcrete 8359 +#define kNtErrorDsInvalidDmd 8360 +#define kNtErrorDsObjGuidExists 8361 +#define kNtErrorDsNotOnBacklink 8362 +#define kNtErrorDsNoCrossrefForNc 8363 +#define kNtErrorDsShuttingDown 8364 +#define kNtErrorDsUnknownOperation 8365 +#define kNtErrorDsInvalidRoleOwner 8366 +#define kNtErrorDsCouldntContactFsmo 8367 +#define kNtErrorDsCrossNcDnRename 8368 +#define kNtErrorDsCantModSystemOnly 8369 +#define kNtErrorDsReplicatorOnly 8370 +#define kNtErrorDsObjClassNotDefined 8371 +#define kNtErrorDsObjClassNotSubclass 8372 +#define kNtErrorDsNameReferenceInvalid 8373 +#define kNtErrorDsCrossRefExists 8374 +#define kNtErrorDsCantDelMasterCrossref 8375 +#define kNtErrorDsSubtreeNotifyNotNcHead 8376 +#define kNtErrorDsNotifyFilterTooComplex 8377 +#define kNtErrorDsDupRdn 8378 +#define kNtErrorDsDupOid 8379 +#define kNtErrorDsDupMapiId 8380 +#define kNtErrorDsDupSchemaIdGuid 8381 +#define kNtErrorDsDupLdapDisplayName 8382 +#define kNtErrorDsSemanticAttTest 8383 +#define kNtErrorDsSyntaxMismatch 8384 +#define kNtErrorDsExistsInMustHave 8385 +#define kNtErrorDsExistsInMayHave 8386 +#define kNtErrorDsNonexistentMayHave 8387 +#define kNtErrorDsNonexistentMustHave 8388 +#define kNtErrorDsAuxClsTestFail 8389 +#define kNtErrorDsNonexistentPossSup 8390 +#define kNtErrorDsSubClsTestFail 8391 +#define kNtErrorDsBadRdnAttIdSyntax 8392 +#define kNtErrorDsExistsInAuxCls 8393 +#define kNtErrorDsExistsInSubCls 8394 +#define kNtErrorDsExistsInPossSup 8395 +#define kNtErrorDsRecalcschemaFailed 8396 +#define kNtErrorDsTreeDeleteNotFinished 8397 +#define kNtErrorDsCantDelete 8398 +#define kNtErrorDsAttSchemaReqId 8399 +#define kNtErrorDsBadAttSchemaSyntax 8400 +#define kNtErrorDsCantCacheAtt 8401 +#define kNtErrorDsCantCacheClass 8402 +#define kNtErrorDsCantRemoveAttCache 8403 +#define kNtErrorDsCantRemoveClassCache 8404 +#define kNtErrorDsCantRetrieveDn 8405 +#define kNtErrorDsMissingSupref 8406 +#define kNtErrorDsCantRetrieveInstance 8407 +#define kNtErrorDsCodeInconsistency 8408 +#define kNtErrorDsDatabaseError 8409 +#define kNtErrorDsGovernsidMissing 8410 +#define kNtErrorDsMissingExpectedAtt 8411 +#define kNtErrorDsNcnameMissingCrRef 8412 +#define kNtErrorDsSecurityCheckingError 8413 +#define kNtErrorDsSchemaNotLoaded 8414 +#define kNtErrorDsSchemaAllocFailed 8415 +#define kNtErrorDsAttSchemaReqSyntax 8416 +#define kNtErrorDsGcverifyError 8417 +#define kNtErrorDsDraSchemaMismatch 8418 +#define kNtErrorDsCantFindDsaObj 8419 +#define kNtErrorDsCantFindExpectedNc 8420 +#define kNtErrorDsCantFindNcInCache 8421 +#define kNtErrorDsCantRetrieveChild 8422 +#define kNtErrorDsSecurityIllegalModify 8423 +#define kNtErrorDsCantReplaceHiddenRec 8424 +#define kNtErrorDsBadHierarchyFile 8425 +#define kNtErrorDsBuildHierarchyTableFailed 8426 +#define kNtErrorDsConfigParamMissing 8427 +#define kNtErrorDsCountingAbIndicesFailed 8428 +#define kNtErrorDsHierarchyTableMallocFailed 8429 +#define kNtErrorDsInternalFailure 8430 +#define kNtErrorDsUnknownError 8431 +#define kNtErrorDsRootRequiresClassTop 8432 +#define kNtErrorDsRefusingFsmoRoles 8433 +#define kNtErrorDsMissingFsmoSettings 8434 +#define kNtErrorDsUnableToSurrenderRoles 8435 +#define kNtErrorDsDraGeneric 8436 +#define kNtErrorDsDraInvalidParameter 8437 +#define kNtErrorDsDraBusy 8438 +#define kNtErrorDsDraBadDn 8439 +#define kNtErrorDsDraBadNc 8440 +#define kNtErrorDsDraDnExists 8441 +#define kNtErrorDsDraInternalError 8442 +#define kNtErrorDsDraInconsistentDit 8443 +#define kNtErrorDsDraConnectionFailed 8444 +#define kNtErrorDsDraBadInstanceType 8445 +#define kNtErrorDsDraOutOfMem 8446 +#define kNtErrorDsDraMailProblem 8447 +#define kNtErrorDsDraRefAlreadyExists 8448 +#define kNtErrorDsDraRefNotFound 8449 +#define kNtErrorDsDraObjIsRepSource 8450 +#define kNtErrorDsDraDbError 8451 +#define kNtErrorDsDraNoReplica 8452 +#define kNtErrorDsDraAccessDenied 8453 +#define kNtErrorDsDraNotSupported 8454 +#define kNtErrorDsDraRpcCancelled 8455 +#define kNtErrorDsDraSourceDisabled 8456 +#define kNtErrorDsDraSinkDisabled 8457 +#define kNtErrorDsDraNameCollision 8458 +#define kNtErrorDsDraSourceReinstalled 8459 +#define kNtErrorDsDraMissingParent 8460 +#define kNtErrorDsDraPreempted 8461 +#define kNtErrorDsDraAbandonSync 8462 +#define kNtErrorDsDraShutdown 8463 +#define kNtErrorDsDraIncompatiblePartialSet 8464 +#define kNtErrorDsDraSourceIsPartialReplica 8465 +#define kNtErrorDsDraExtnConnectionFailed 8466 +#define kNtErrorDsInstallSchemaMismatch 8467 +#define kNtErrorDsDupLinkId 8468 +#define kNtErrorDsNameErrorResolving 8469 +#define kNtErrorDsNameErrorNotFound 8470 +#define kNtErrorDsNameErrorNotUnique 8471 +#define kNtErrorDsNameErrorNoMapping 8472 +#define kNtErrorDsNameErrorDomainOnly 8473 +#define kNtErrorDsNameErrorNoSyntacticalMapping 8474 +#define kNtErrorDsConstructedAttMod 8475 +#define kNtErrorDsWrongOmObjClass 8476 +#define kNtErrorDsDraReplPending 8477 +#define kNtErrorDsDsRequired 8478 +#define kNtErrorDsInvalidLdapDisplayName 8479 +#define kNtErrorDsNonBaseSearch 8480 +#define kNtErrorDsCantRetrieveAtts 8481 +#define kNtErrorDsBacklinkWithoutLink 8482 +#define kNtErrorDsEpochMismatch 8483 +#define kNtErrorDsSrcNameMismatch 8484 +#define kNtErrorDsSrcAndDstNcIdentical 8485 +#define kNtErrorDsDstNcMismatch 8486 +#define kNtErrorDsNotAuthoritiveForDstNc 8487 +#define kNtErrorDsSrcGuidMismatch 8488 +#define kNtErrorDsCantMoveDeletedObject 8489 +#define kNtErrorDsPdcOperationInProgress 8490 +#define kNtErrorDsCrossDomainCleanupReqd 8491 +#define kNtErrorDsIllegalXdomMoveOperation 8492 +#define kNtErrorDsCantWithAcctGroupMembershps 8493 +#define kNtErrorDsNcMustHaveNcParent 8494 +#define kNtErrorDsCrImpossibleToValidate 8495 +#define kNtErrorDsDstDomainNotNative 8496 +#define kNtErrorDsMissingInfrastructureContainer 8497 +#define kNtErrorDsCantMoveAccountGroup 8498 +#define kNtErrorDsCantMoveResourceGroup 8499 +#define kNtErrorDsInvalidSearchFlag 8500 +#define kNtErrorDsNoTreeDeleteAboveNc 8501 +#define kNtErrorDsCouldntLockTreeForDelete 8502 +#define kNtErrorDsCouldntIdentifyObjectsForTreeDelete 8503 +#define kNtErrorDsSamInitFailure 8504 +#define kNtErrorDsSensitiveGroupViolation 8505 +#define kNtErrorDsCantModPrimarygroupid 8506 +#define kNtErrorDsIllegalBaseSchemaMod 8507 +#define kNtErrorDsNonsafeSchemaChange 8508 +#define kNtErrorDsSchemaUpdateDisallowed 8509 +#define kNtErrorDsCantCreateUnderSchema 8510 +#define kNtErrorDsInstallNoSrcSchVersion 8511 +#define kNtErrorDsInstallNoSchVersionInInifile 8512 +#define kNtErrorDsInvalidGroupType 8513 +#define kNtErrorDsNoNestGlobalgroupInMixeddomain 8514 +#define kNtErrorDsNoNestLocalgroupInMixeddomain 8515 +#define kNtErrorDsGlobalCantHaveLocalMember 8516 +#define kNtErrorDsGlobalCantHaveUniversalMember 8517 +#define kNtErrorDsUniversalCantHaveLocalMember 8518 +#define kNtErrorDsGlobalCantHaveCrossdomainMember 8519 +#define kNtErrorDsLocalCantHaveCrossdomainLocalMember 8520 +#define kNtErrorDsHavePrimaryMembers 8521 +#define kNtErrorDsStringSdConversionFailed 8522 +#define kNtErrorDsNamingMasterGc 8523 +#define kNtErrorDsDnsLookupFailure 8524 +#define kNtErrorDsCouldntUpdateSpns 8525 +#define kNtErrorDsCantRetrieveSd 8526 +#define kNtErrorDsKeyNotUnique 8527 +#define kNtErrorDsWrongLinkedAttSyntax 8528 +#define kNtErrorDsSamNeedBootkeyPassword 8529 +#define kNtErrorDsSamNeedBootkeyFloppy 8530 +#define kNtErrorDsCantStart 8531 +#define kNtErrorDsInitFailure 8532 +#define kNtErrorDsNoPktPrivacyOnConnection 8533 +#define kNtErrorDsSourceDomainInForest 8534 +#define kNtErrorDsDestinationDomainNotInForest 8535 +#define kNtErrorDsDestinationAuditingNotEnabled 8536 +#define kNtErrorDsCantFindDcForSrcDomain 8537 +#define kNtErrorDsSrcObjNotGroupOrUser 8538 +#define kNtErrorDsSrcSidExistsInForest 8539 +#define kNtErrorDsSrcAndDstObjectClassMismatch 8540 +#define kNtErrorSamInitFailure 8541 +#define kNtErrorDsDraSchemaInfoShip 8542 +#define kNtErrorDsDraSchemaConflict 8543 +#define kNtErrorDsDraEarlierSchemaConflict 8544 +#define kNtErrorDsDraObjNcMismatch 8545 +#define kNtErrorDsNcStillHasDsas 8546 +#define kNtErrorDsGcRequired 8547 +#define kNtErrorDsLocalMemberOfLocalOnly 8548 +#define kNtErrorDsNoFpoInUniversalGroups 8549 +#define kNtErrorDsCantAddToGc 8550 +#define kNtErrorDsNoCheckpointWithPdc 8551 +#define kNtErrorDsSourceAuditingNotEnabled 8552 +#define kNtErrorDsCantCreateInNondomainNc 8553 +#define kNtErrorDsInvalidNameForSpn 8554 +#define kNtErrorDsFilterUsesContructedAttrs 8555 +#define kNtErrorDsUnicodepwdNotInQuotes 8556 +#define kNtErrorDsMachineAccountQuotaExceeded 8557 +#define kNtErrorDsMustBeRunOnDstDc 8558 +#define kNtErrorDsSrcDcMustBeSp4OrGreater 8559 +#define kNtErrorDsCantTreeDeleteCriticalObj 8560 +#define kNtErrorDsInitFailureConsole 8561 +#define kNtErrorDsSamInitFailureConsole 8562 +#define kNtErrorDsForestVersionTooHigh 8563 +#define kNtErrorDsDomainVersionTooHigh 8564 +#define kNtErrorDsForestVersionTooLow 8565 +#define kNtErrorDsDomainVersionTooLow 8566 +#define kNtErrorDsIncompatibleVersion 8567 +#define kNtErrorDsLowDsaVersion 8568 +#define kNtErrorDsNoBehaviorVersionInMixeddomain 8569 +#define kNtErrorDsNotSupportedSortOrder 8570 +#define kNtErrorDsNameNotUnique 8571 +#define kNtErrorDsMachineAccountCreatedPrent4 8572 +#define kNtErrorDsOutOfVersionStore 8573 +#define kNtErrorDsIncompatibleControlsUsed 8574 +#define kNtErrorDsNoRefDomain 8575 +#define kNtErrorDsReservedLinkId 8576 +#define kNtErrorDsLinkIdNotAvailable 8577 +#define kNtErrorDsAgCantHaveUniversalMember 8578 +#define kNtErrorDsModifydnDisallowedByInstanceType 8579 +#define kNtErrorDsNoObjectMoveInSchemaNc 8580 +#define kNtErrorDsModifydnDisallowedByFlag 8581 +#define kNtErrorDsModifydnWrongGrandparent 8582 +#define kNtErrorDsNameErrorTrustReferral 8583 +#define kNtErrorNotSupportedOnStandardServer 8584 +#define kNtErrorDsCantAccessRemotePartOfAd 8585 +#define kNtErrorDsCrImpossibleToValidateV2 8586 +#define kNtErrorDsThreadLimitExceeded 8587 +#define kNtErrorDsNotClosest 8588 +#define kNtErrorDsCantDeriveSpnWithoutServerRef 8589 +#define kNtErrorDsSingleUserModeFailed 8590 +#define kNtErrorDsNtdscriptSyntaxError 8591 +#define kNtErrorDsNtdscriptProcessError 8592 +#define kNtErrorDsDifferentReplEpochs 8593 +#define kNtErrorDsDrsExtensionsChanged 8594 +#define kNtErrorDsReplicaSetChangeNotAllowedOnDisabledCr 8595 +#define kNtErrorDsNoMsdsIntid 8596 +#define kNtErrorDsDupMsdsIntid 8597 +#define kNtErrorDsExistsInRdnattid 8598 +#define kNtErrorDsAuthorizationFailed 8599 +#define kNtErrorDsInvalidScript 8600 +#define kNtErrorDsRemoteCrossrefOpFailed 8601 +#define kNtErrorDsCrossRefBusy 8602 +#define kNtErrorDsCantDeriveSpnForDeletedDomain 8603 +#define kNtErrorDsCantDemoteWithWriteableNc 8604 +#define kNtErrorDsDuplicateIdFound 8605 +#define kNtErrorDsInsufficientAttrToCreateObject 8606 +#define kNtErrorDsGroupConversionError 8607 +#define kNtErrorDsCantMoveAppBasicGroup 8608 +#define kNtErrorDsCantMoveAppQueryGroup 8609 +#define kNtErrorDsRoleNotVerified 8610 +#define kNtErrorDsWkoContainerCannotBeSpecial 8611 +#define kNtErrorDsDomainRenameInProgress 8612 +#define kNtErrorDsExistingAdChildNc 8613 +#define kNtErrorDsReplLifetimeExceeded 8614 +#define kNtErrorDsDisallowedInSystemContainer 8615 +#define kNtErrorDsLdapSendQueueFull 8616 +#define kNtErrorDsDraOutScheduleWindow 8617 +#define kNtErrorDsPolicyNotKnown 8618 +#define kNtErrorNoSiteSettingsObject 8619 +#define kNtErrorNoSecrets 8620 +#define kNtErrorNoWritableDcFound 8621 +#define kNtErrorDsNoServerObject 8622 +#define kNtErrorDsNoNtdsaObject 8623 +#define kNtErrorDsNonAsqSearch 8624 +#define kNtErrorDsAuditFailure 8625 +#define kNtErrorDsInvalidSearchFlagSubtree 8626 +#define kNtErrorDsInvalidSearchFlagTuple 8627 +#define kNtErrorDsHierarchyTableTooDeep 8628 +#define kNtErrorDsDraCorruptUtdVector 8629 +#define kNtErrorDsDraSecretsDenied 8630 +#define kNtErrorDsReservedMapiId 8631 +#define kNtErrorDsMapiIdNotAvailable 8632 +#define kNtErrorDsDraMissingKrbtgtSecret 8633 +#define kNtErrorDsDomainNameExistsInForest 8634 +#define kNtErrorDsFlatNameExistsInForest 8635 +#define kNtErrorInvalidUserPrincipalName 8636 +#define kNtErrorDsOidMappedGroupCantHaveMembers 8637 +#define kNtErrorDsOidNotFound 8638 +#define kNtErrorDsDraRecycledTarget 8639 +#define kNtErrorDsDisallowedNcRedirect 8640 +#define kNtErrorDsHighAdldsFfl 8641 +#define kNtErrorDsHighDsaVersion 8642 +#define kNtErrorDsLowAdldsFfl 8643 +#define kNtErrorDomainSidSameAsLocalWorkstation 8644 +#define kNtErrorDsUndeleteSamValidationFailed 8645 +#define kNtErrorIncorrectAccountType 8646 +#define kNtErrorDsSpnValueNotUniqueInForest 8647 +#define kNtErrorDsUpnValueNotUniqueInForest 8648 +#define kNtErrorDsMissingForestTrust 8649 +#define kNtErrorDsValueKeyNotUnique 8650 +#define kNtErrorIpsecQmPolicyExists 13000 +#define kNtErrorIpsecQmPolicyNotFound 13001 +#define kNtErrorIpsecQmPolicyInUse 13002 +#define kNtErrorIpsecMmPolicyExists 13003 +#define kNtErrorIpsecMmPolicyNotFound 13004 +#define kNtErrorIpsecMmPolicyInUse 13005 +#define kNtErrorIpsecMmFilterExists 13006 +#define kNtErrorIpsecMmFilterNotFound 13007 +#define kNtErrorIpsecTransportFilterExists 13008 +#define kNtErrorIpsecTransportFilterNotFound 13009 +#define kNtErrorIpsecMmAuthExists 13010 +#define kNtErrorIpsecMmAuthNotFound 13011 +#define kNtErrorIpsecMmAuthInUse 13012 +#define kNtErrorIpsecDefaultMmPolicyNotFound 13013 +#define kNtErrorIpsecDefaultMmAuthNotFound 13014 +#define kNtErrorIpsecDefaultQmPolicyNotFound 13015 +#define kNtErrorIpsecTunnelFilterExists 13016 +#define kNtErrorIpsecTunnelFilterNotFound 13017 +#define kNtErrorIpsecMmFilterPendingDeletion 13018 +#define kNtErrorIpsecTransportFilterPendingDeletion 13019 +#define kNtErrorIpsecTunnelFilterPendingDeletion 13020 +#define kNtErrorIpsecMmPolicyPendingDeletion 13021 +#define kNtErrorIpsecMmAuthPendingDeletion 13022 +#define kNtErrorIpsecQmPolicyPendingDeletion 13023 +#define kNtErrorIpsecIkeNegStatusBegin 13800 +#define kNtErrorIpsecIkeAuthFail 13801 +#define kNtErrorIpsecIkeAttribFail 13802 +#define kNtErrorIpsecIkeNegotiationPending 13803 +#define kNtErrorIpsecIkeGeneralProcessingError 13804 +#define kNtErrorIpsecIkeTimedOut 13805 +#define kNtErrorIpsecIkeNoCert 13806 +#define kNtErrorIpsecIkeSaDeleted 13807 +#define kNtErrorIpsecIkeSaReaped 13808 +#define kNtErrorIpsecIkeMmAcquireDrop 13809 +#define kNtErrorIpsecIkeQmAcquireDrop 13810 +#define kNtErrorIpsecIkeQueueDropMm 13811 +#define kNtErrorIpsecIkeQueueDropNoMm 13812 +#define kNtErrorIpsecIkeDropNoResponse 13813 +#define kNtErrorIpsecIkeMmDelayDrop 13814 +#define kNtErrorIpsecIkeQmDelayDrop 13815 +#define kNtErrorIpsecIkeError 13816 +#define kNtErrorIpsecIkeCrlFailed 13817 +#define kNtErrorIpsecIkeInvalidKeyUsage 13818 +#define kNtErrorIpsecIkeInvalidCertType 13819 +#define kNtErrorIpsecIkeNoPrivateKey 13820 +#define kNtErrorIpsecIkeSimultaneousRekey 13821 +#define kNtErrorIpsecIkeDhFail 13822 +#define kNtErrorIpsecIkeCriticalPayloadNotRecognized 13823 +#define kNtErrorIpsecIkeInvalidHeader 13824 +#define kNtErrorIpsecIkeNoPolicy 13825 +#define kNtErrorIpsecIkeInvalidSignature 13826 +#define kNtErrorIpsecIkeKerberosError 13827 +#define kNtErrorIpsecIkeNoPublicKey 13828 +#define kNtErrorIpsecIkeProcessErr 13829 +#define kNtErrorIpsecIkeProcessErrSa 13830 +#define kNtErrorIpsecIkeProcessErrProp 13831 +#define kNtErrorIpsecIkeProcessErrTrans 13832 +#define kNtErrorIpsecIkeProcessErrKe 13833 +#define kNtErrorIpsecIkeProcessErrId 13834 +#define kNtErrorIpsecIkeProcessErrCert 13835 +#define kNtErrorIpsecIkeProcessErrCertReq 13836 +#define kNtErrorIpsecIkeProcessErrHash 13837 +#define kNtErrorIpsecIkeProcessErrSig 13838 +#define kNtErrorIpsecIkeProcessErrNonce 13839 +#define kNtErrorIpsecIkeProcessErrNotify 13840 +#define kNtErrorIpsecIkeProcessErrDelete 13841 +#define kNtErrorIpsecIkeProcessErrVendor 13842 +#define kNtErrorIpsecIkeInvalidPayload 13843 +#define kNtErrorIpsecIkeLoadSoftSa 13844 +#define kNtErrorIpsecIkeSoftSaTornDown 13845 +#define kNtErrorIpsecIkeInvalidCookie 13846 +#define kNtErrorIpsecIkeNoPeerCert 13847 +#define kNtErrorIpsecIkePeerCrlFailed 13848 +#define kNtErrorIpsecIkePolicyChange 13849 +#define kNtErrorIpsecIkeNoMmPolicy 13850 +#define kNtErrorIpsecIkeNotcbpriv 13851 +#define kNtErrorIpsecIkeSecloadfail 13852 +#define kNtErrorIpsecIkeFailsspinit 13853 +#define kNtErrorIpsecIkeFailqueryssp 13854 +#define kNtErrorIpsecIkeSrvacqfail 13855 +#define kNtErrorIpsecIkeSrvquerycred 13856 +#define kNtErrorIpsecIkeGetspifail 13857 +#define kNtErrorIpsecIkeInvalidFilter 13858 +#define kNtErrorIpsecIkeOutOfMemory 13859 +#define kNtErrorIpsecIkeAddUpdateKeyFailed 13860 +#define kNtErrorIpsecIkeInvalidPolicy 13861 +#define kNtErrorIpsecIkeUnknownDoi 13862 +#define kNtErrorIpsecIkeInvalidSituation 13863 +#define kNtErrorIpsecIkeDhFailure 13864 +#define kNtErrorIpsecIkeInvalidGroup 13865 +#define kNtErrorIpsecIkeEncrypt 13866 +#define kNtErrorIpsecIkeDecrypt 13867 +#define kNtErrorIpsecIkePolicyMatch 13868 +#define kNtErrorIpsecIkeUnsupportedId 13869 +#define kNtErrorIpsecIkeInvalidHash 13870 +#define kNtErrorIpsecIkeInvalidHashAlg 13871 +#define kNtErrorIpsecIkeInvalidHashSize 13872 +#define kNtErrorIpsecIkeInvalidEncryptAlg 13873 +#define kNtErrorIpsecIkeInvalidAuthAlg 13874 +#define kNtErrorIpsecIkeInvalidSig 13875 +#define kNtErrorIpsecIkeLoadFailed 13876 +#define kNtErrorIpsecIkeRpcDelete 13877 +#define kNtErrorIpsecIkeBenignReinit 13878 +#define kNtErrorIpsecIkeInvalidResponderLifetimeNotify 13879 +#define kNtErrorIpsecIkeInvalidMajorVersion 13880 +#define kNtErrorIpsecIkeInvalidCertKeylen 13881 +#define kNtErrorIpsecIkeMmLimit 13882 +#define kNtErrorIpsecIkeNegotiationDisabled 13883 +#define kNtErrorIpsecIkeQmLimit 13884 +#define kNtErrorIpsecIkeMmExpired 13885 +#define kNtErrorIpsecIkePeerMmAssumedInvalid 13886 +#define kNtErrorIpsecIkeCertChainPolicyMismatch 13887 +#define kNtErrorIpsecIkeUnexpectedMessageId 13888 +#define kNtErrorIpsecIkeInvalidAuthPayload 13889 +#define kNtErrorIpsecIkeDosCookieSent 13890 +#define kNtErrorIpsecIkeShuttingDown 13891 +#define kNtErrorIpsecIkeCgaAuthFailed 13892 +#define kNtErrorIpsecIkeProcessErrNatoa 13893 +#define kNtErrorIpsecIkeInvalidMmForQm 13894 +#define kNtErrorIpsecIkeQmExpired 13895 +#define kNtErrorIpsecIkeTooManyFilters 13896 +#define kNtErrorIpsecIkeNegStatusEnd 13897 +#define kNtErrorIpsecIkeKillDummyNapTunnel 13898 +#define kNtErrorIpsecIkeInnerIpAssignmentFailure 13899 +#define kNtErrorIpsecIkeRequireCpPayloadMissing 13900 +#define kNtErrorIpsecKeyModuleImpersonationNegotiationPending 13901 +#define kNtErrorIpsecIkeCoexistenceSuppress 13902 +#define kNtErrorIpsecIkeRatelimitDrop 13903 +#define kNtErrorIpsecIkePeerDoesntSupportMobike 13904 +#define kNtErrorIpsecIkeAuthorizationFailure 13905 +#define kNtErrorIpsecIkeStrongCredAuthorizationFailure 13906 +#define kNtErrorIpsecIkeAuthorizationFailureWithOptionalRetry 13907 +#define kNtErrorIpsecIkeStrongCredAuthorizationAndCertmapFailure 13908 +#define kNtErrorIpsecIkeNegStatusExtendedEnd 13909 +#define kNtErrorIpsecBadSpi 13910 +#define kNtErrorIpsecSaLifetimeExpired 13911 +#define kNtErrorIpsecWrongSa 13912 +#define kNtErrorIpsecReplayCheckFailed 13913 +#define kNtErrorIpsecInvalidPacket 13914 +#define kNtErrorIpsecIntegrityCheckFailed 13915 +#define kNtErrorIpsecClearTextDrop 13916 +#define kNtErrorIpsecAuthFirewallDrop 13917 +#define kNtErrorIpsecThrottleDrop 13918 +#define kNtErrorIpsecDospBlock 13925 +#define kNtErrorIpsecDospReceivedMulticast 13926 +#define kNtErrorIpsecDospInvalidPacket 13927 +#define kNtErrorIpsecDospStateLookupFailed 13928 +#define kNtErrorIpsecDospMaxEntries 13929 +#define kNtErrorIpsecDospKeymodNotAllowed 13930 +#define kNtErrorIpsecDospNotInstalled 13931 +#define kNtErrorIpsecDospMaxPerIpRatelimitQueues 13932 +#define kNtErrorSxsSectionNotFound 14000 +#define kNtErrorSxsCantGenActctx 14001 +#define kNtErrorSxsInvalidActctxdataFormat 14002 +#define kNtErrorSxsAssemblyNotFound 14003 +#define kNtErrorSxsManifestFormatError 14004 +#define kNtErrorSxsManifestParseError 14005 +#define kNtErrorSxsActivationContextDisabled 14006 +#define kNtErrorSxsKeyNotFound 14007 +#define kNtErrorSxsVersionConflict 14008 +#define kNtErrorSxsWrongSectionType 14009 +#define kNtErrorSxsThreadQueriesDisabled 14010 +#define kNtErrorSxsProcessDefaultAlreadySet 14011 +#define kNtErrorSxsUnknownEncodingGroup 14012 +#define kNtErrorSxsUnknownEncoding 14013 +#define kNtErrorSxsInvalidXmlNamespaceUri 14014 +#define kNtErrorSxsRootManifestDependencyNotInstalled 14015 +#define kNtErrorSxsLeafManifestDependencyNotInstalled 14016 +#define kNtErrorSxsInvalidAssemblyIdentityAttribute 14017 +#define kNtErrorSxsManifestMissingRequiredDefaultNamespace 14018 +#define kNtErrorSxsManifestInvalidRequiredDefaultNamespace 14019 +#define kNtErrorSxsPrivateManifestCrossPathWithReparsePoint 14020 +#define kNtErrorSxsDuplicateDllName 14021 +#define kNtErrorSxsDuplicateWindowclassName 14022 +#define kNtErrorSxsDuplicateClsid 14023 +#define kNtErrorSxsDuplicateIid 14024 +#define kNtErrorSxsDuplicateTlbid 14025 +#define kNtErrorSxsDuplicateProgid 14026 +#define kNtErrorSxsDuplicateAssemblyName 14027 +#define kNtErrorSxsFileHashMismatch 14028 +#define kNtErrorSxsPolicyParseError 14029 +#define kNtErrorSxsXmlEMissingquote 14030 +#define kNtErrorSxsXmlECommentsyntax 14031 +#define kNtErrorSxsXmlEBadstartnamechar 14032 +#define kNtErrorSxsXmlEBadnamechar 14033 +#define kNtErrorSxsXmlEBadcharinstring 14034 +#define kNtErrorSxsXmlEXmldeclsyntax 14035 +#define kNtErrorSxsXmlEBadchardata 14036 +#define kNtErrorSxsXmlEMissingwhitespace 14037 +#define kNtErrorSxsXmlEExpectingtagend 14038 +#define kNtErrorSxsXmlEMissingsemicolon 14039 +#define kNtErrorSxsXmlEUnbalancedparen 14040 +#define kNtErrorSxsXmlEInternalerror 14041 +#define kNtErrorSxsXmlEUnexpectedWhitespace 14042 +#define kNtErrorSxsXmlEIncompleteEncoding 14043 +#define kNtErrorSxsXmlEMissingParen 14044 +#define kNtErrorSxsXmlEExpectingclosequote 14045 +#define kNtErrorSxsXmlEMultipleColons 14046 +#define kNtErrorSxsXmlEInvalidDecimal 14047 +#define kNtErrorSxsXmlEInvalidHexidecimal 14048 +#define kNtErrorSxsXmlEInvalidUnicode 14049 +#define kNtErrorSxsXmlEWhitespaceorquestionmark 14050 +#define kNtErrorSxsXmlEUnexpectedendtag 14051 +#define kNtErrorSxsXmlEUnclosedtag 14052 +#define kNtErrorSxsXmlEDuplicateattribute 14053 +#define kNtErrorSxsXmlEMultipleroots 14054 +#define kNtErrorSxsXmlEInvalidatrootlevel 14055 +#define kNtErrorSxsXmlEBadxmldecl 14056 +#define kNtErrorSxsXmlEMissingroot 14057 +#define kNtErrorSxsXmlEUnexpectedeof 14058 +#define kNtErrorSxsXmlEBadperefinsubset 14059 +#define kNtErrorSxsXmlEUnclosedstarttag 14060 +#define kNtErrorSxsXmlEUnclosedendtag 14061 +#define kNtErrorSxsXmlEUnclosedstring 14062 +#define kNtErrorSxsXmlEUnclosedcomment 14063 +#define kNtErrorSxsXmlEUncloseddecl 14064 +#define kNtErrorSxsXmlEUnclosedcdata 14065 +#define kNtErrorSxsXmlEReservednamespace 14066 +#define kNtErrorSxsXmlEInvalidencoding 14067 +#define kNtErrorSxsXmlEInvalidswitch 14068 +#define kNtErrorSxsXmlEBadxmlcase 14069 +#define kNtErrorSxsXmlEInvalidStandalone 14070 +#define kNtErrorSxsXmlEUnexpectedStandalone 14071 +#define kNtErrorSxsXmlEInvalidVersion 14072 +#define kNtErrorSxsXmlEMissingequals 14073 +#define kNtErrorSxsProtectionRecoveryFailed 14074 +#define kNtErrorSxsProtectionPublicKeyTooShort 14075 +#define kNtErrorSxsProtectionCatalogNotValid 14076 +#define kNtErrorSxsUntranslatableHresult 14077 +#define kNtErrorSxsProtectionCatalogFileMissing 14078 +#define kNtErrorSxsMissingAssemblyIdentityAttribute 14079 +#define kNtErrorSxsInvalidAssemblyIdentityAttributeName 14080 +#define kNtErrorSxsAssemblyMissing 14081 +#define kNtErrorSxsCorruptActivationStack 14082 +#define kNtErrorSxsCorruption 14083 +#define kNtErrorSxsEarlyDeactivation 14084 +#define kNtErrorSxsInvalidDeactivation 14085 +#define kNtErrorSxsMultipleDeactivation 14086 +#define kNtErrorSxsProcessTerminationRequested 14087 +#define kNtErrorSxsReleaseActivationContext 14088 +#define kNtErrorSxsSystemDefaultActivationContextEmpty 14089 +#define kNtErrorSxsInvalidIdentityAttributeValue 14090 +#define kNtErrorSxsInvalidIdentityAttributeName 14091 +#define kNtErrorSxsIdentityDuplicateAttribute 14092 +#define kNtErrorSxsIdentityParseError 14093 +#define kNtErrorMalformedSubstitutionString 14094 +#define kNtErrorSxsIncorrectPublicKeyToken 14095 +#define kNtErrorUnmappedSubstitutionString 14096 +#define kNtErrorSxsAssemblyNotLocked 14097 +#define kNtErrorSxsComponentStoreCorrupt 14098 +#define kNtErrorAdvancedInstallerFailed 14099 +#define kNtErrorXmlEncodingMismatch 14100 +#define kNtErrorSxsManifestIdentitySameButContentsDifferent 14101 +#define kNtErrorSxsIdentitiesDifferent 14102 +#define kNtErrorSxsAssemblyIsNotADeployment 14103 +#define kNtErrorSxsFileNotPartOfAssembly 14104 +#define kNtErrorSxsManifestTooBig 14105 +#define kNtErrorSxsSettingNotRegistered 14106 +#define kNtErrorSxsTransactionClosureIncomplete 14107 +#define kNtErrorSmiPrimitiveInstallerFailed 14108 +#define kNtErrorGenericCommandFailed 14109 +#define kNtErrorSxsFileHashMissing 14110 +#define kNtErrorEvtInvalidChannelPath 15000 +#define kNtErrorEvtInvalidQuery 15001 +#define kNtErrorEvtPublisherMetadataNotFound 15002 +#define kNtErrorEvtEventTemplateNotFound 15003 +#define kNtErrorEvtInvalidPublisherName 15004 +#define kNtErrorEvtInvalidEventData 15005 +#define kNtErrorEvtChannelNotFound 15007 +#define kNtErrorEvtMalformedXmlText 15008 +#define kNtErrorEvtSubscriptionToDirectChannel 15009 +#define kNtErrorEvtConfigurationError 15010 +#define kNtErrorEvtQueryResultStale 15011 +#define kNtErrorEvtQueryResultInvalidPosition 15012 +#define kNtErrorEvtNonValidatingMsxml 15013 +#define kNtErrorEvtFilterAlreadyscoped 15014 +#define kNtErrorEvtFilterNoteltset 15015 +#define kNtErrorEvtFilterInvarg 15016 +#define kNtErrorEvtFilterInvtest 15017 +#define kNtErrorEvtFilterInvtype 15018 +#define kNtErrorEvtFilterParseerr 15019 +#define kNtErrorEvtFilterUnsupportedop 15020 +#define kNtErrorEvtFilterUnexpectedtoken 15021 +#define kNtErrorEvtInvalidOperationOverEnabledDirectChannel 15022 +#define kNtErrorEvtInvalidChannelPropertyValue 15023 +#define kNtErrorEvtInvalidPublisherPropertyValue 15024 +#define kNtErrorEvtChannelCannotActivate 15025 +#define kNtErrorEvtFilterTooComplex 15026 +#define kNtErrorEvtMessageNotFound 15027 +#define kNtErrorEvtMessageIdNotFound 15028 +#define kNtErrorEvtUnresolvedValueInsert 15029 +#define kNtErrorEvtUnresolvedParameterInsert 15030 +#define kNtErrorEvtMaxInsertsReached 15031 +#define kNtErrorEvtEventDefinitionNotFound 15032 +#define kNtErrorEvtMessageLocaleNotFound 15033 +#define kNtErrorEvtVersionTooOld 15034 +#define kNtErrorEvtVersionTooNew 15035 +#define kNtErrorEvtCannotOpenChannelOfQuery 15036 +#define kNtErrorEvtPublisherDisabled 15037 +#define kNtErrorEvtFilterOutOfRange 15038 +#define kNtErrorEcSubscriptionCannotActivate 15080 +#define kNtErrorEcLogDisabled 15081 +#define kNtErrorEcCircularForwarding 15082 +#define kNtErrorEcCredstoreFull 15083 +#define kNtErrorEcCredNotFound 15084 +#define kNtErrorEcNoActiveChannel 15085 +#define kNtErrorMuiFileNotFound 15100 +#define kNtErrorMuiInvalidFile 15101 +#define kNtErrorMuiInvalidRcConfig 15102 +#define kNtErrorMuiInvalidLocaleName 15103 +#define kNtErrorMuiInvalidUltimatefallbackName 15104 +#define kNtErrorMuiFileNotLoaded 15105 +#define kNtErrorResourceEnumUserStop 15106 +#define kNtErrorMuiIntlsettingsUilangNotInstalled 15107 +#define kNtErrorMuiIntlsettingsInvalidLocaleName 15108 +#define kNtErrorMrmRuntimeNoDefaultOrNeutralResource 15110 +#define kNtErrorMrmInvalidPriconfig 15111 +#define kNtErrorMrmInvalidFileType 15112 +#define kNtErrorMrmUnknownQualifier 15113 +#define kNtErrorMrmInvalidQualifierValue 15114 +#define kNtErrorMrmNoCandidate 15115 +#define kNtErrorMrmNoMatchOrDefaultCandidate 15116 +#define kNtErrorMrmResourceTypeMismatch 15117 +#define kNtErrorMrmDuplicateMapName 15118 +#define kNtErrorMrmDuplicateEntry 15119 +#define kNtErrorMrmInvalidResourceIdentifier 15120 +#define kNtErrorMrmFilepathTooLong 15121 +#define kNtErrorMrmUnsupportedDirectoryType 15122 +#define kNtErrorMrmInvalidPriFile 15126 +#define kNtErrorMrmNamedResourceNotFound 15127 +#define kNtErrorMrmMapNotFound 15135 +#define kNtErrorMrmUnsupportedProfileType 15136 +#define kNtErrorMrmInvalidQualifierOperator 15137 +#define kNtErrorMrmIndeterminateQualifierValue 15138 +#define kNtErrorMrmAutomergeEnabled 15139 +#define kNtErrorMrmTooManyResources 15140 +#define kNtErrorMrmUnsupportedFileTypeForMerge 15141 +#define kNtErrorMrmUnsupportedFileTypeForLoadUnloadPriFile 15142 +#define kNtErrorMrmNoCurrentViewOnThread 15143 +#define kNtErrorDifferentProfileResourceManagerExist 15144 +#define kNtErrorOperationNotAllowedFromSystemComponent 15145 +#define kNtErrorMrmDirectRefToNonDefaultResource 15146 +#define kNtErrorMrmGenerationCountMismatch 15147 +#define kNtErrorPriMergeVersionMismatch 15148 +#define kNtErrorPriMergeMissingSchema 15149 +#define kNtErrorPriMergeLoadFileFailed 15150 +#define kNtErrorPriMergeAddFileFailed 15151 +#define kNtErrorPriMergeWriteFileFailed 15152 +#define kNtErrorPriMergeMultiplePackageFamiliesNotAllowed 15153 +#define kNtErrorPriMergeMultipleMainPackagesNotAllowed 15154 +#define kNtErrorPriMergeBundlePackagesNotAllowed 15155 +#define kNtErrorPriMergeMainPackageRequired 15156 +#define kNtErrorPriMergeResourcePackageRequired 15157 +#define kNtErrorPriMergeInvalidFileName 15158 +#define kNtErrorMcaInvalidCapabilitiesString 15200 +#define kNtErrorMcaInvalidVcpVersion 15201 +#define kNtErrorMcaMonitorViolatesMccsSpecification 15202 +#define kNtErrorMcaMccsVersionMismatch 15203 +#define kNtErrorMcaUnsupportedMccsVersion 15204 +#define kNtErrorMcaInternalError 15205 +#define kNtErrorMcaInvalidTechnologyTypeReturned 15206 +#define kNtErrorMcaUnsupportedColorTemperature 15207 +#define kNtErrorAmbiguousSystemDevice 15250 +#define kNtErrorSystemDeviceNotFound 15299 +#define kNtErrorHashNotSupported 15300 +#define kNtErrorHashNotPresent 15301 +#define kNtErrorSecondaryIcProviderNotRegistered 15321 +#define kNtErrorGpioClientInformationInvalid 15322 +#define kNtErrorGpioVersionNotSupported 15323 +#define kNtErrorGpioInvalidRegistrationPacket 15324 +#define kNtErrorGpioOperationDenied 15325 +#define kNtErrorGpioIncompatibleConnectMode 15326 +#define kNtErrorGpioInterruptAlreadyUnmasked 15327 +#define kNtErrorCannotSwitchRunlevel 15400 +#define kNtErrorInvalidRunlevelSetting 15401 +#define kNtErrorRunlevelSwitchTimeout 15402 +#define kNtErrorRunlevelSwitchAgentTimeout 15403 +#define kNtErrorRunlevelSwitchInProgress 15404 +#define kNtErrorServicesFailedAutostart 15405 +#define kNtErrorComTaskStopPending 15501 +#define kNtErrorInstallOpenPackageFailed 15600 +#define kNtErrorInstallPackageNotFound 15601 +#define kNtErrorInstallInvalidPackage 15602 +#define kNtErrorInstallResolveDependencyFailed 15603 +#define kNtErrorInstallOutOfDiskSpace 15604 +#define kNtErrorInstallNetworkFailure 15605 +#define kNtErrorInstallRegistrationFailure 15606 +#define kNtErrorInstallDeregistrationFailure 15607 +#define kNtErrorInstallCancel 15608 +#define kNtErrorInstallFailed 15609 +#define kNtErrorRemoveFailed 15610 +#define kNtErrorPackageAlreadyExists 15611 +#define kNtErrorNeedsRemediation 15612 +#define kNtErrorInstallPrerequisiteFailed 15613 +#define kNtErrorPackageRepositoryCorrupted 15614 +#define kNtErrorInstallPolicyFailure 15615 +#define kNtErrorPackageUpdating 15616 +#define kNtErrorDeploymentBlockedByPolicy 15617 +#define kNtErrorPackagesInUse 15618 +#define kNtErrorRecoveryFileCorrupt 15619 +#define kNtErrorInvalidStagedSignature 15620 +#define kNtErrorDeletingExistingApplicationdataStoreFailed 15621 +#define kNtErrorInstallPackageDowngrade 15622 +#define kNtErrorSystemNeedsRemediation 15623 +#define kNtErrorAppxIntegrityFailureClrNgen 15624 +#define kNtErrorResiliencyFileCorrupt 15625 +#define kNtErrorInstallFirewallServiceNotRunning 15626 +#define kNtErrorPackageMoveFailed 15627 +#define kNtErrorInstallVolumeNotEmpty 15628 +#define kNtErrorInstallVolumeOffline 15629 +#define kNtErrorInstallVolumeCorrupt 15630 +#define kNtErrorNeedsRegistration 15631 +#define kNtErrorInstallWrongProcessorArchitecture 15632 +#define kNtErrorDevSideloadLimitExceeded 15633 +#define kNtErrorInstallOptionalPackageRequiresMainPackage 15634 +#define kNtErrorPackageNotSupportedOnFilesystem 15635 +#define kNtErrorPackageMoveBlockedByStreaming 15636 +#define kNtErrorInstallOptionalPackageApplicationidNotUnique 15637 +#define kNtErrorPackageStagingOnhold 15638 +#define kNtErrorInstallInvalidRelatedSetUpdate 15639 +#define kNtErrorPackagesReputationCheckFailed 15643 +#define kNtErrorPackagesReputationCheckTimedout 15644 +#define kNtErrorStateLoadStoreFailed 15800 +#define kNtErrorStateGetVersionFailed 15801 +#define kNtErrorStateSetVersionFailed 15802 +#define kNtErrorStateStructuredResetFailed 15803 +#define kNtErrorStateOpenContainerFailed 15804 +#define kNtErrorStateCreateContainerFailed 15805 +#define kNtErrorStateDeleteContainerFailed 15806 +#define kNtErrorStateReadSettingFailed 15807 +#define kNtErrorStateWriteSettingFailed 15808 +#define kNtErrorStateDeleteSettingFailed 15809 +#define kNtErrorStateQuerySettingFailed 15810 +#define kNtErrorStateReadCompositeSettingFailed 15811 +#define kNtErrorStateWriteCompositeSettingFailed 15812 +#define kNtErrorStateEnumerateContainerFailed 15813 +#define kNtErrorStateEnumerateSettingsFailed 15814 +#define kNtErrorStateCompositeSettingValueSizeLimitExceeded 15815 +#define kNtErrorStateSettingValueSizeLimitExceeded 15816 +#define kNtErrorStateSettingNameSizeLimitExceeded 15817 +#define kNtErrorStateContainerNameSizeLimitExceeded 15818 +#define kNtErrorApiUnavailable 15841 + +#define kNtWaitIoCompletion 0xc0 + +/* WinSock Error Codes: 10000-11999 */ +#define WSABASEERR 10000 +#define WSAEINTR 10004 +#define WSAEBADF 10009 +#define WSAEACCES 10013 +#define WSAEFAULT 10014 +#define WSAEINVAL 10022 +#define WSAEMFILE 10024 +#define WSAEWOULDBLOCK 10035 +#define WSAEINPROGRESS 10036 +#define WSAEALREADY 10037 +#define WSAENOTSOCK 10038 +#define WSAEDESTADDRREQ 10039 +#define WSAEMSGSIZE 10040 +#define WSAEPROTOTYPE 10041 +#define WSAENOPROTOOPT 10042 +#define WSAEPROTONOSUPPORT 10043 +#define WSAESOCKTNOSUPPORT 10044 +#define WSAEOPNOTSUPP 10045 +#define WSAEPFNOSUPPORT 10046 +#define WSAEAFNOSUPPORT 10047 +#define WSAEADDRINUSE 10048 +#define WSAEADDRNOTAVAIL 10049 +#define WSAENETDOWN 10050 +#define WSAENETUNREACH 10051 +#define WSAENETRESET 10052 +#define WSAECONNABORTED 10053 +#define WSAECONNRESET 10054 +#define WSAENOBUFS 10055 +#define WSAEISCONN 10056 +#define WSAENOTCONN 10057 +#define WSAESHUTDOWN 10058 +#define WSAETOOMANYREFS 10059 +#define WSAETIMEDOUT 10060 +#define WSAECONNREFUSED 10061 +#define WSAELOOP 10062 +#define WSAENAMETOOLONG 10063 +#define WSAEHOSTDOWN 10064 +#define WSAEHOSTUNREACH 10065 +#define WSAENOTEMPTY 10066 +#define WSAEPROCLIM 10067 +#define WSAEUSERS 10068 +#define WSAEDQUOT 10069 +#define WSAESTALE 10070 +#define WSAEREMOTE 10071 +#define WSASYSNOTREADY 10091 +#define WSAVERNOTSUPPORTED 10092 +#define WSANOTINITIALISED 10093 +#define WSAEDISCON 10101 +#define WSAENOMORE 10102 +#define WSAECANCELLED 10103 +#define WSAEINVALIDPROCTABLE 10104 +#define WSAEINVALIDPROVIDER 10105 +#define WSAEPROVIDERFAILEDINIT 10106 +#define WSASYSCALLFAILURE 10107 +#define WSASERVICE_NOT_FOUND 10108 +#define WSATYPE_NOT_FOUND 10109 +#define WSA_E_NO_MORE 10110 +#define WSA_E_CANCELLED 10111 +#define WSAEREFUSED 10112 +#define WSAHOST_NOT_FOUND 11001 +#define WSATRY_AGAIN 11002 +#define WSANO_RECOVERY 11003 +#define WSANO_DATA 11004 +#define WSA_QOS_RECEIVERS 11005 +#define WSA_QOS_SENDERS 11006 +#define WSA_QOS_NO_SENDERS 11007 +#define WSA_QOS_NO_RECEIVERS 11008 +#define WSA_QOS_REQUEST_CONFIRMED 11009 +#define WSA_QOS_ADMISSION_FAILURE 11010 +#define WSA_QOS_POLICY_FAILURE 11011 +#define WSA_QOS_BAD_STYLE 11012 +#define WSA_QOS_BAD_OBJECT 11013 +#define WSA_QOS_TRAFFIC_CTRL_ERROR 11014 +#define WSA_QOS_GENERIC_ERROR 11015 +#define WSA_QOS_ESERVICETYPE 11016 +#define WSA_QOS_EFLOWSPEC 11017 +#define WSA_QOS_EPROVSPECBUF 11018 +#define WSA_QOS_EFILTERSTYLE 11019 +#define WSA_QOS_EFILTERTYPE 11020 +#define WSA_QOS_EFILTERCOUNT 11021 +#define WSA_QOS_EOBJLENGTH 11022 +#define WSA_QOS_EFLOWCOUNT 11023 +#define WSA_QOS_EUNKOWNPSOBJ 11024 +#define WSA_QOS_EPOLICYOBJ 11025 +#define WSA_QOS_EFLOWDESC 11026 +#define WSA_QOS_EPSFLOWSPEC 11027 +#define WSA_QOS_EPSFILTERSPEC 11028 +#define WSA_QOS_ESDMODEOBJ 11029 +#define WSA_QOS_ESHAPERATEOBJ 11030 +#define WSA_QOS_RESERVED_PETYPE 11031 +#define WSA_SECURE_HOST_NOT_FOUND 11032 +#define WSA_IPSEC_NAME_POLICY_ERROR 11033 + +#define WSA_WAIT_FAILED -1u +#define WSA_WAIT_EVENT_0 0 +#define WSA_WAIT_IO_COMPLETION 0xc0 +#define WSA_WAIT_TIMEOUT 258 +#define WSA_MAXIMUM_WAIT_EVENTS 64 +#define WSA_IO_PENDING 997 + +#endif /* COSMOPOLITAN_NT_ERRORS_H_ */ /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ @@ -32,8 +2706,8 @@ * The following resources are recommended: * * - `RLIMIT_AS` limits the size of the virtual address space. This will - * work on all platforms. It's emulated on XNU and Windows which means - * it won't propagate across execve() currently. + * work on all platforms except WSL. It is emulated on XNU and Windows + * which means it won't propagate across execve() currently. * * - `RLIMIT_CPU` causes `SIGXCPU` to be sent to the process when the * soft limit on CPU time is exceeded, and the process is destroyed diff --git a/libc/calls/sigaction.c b/libc/calls/sigaction.c index bea1a434b..74a8cb46c 100644 --- a/libc/calls/sigaction.c +++ b/libc/calls/sigaction.c @@ -85,9 +85,11 @@ union metasigaction { struct sigaction_xnu_out xnu_out; }; -void __sigenter_netbsd(int, void *, void *) hidden; -void __sigenter_freebsd(int, void *, void *) hidden; -void __sigenter_openbsd(int, void *, void *) hidden; +void __sigenter_xnu(int, struct siginfo *, void *) hidden; +void __sigenter_linux(int, struct siginfo *, void *) hidden; +void __sigenter_netbsd(int, struct siginfo *, void *) hidden; +void __sigenter_freebsd(int, struct siginfo *, void *) hidden; +void __sigenter_openbsd(int, struct siginfo *, void *) hidden; static void sigaction_cosmo2native(union metasigaction *sa) { if (!sa) return; @@ -156,6 +158,7 @@ static int __sigaction(int sig, const struct sigaction *act, "sigaction cosmo abi needs tuning"); int64_t arg4, arg5; int rc, rva, oldrva; + sigaction_f sigenter; struct sigaction *ap, copy; if (IsMetal()) return enosys(); /* TODO: Signals on Metal */ if (!(0 < sig && sig < NSIG)) return einval(); @@ -183,11 +186,7 @@ static int __sigaction(int sig, const struct sigaction *act, ap = © if (IsXnu()) { ap->sa_restorer = (void *)&__sigenter_xnu; - if (rva < kSigactionMinRva) { - ap->sa_sigaction = (void *)(intptr_t)rva; - } else { - ap->sa_sigaction = (void *)&__sigenter_xnu; - } + sigenter = __sigenter_xnu; // mitigate Rosetta signal handling strangeness // https://github.com/jart/cosmopolitan/issues/455 ap->sa_flags |= SA_SIGINFO; @@ -196,27 +195,21 @@ static int __sigaction(int sig, const struct sigaction *act, ap->sa_flags |= SA_RESTORER; ap->sa_restorer = &__restore_rt; } + sigenter = __sigenter_linux; } else if (IsNetbsd()) { - if (rva < kSigactionMinRva) { - ap->sa_sigaction = (void *)(intptr_t)rva; - } else { - ap->sa_sigaction = (sigaction_f)__sigenter_netbsd; - } + sigenter = __sigenter_netbsd; } else if (IsFreebsd()) { - if (rva < kSigactionMinRva) { - ap->sa_sigaction = (void *)(intptr_t)rva; - } else { - ap->sa_sigaction = (sigaction_f)__sigenter_freebsd; - } + sigenter = __sigenter_freebsd; } else if (IsOpenbsd()) { - if (rva < kSigactionMinRva) { - ap->sa_sigaction = (void *)(intptr_t)rva; - } else { - ap->sa_sigaction = (sigaction_f)__sigenter_openbsd; - } + sigenter = __sigenter_openbsd; } else { return enosys(); } + if (rva < kSigactionMinRva) { + ap->sa_sigaction = (void *)(intptr_t)rva; + } else { + ap->sa_sigaction = sigenter; + } sigaction_cosmo2native((union metasigaction *)ap); } else { ap = NULL; @@ -468,7 +461,6 @@ static int __sigaction(int sig, const struct sigaction *act, * @return 0 on success or -1 w/ errno * @see xsigaction() for a much better api * @asyncsignalsafe - * @threadsafe * @vforksafe */ int sigaction(int sig, const struct sigaction *act, struct sigaction *oldact) { @@ -476,11 +468,7 @@ int sigaction(int sig, const struct sigaction *act, struct sigaction *oldact) { if (sig == SIGKILL || sig == SIGSTOP) { rc = einval(); } else { - BLOCK_SIGNALS; - __sig_lock(); rc = __sigaction(sig, act, oldact); - __sig_unlock(); - ALLOW_SIGNALS; } STRACE("sigaction(%G, %s, [%s]) → %d% m", sig, DescribeSigaction(0, act), DescribeSigaction(rc, oldact), rc); diff --git a/libc/calls/sigchld-nt.c b/libc/calls/sigchld-nt.c index de423b4ab..c149690e4 100644 --- a/libc/calls/sigchld-nt.c +++ b/libc/calls/sigchld-nt.c @@ -49,16 +49,16 @@ void _check_sigchld(void) { i = WaitForMultipleObjects(n, handles, false, 0); if (i == kNtWaitTimeout) return; if (i == kNtWaitFailed) { - STRACE("%s failed %u", "WaitForMultipleObjects", GetLastError()); + NTTRACE("%s failed %u", "WaitForMultipleObjects", GetLastError()); return; } if (__sighandrvas[SIGCHLD] == (intptr_t)SIG_IGN || __sighandrvas[SIGCHLD] == (intptr_t)SIG_DFL) { - STRACE("new zombie fd=%d handle=%ld", pids[i], handles[i]); + NTTRACE("new zombie fd=%d handle=%ld", pids[i], handles[i]); return; } if (__sighandflags[SIGCHLD] & SA_NOCLDWAIT) { - STRACE("SIGCHILD SA_NOCLDWAIT fd=%d handle=%ld", pids[i], handles[i]); + NTTRACE("SIGCHILD SA_NOCLDWAIT fd=%d handle=%ld", pids[i], handles[i]); CloseHandle(handles[i]); __releasefd(pids[i]); } diff --git a/libc/calls/sigenter-linux.c b/libc/calls/sigenter-linux.c new file mode 100644 index 000000000..f0e5152bb --- /dev/null +++ b/libc/calls/sigenter-linux.c @@ -0,0 +1,48 @@ +/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ +│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ +╞══════════════════════════════════════════════════════════════════════════════╡ +│ Copyright 2022 Justine Alexandra Roberts Tunney │ +│ │ +│ Permission to use, copy, modify, and/or distribute this software for │ +│ any purpose with or without fee is hereby granted, provided that the │ +│ above copyright notice and this permission notice appear in all copies. │ +│ │ +│ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL │ +│ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED │ +│ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE │ +│ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL │ +│ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR │ +│ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER │ +│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │ +│ PERFORMANCE OF THIS SOFTWARE. │ +╚─────────────────────────────────────────────────────────────────────────────*/ +#include "ape/sections.internal.h" +#include "libc/calls/calls.h" +#include "libc/calls/internal.h" +#include "libc/calls/state.internal.h" +#include "libc/calls/struct/sigaction.h" +#include "libc/calls/struct/siginfo.h" +#include "libc/calls/ucontext.h" +#include "libc/intrin/likely.h" +#include "libc/math.h" +#include "libc/str/str.h" +#include "libc/sysv/consts/sa.h" + +privileged void __sigenter_linux(int sig, struct siginfo *info, + ucontext_t *ctx) { + int i, rva, flags; + rva = __sighandrvas[sig & (NSIG - 1)]; + if (rva >= kSigactionMinRva) { + flags = __sighandflags[sig & (NSIG - 1)]; + // WSL1 doesn't set the fpregs field. + // https://github.com/microsoft/WSL/issues/2555 + if ((flags & SA_SIGINFO) && UNLIKELY(!ctx->uc_mcontext.fpregs)) { + ctx->uc_mcontext.fpregs = &ctx->__fpustate; + for (i = 0; i < 8; ++i) { + long double nan = NAN; + memcpy(ctx->__fpustate.st + i, &nan, 16); + } + } + ((sigaction_f)(_base + rva))(sig, info, ctx); + } +} diff --git a/libc/calls/struct/siginfo.internal.h b/libc/calls/struct/siginfo.internal.h index 6db5971fe..b9fe0e71e 100644 --- a/libc/calls/struct/siginfo.internal.h +++ b/libc/calls/struct/siginfo.internal.h @@ -8,8 +8,6 @@ COSMOPOLITAN_C_START_ int sys_sigqueueinfo(int, const siginfo_t *) hidden; -void __sigenter_xnu(void *, int, int, struct siginfo_xnu *, - struct __darwin_ucontext *) hidden; const char *DescribeSiginfo(char[300], int, const siginfo_t *); #define DescribeSiginfo(x, y) DescribeSiginfo(alloca(300), x, y) diff --git a/libc/dce.h b/libc/dce.h index a27efb312..8e14874be 100644 --- a/libc/dce.h +++ b/libc/dce.h @@ -75,9 +75,11 @@ #define SupportsFreebsd() ((SUPPORT_VECTOR & _HOSTFREEBSD) == _HOSTFREEBSD) #define SupportsOpenbsd() ((SUPPORT_VECTOR & _HOSTOPENBSD) == _HOSTOPENBSD) #define SupportsNetbsd() ((SUPPORT_VECTOR & _HOSTNETBSD) == _HOSTNETBSD) -#define SupportsBsd() (!!(SUPPORT_VECTOR & (_HOSTXNU | _HOSTFREEBSD | _HOSTOPENBSD | _HOSTNETBSD))) +#define SupportsBsd() \ + (!!(SUPPORT_VECTOR & (_HOSTXNU | _HOSTFREEBSD | _HOSTOPENBSD | _HOSTNETBSD))) #define SupportsSystemv() \ - (!!(SUPPORT_VECTOR & (_HOSTLINUX | _HOSTXNU | _HOSTOPENBSD | _HOSTFREEBSD | _HOSTNETBSD))) + (!!(SUPPORT_VECTOR & \ + (_HOSTLINUX | _HOSTXNU | _HOSTOPENBSD | _HOSTFREEBSD | _HOSTNETBSD))) #ifndef __ASSEMBLER__ #define IsLinux() (SupportsLinux() && (__hostos & _HOSTLINUX)) @@ -106,6 +108,8 @@ COSMOPOLITAN_C_START_ extern const int __hostos; +bool IsWsl1(void); + COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_DCE_H_ */ diff --git a/libc/intrin/__is_wsl.c b/libc/intrin/iswsl.c similarity index 79% rename from libc/intrin/__is_wsl.c rename to libc/intrin/iswsl.c index bb0ee25e6..97704e6f4 100644 --- a/libc/intrin/__is_wsl.c +++ b/libc/intrin/iswsl.c @@ -16,34 +16,31 @@ │ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │ │ PERFORMANCE OF THIS SOFTWARE. │ ╚─────────────────────────────────────────────────────────────────────────────*/ +#include "libc/assert.h" #include "libc/calls/calls.h" #include "libc/calls/syscall-sysv.internal.h" #include "libc/dce.h" #include "libc/errno.h" -#include "libc/runtime/internal.h" +#include "libc/intrin/likely.h" #include "libc/sysv/consts/map.h" #include "libc/sysv/consts/prot.h" -#define MAP_GROWSDOWN_linux 0x00000100 -#define MAP_ANONYMOUS_linux 0x00000020 +#define GROWSDOWN 0x00000100 +#define ANONYMOUS 0x00000020 /** - * Returns true if host platform is WSL. + * Returns true if host platform is WSL 1.0. */ -bool __is_wsl(void) { - int e; - void *p; - bool res; - if (!IsLinux()) return false; - e = errno; - p = __sys_mmap(0, 4096, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_ANONYMOUS_linux | MAP_GROWSDOWN_linux, -1, 0, - 0); - if (p != MAP_FAILED) { - __sys_munmap(p, 4096); - return false; - } - res = errno == ENOTSUP; +bool IsWsl1(void) { + static char res; + if (res) return res & 1; + if (!IsLinux()) return res = 2, false; + int e = errno; + _unassert(__sys_mmap((void *)1, 4096, PROT_READ | PROT_WRITE, + MAP_FIXED | MAP_PRIVATE | ANONYMOUS | GROWSDOWN, -1, 0, + 0) == MAP_FAILED); + bool tmp = errno == ENOTSUP; errno = e; - return res; + res = 2 | tmp; + return tmp; } diff --git a/libc/log/oncrash.c b/libc/log/oncrash.c index aba03d365..8a17e1435 100644 --- a/libc/log/oncrash.c +++ b/libc/log/oncrash.c @@ -41,8 +41,10 @@ #include "libc/runtime/internal.h" #include "libc/runtime/pc.internal.h" #include "libc/runtime/runtime.h" +#include "libc/stdio/stdio.h" #include "libc/str/str.h" #include "libc/thread/tls.h" +#include "third_party/libcxx/math.h" /** * @fileoverview Abnormal termination handling & GUI debugging. @@ -135,16 +137,24 @@ relegated static char *ShowGeneralRegisters(char *p, ucontext_t *ctx) { j = 0; if (ctx->uc_mcontext.fpregs) { memcpy(&st, (char *)&ctx->uc_mcontext.fpregs->st[k], sizeof(st)); - } else { - bzero(&st, sizeof(st)); + p = stpcpy(p, " ST("); + p = FormatUint64(p, k++); + p = stpcpy(p, ") "); + if (signbit(st)) { + st = -st; + *p++ = '-'; + } + if (isnan(st)) { + p = stpcpy(p, "nan"); + } else if (isinf(st)) { + p = stpcpy(p, "inf"); + } else { + if (st > 999.999) st = 999.999; + x = st * 1000; + p = FormatUint64(p, x / 1000), *p++ = '.'; + p = FormatUint64(p, x % 1000); + } } - p = stpcpy(p, " ST("); - p = FormatUint64(p, k++); - p = stpcpy(p, ") "); - x = st * 1000; - if (x < 0) x = -x, *p++ = '-'; - p = FormatUint64(p, x / 1000), *p++ = '.'; - p = FormatUint64(p, x % 1000); *p++ = '\n'; } } diff --git a/libc/nt/errors.h b/libc/nt/errors.h index 5b64cba8c..e15d100ae 100644 --- a/libc/nt/errors.h +++ b/libc/nt/errors.h @@ -90,7 +90,7 @@ #define kNtErrorDiskFull 112 /* ENOSPC */ #define kNtErrorNoMoreSearchHandles 113 #define kNtErrorInvalidTargetHandle 114 /* EBADF */ -#define kNtErrorInvalidCategory 117 +#define kNtErrorInvalidCategory 117 /* ENOATTR */ #define kNtErrorInvalidVerifySwitch 118 #define kNtErrorBadDriverLevel 119 #define kNtErrorCallNotImplemented 120 @@ -151,7 +151,7 @@ #define kNtErrorInvalidStackseg 189 #define kNtErrorInvalidModuletype 190 #define kNtErrorInvalidExeSignature 191 -#define kNtErrorExeMarkedInvalid 192 +#define kNtErrorExeMarkedInvalid 192 /* EBADEXEC */ #define kNtErrorBadExeFormat 193 /* ENOEXEC */ #define kNtErrorIteratedDataExceeds_64k 194 #define kNtErrorInvalidMinallocsize 195 @@ -172,14 +172,14 @@ #define kNtErrorLocked 212 #define kNtErrorTooManyModules 214 #define kNtErrorNestingNotAllowed 215 -#define kNtErrorExeMachineTypeMismatch 216 +#define kNtErrorExeMachineTypeMismatch 216 /* EBADARCH */ #define kNtErrorExeCannotModifySignedBinary 217 #define kNtErrorExeCannotModifyStrongSignedBinary 218 #define kNtErrorFileCheckedOut 220 #define kNtErrorCheckoutRequired 221 -#define kNtErrorBadFileType 222 +#define kNtErrorBadFileType 222 /* EFTYPE */ #define kNtErrorFileTooLarge 223 /* EFBIG */ -#define kNtErrorFormsAuthRequired 224 +#define kNtErrorFormsAuthRequired 224 /* ENEEDAUTH */ #define kNtErrorVirusInfected 225 #define kNtErrorVirusDeleted 226 #define kNtErrorPipeLocal 229 @@ -231,7 +231,7 @@ #define kNtErrorFileLevelTrimNotSupported 326 #define kNtErrorOffsetAlignmentViolation 327 #define kNtErrorInvalidFieldInParameterList 328 -#define kNtErrorOperationInProgress 329 +#define kNtErrorOperationInProgress 329 /* EPROGUNAVAIL */ #define kNtErrorBadDevicePath 330 #define kNtErrorTooManyDescriptors 331 /* ENFILE */ #define kNtErrorScrubDataDisabled 332 @@ -331,7 +331,7 @@ #define kNtErrorPnpQueryRemoveDeviceTimeout 480 #define kNtErrorPnpQueryRemoveRelatedDeviceTimeout 481 #define kNtErrorPnpQueryRemoveUnrelatedDeviceTimeout 482 -#define kNtErrorDeviceHardwareError 483 +#define kNtErrorDeviceHardwareError 483 /* EDEVERR */ #define kNtErrorInvalidAddress 487 /* EFAULT */ #define kNtErrorVrfCfgEnabled 1183 #define kNtErrorPartitionTerminating 1184 @@ -396,7 +396,7 @@ #define kNtErrorDataNotAccepted 592 #define kNtErrorVdmHardError 593 #define kNtErrorDriverCancelTimeout 594 -#define kNtErrorReplyMessageMismatch 595 +#define kNtErrorReplyMessageMismatch 595 /* EPROGMISMATCH */ #define kNtErrorLostWritebehindData 596 #define kNtErrorClientServerParametersInvalid 597 #define kNtErrorNotTinyStream 598 @@ -440,7 +440,7 @@ #define kNtErrorPnpRestartEnumeration 636 #define kNtErrorSystemImageBadSignature 637 #define kNtErrorPnpRebootRequired 638 -#define kNtErrorInsufficientPower 639 +#define kNtErrorInsufficientPower 639 /* EPWROFF */ #define kNtErrorMultipleFaultViolation 640 #define kNtErrorSystemShutdown 641 #define kNtErrorPortNotSet 642 @@ -771,7 +771,7 @@ #define kNtErrorConnectionActive 1230 #define kNtErrorNetworkUnreachable 1231 #define kNtErrorHostUnreachable 1232 -#define kNtErrorProtocolUnreachable 1233 +#define kNtErrorProtocolUnreachable 1233 /* multimapped to ENETUNREACH */ #define kNtErrorPortUnreachable 1234 #define kNtErrorRequestAborted 1235 #define kNtErrorConnectionAborted 1236 @@ -782,7 +782,7 @@ #define kNtErrorIncorrectAddress 1241 #define kNtErrorAlreadyRegistered 1242 #define kNtErrorServiceNotFound 1243 -#define kNtErrorNotAuthenticated 1244 +#define kNtErrorNotAuthenticated 1244 /* EAUTH */ #define kNtErrorNotLoggedOn 1245 #define kNtErrorContinue 1246 #define kNtErrorAlreadyInitialized 1247 @@ -820,7 +820,7 @@ #define kNtErrorDebuggerInactive 1284 #define kNtErrorDelayLoadFailed 1285 #define kNtErrorVdmDisallowed 1286 -#define kNtErrorUnidentifiedError 1287 +#define kNtErrorUnidentifiedError 1287 /* EIDRM */ #define kNtErrorInvalidCruntimeParameter 1288 #define kNtErrorBeyondVdl 1289 #define kNtErrorIncompatibleServiceSidType 1290 @@ -1038,8 +1038,8 @@ #define kNtErrorInstallLanguageUnsupported 1623 #define kNtErrorInstallTransformFailure 1624 #define kNtErrorInstallPackageRejected 1625 -#define kNtErrorFunctionNotCalled 1626 -#define kNtErrorFunctionFailed 1627 +#define kNtErrorFunctionNotCalled 1626 /* EBADRPC */ +#define kNtErrorFunctionFailed 1627 /* ERPCMISMATCH */ #define kNtErrorInvalidTable 1628 #define kNtErrorDatatypeMismatch 1629 #define kNtErrorUnsupportedType 1630 @@ -1707,7 +1707,7 @@ #define kNtErrorCtxSessionInUse 7062 #define kNtErrorCtxNoForceLogoff 7063 #define kNtErrorCtxAccountRestriction 7064 -#define kNtErrorRdpProtocolError 7065 +#define kNtErrorRdpProtocolError 7065 /* EPROTO */ #define kNtErrorCtxCdmConnect 7066 #define kNtErrorCtxCdmDisconnect 7067 #define kNtErrorCtxSecurityLayerError 7068 @@ -2566,7 +2566,7 @@ #define kNtErrorStateSettingValueSizeLimitExceeded 15816 #define kNtErrorStateSettingNameSizeLimitExceeded 15817 #define kNtErrorStateContainerNameSizeLimitExceeded 15818 -#define kNtErrorApiUnavailable 15841 +#define kNtErrorApiUnavailable 15841 /* EPROCUNAVAIL */ #define kNtWaitIoCompletion 0xc0 diff --git a/libc/runtime/internal.h b/libc/runtime/internal.h index 1fc9be768..6345e5a26 100644 --- a/libc/runtime/internal.h +++ b/libc/runtime/internal.h @@ -29,7 +29,6 @@ extern unsigned char _tls_size[]; extern unsigned char _tls_content[]; void _init(void) hidden; -bool __is_wsl(void); void __morph_tls(void); void __enable_tls(void); void __enable_threads(void) hidden; diff --git a/libc/sock/connect.c b/libc/sock/connect.c index b827473d4..d9d7b2c24 100644 --- a/libc/sock/connect.c +++ b/libc/sock/connect.c @@ -51,6 +51,6 @@ int connect(int fd, const struct sockaddr *addr, uint32_t addrsize) { } else { rc = efault(); } - STRACE("connect(%d, %s) -> %d% lm", fd, DescribeSockaddr(addr, addrsize), rc); + STRACE("connect(%d, %s) → %d% lm", fd, DescribeSockaddr(addr, addrsize), rc); return rc; } diff --git a/libc/sysv/consts.sh b/libc/sysv/consts.sh index d6e8850c5..58e7e37bb 100755 --- a/libc/sysv/consts.sh +++ b/libc/sysv/consts.sh @@ -65,8 +65,8 @@ syscon errno ENOLCK 37 77 77 77 77 158 # no locks available; kNt syscon errno ENOTEMPTY 39 66 66 66 66 145 # directory not empty; bsd consensus; kNtErrorDirNotEmpty (TODO: What is WSAENOTEMPTY? 10066); raised by rmdir(2) syscon errno ELOOP 40 62 62 62 62 1921 # too many levels of symbolic links; bsd consensus; kNtErrorCantResolveFilename; raised by access(2), acct(2), bind(2), chdir(2), chmod(2), chown(2), chroot(2), epoll_ctl(2), execve(2), execveat(2), keyctl(2), link(2), mkdir(2), mknod(2), mount(2), open(2), open_by_handle_at(2), openat2(2), readlink(2), rename(2), rmdir(2), spu_create(2), stat(2), statfs(2), statx(2), symlink(2), truncate(2), unlink(2), utimensat(2) syscon errno ENOMSG 42 91 83 90 83 4306 # kNtErrorEmpty; raised by msgop(2) -syscon errno EIDRM 43 90 82 89 82 0 # identifier removed; raised by msgctl(2), msgget(2), msgop(2), semctl(2), semop(2), shmctl(2), shmget(2), shmop(2) -syscon errno EPROTO 71 100 92 95 96 0 # raised by accept(2), connect(2), socket(2), socketpair(2) +syscon errno EIDRM 43 90 82 89 82 1287 # identifier removed; kNtErrorUnidentifiedError; raised by msgctl(2), msgget(2), msgop(2), semctl(2), semop(2), shmctl(2), shmget(2), shmop(2) +syscon errno EPROTO 71 100 92 95 96 7065 # Protocol error; kNtErrorRdpProtocolError; raised by accept(2), connect(2), socket(2), socketpair(2) syscon errno EOVERFLOW 75 84 84 87 84 534 # kNtErrorArithmeticOverflow; raised by aio_read(2), copy_file_range(2), ctime(2), fanotify_init(2), lseek(2), mmap(2), open(2), open_by_handle_at(2), sem_post(2), sendfile(2), shmctl(2), stat(2), statfs(2), statvfs(2), time(2), timegm(2) syscon errno EILSEQ 84 92 86 84 85 582 # kNtErrorIllegalCharacter; returned by fgetwc(3), fputwc(3), getwchar(3), putwchar(3), scanf(3), ungetwc(3) syscon errno EUSERS 87 68 68 68 68 10068 # too many users; bsd consensus; WSAEUSERS; raised by acct(2) @@ -102,28 +102,28 @@ syscon errno EALREADY 114 37 37 37 37 10037 # connection already syscon errno EINPROGRESS 115 36 36 36 36 10036 # bsd consensus; WSAEINPROGRESS; raised by connect(2) w/ O_NONBLOCK syscon errno ESTALE 116 70 70 70 70 10070 # bsd consensus; WSAESTALE; raised by open_by_handle_at(2) syscon errno EREMOTE 66 71 71 71 71 10071 # bsd consensus -syscon errno EBADRPC 0 72 72 72 72 0 # bsd consensus -syscon errno ERPCMISMATCH 0 73 73 73 73 0 # bsd consensus -syscon errno EPROGUNAVAIL 0 74 74 74 74 0 # bsd consensus -syscon errno EPROGMISMATCH 0 75 75 75 75 0 # bsd consensus -syscon errno EPROCUNAVAIL 0 76 76 76 76 0 # bsd consensus -syscon errno EFTYPE 0 79 79 79 79 0 # bsd consensus -syscon errno EAUTH 0 80 80 80 80 0 # bsd consensus -syscon errno ENEEDAUTH 0 81 81 81 81 0 # bsd consensus -syscon errno EPROCLIM 0 67 67 67 67 10067 # bsd consensus -syscon errno ENOATTR 0 93 87 83 93 0 # -syscon errno EPWROFF 0 82 0 0 0 0 # -syscon errno EDEVERR 0 83 0 0 0 0 # -syscon errno EBADEXEC 0 85 0 0 0 0 # -syscon errno EBADARCH 0 86 0 0 0 0 # -syscon errno ESHLIBVERS 0 87 0 0 0 0 # shiver me timbers -syscon errno EBADMACHO 0 88 0 0 0 0 # -syscon errno ENOPOLICY 0 103 0 0 0 0 # +syscon errno EBADRPC 300 72 72 72 72 1626 # kNtErrorFunctionNotCalled; bsd consensus; made up on linux +syscon errno ERPCMISMATCH 301 73 73 73 73 1627 # kNtErrorFunctionFailed; bsd consensus; made up on linux +syscon errno EPROGUNAVAIL 302 74 74 74 74 329 # kNtErrorOperationInProgress; bsd consensus; made up on linux +syscon errno EPROGMISMATCH 303 75 75 75 75 595 # kNtErrorReplyMessageMismatch; bsd consensus; made up on linux +syscon errno EPROCUNAVAIL 304 76 76 76 76 15841 # kNtErrorApiUnavailable; bsd consensus; made up on linux +syscon errno EFTYPE 305 79 79 79 79 222 # Inappropriate file type or format; kNtErrorBadFileType; bsd consensus; made up on linux +syscon errno EAUTH 306 80 80 80 80 1244 # Authentication error; kNtErrorNotAuthenticated; bsd consensus; made up on linux +syscon errno ENEEDAUTH 307 81 81 81 81 224 # Need authenticator; kNtErrorFormsAuthRequired; bsd consensus; made up on linux +syscon errno EPROCLIM 308 67 67 67 67 10067 # bsd consensus; made up on linux +syscon errno ENOATTR 309 93 87 83 93 117 # Attribute not found; kNtErrorInvalidCategory; made up on linux +syscon errno EPWROFF 310 82 310 310 310 639 # Intelligent device errors. Device power is off; kNtErrorInsufficientPower; made up on non-xnu +syscon errno EDEVERR 311 83 311 311 311 483 # kNtErrorDeviceHardwareError; made up on non-xnu +syscon errno EBADEXEC 312 85 312 312 312 192 # kNtErrorExeMarkedInvalid; made up on non-xnu +syscon errno EBADARCH 313 86 313 313 313 216 # kNtErrorExeMachineTypeMismatch; made up on non-xnu +syscon errno ESHLIBVERS 314 87 314 314 314 0 # shiver me timbers; made up on non-xnu +syscon errno EBADMACHO 315 88 315 315 315 0 # made up on non-xnu +syscon errno ENOPOLICY 316 103 316 316 316 0 # made up on non-xnu syscon errno EBADMSG 74 94 89 92 88 0 # raised by ioctl_getfsmap(2) syscon errno ECANCELED 125 89 85 88 87 1223 # kNtErrorCancelled; raised by timerfd_create(2) syscon errno EOWNERDEAD 130 105 96 94 97 105 # kNtErrorSemOwnerDied; raised by pthread_cond_timedwait(3), pthread_mutex_consistent(3), pthread_mutex_getprioceiling(3), pthread_mutex_lock(3), pthread_mutex_timedlock(3), pthread_mutexattr_getrobust(3), pthread_mutexattr_setrobust(3) syscon errno ENOTRECOVERABLE 131 104 95 93 98 0 # raised by pthread_cond_timedwait(3), pthread_mutex_consistent(3), pthread_mutex_getprioceiling(3), pthread_mutex_lock(3), pthread_mutex_timedlock(3), pthread_mutexattr_getrobust(3), pthread_mutexattr_setrobust(3) -syscon errno ENONET 64 0 0 0 0 0 # unilateral; raised by accept(2) +syscon errno ENONET 64 317 317 317 317 0 # made up on BSDs; raised by accept(2) syscon errno ERESTART 85 -1 -1 -1 -3 0 # should only be seen in ptrace() syscon errno ENODATA 61 96 0 0 89 232 # no message is available in xsi stream or named pipe is being closed; no data available; barely in posix; returned by ioctl; very close in spirit to EPIPE? syscon errno ENOSR 63 98 0 90 90 0 # out of streams resources; something like EAGAIN; it's in POSIX; maybe some commercial UNIX returns it with openat, putmsg, putpmsg, posix_openpt, ioctl, open diff --git a/libc/sysv/consts/EAUTH.s b/libc/sysv/consts/EAUTH.s index 63a7983e2..1d9b39c9b 100644 --- a/libc/sysv/consts/EAUTH.s +++ b/libc/sysv/consts/EAUTH.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EAUTH,0,80,80,80,80,0 +.syscon errno,EAUTH,306,80,80,80,80,1244 diff --git a/libc/sysv/consts/EBADARCH.s b/libc/sysv/consts/EBADARCH.s index ae80472de..7d3e12abf 100644 --- a/libc/sysv/consts/EBADARCH.s +++ b/libc/sysv/consts/EBADARCH.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EBADARCH,0,86,0,0,0,0 +.syscon errno,EBADARCH,313,86,313,313,313,216 diff --git a/libc/sysv/consts/EBADEXEC.s b/libc/sysv/consts/EBADEXEC.s index b1551f189..915d338f6 100644 --- a/libc/sysv/consts/EBADEXEC.s +++ b/libc/sysv/consts/EBADEXEC.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EBADEXEC,0,85,0,0,0,0 +.syscon errno,EBADEXEC,312,85,312,312,312,192 diff --git a/libc/sysv/consts/EBADMACHO.s b/libc/sysv/consts/EBADMACHO.s index 838d9402d..2dd6ac705 100644 --- a/libc/sysv/consts/EBADMACHO.s +++ b/libc/sysv/consts/EBADMACHO.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EBADMACHO,0,88,0,0,0,0 +.syscon errno,EBADMACHO,315,88,315,315,315,0 diff --git a/libc/sysv/consts/EBADRPC.s b/libc/sysv/consts/EBADRPC.s index 298fbdc16..a89448011 100644 --- a/libc/sysv/consts/EBADRPC.s +++ b/libc/sysv/consts/EBADRPC.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EBADRPC,0,72,72,72,72,0 +.syscon errno,EBADRPC,300,72,72,72,72,1626 diff --git a/libc/sysv/consts/EDEVERR.s b/libc/sysv/consts/EDEVERR.s index bd5da43ec..1deaa2ea7 100644 --- a/libc/sysv/consts/EDEVERR.s +++ b/libc/sysv/consts/EDEVERR.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EDEVERR,0,83,0,0,0,0 +.syscon errno,EDEVERR,311,83,311,311,311,0 diff --git a/libc/sysv/consts/EFTYPE.s b/libc/sysv/consts/EFTYPE.s index de067e491..1e6f58faf 100644 --- a/libc/sysv/consts/EFTYPE.s +++ b/libc/sysv/consts/EFTYPE.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EFTYPE,0,79,79,79,79,0 +.syscon errno,EFTYPE,305,79,79,79,79,222 diff --git a/libc/sysv/consts/EIDRM.s b/libc/sysv/consts/EIDRM.s index 2c8add37d..89dc074fd 100644 --- a/libc/sysv/consts/EIDRM.s +++ b/libc/sysv/consts/EIDRM.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EIDRM,43,90,82,89,82,0 +.syscon errno,EIDRM,43,90,82,89,82,1287 diff --git a/libc/sysv/consts/ENEEDAUTH.s b/libc/sysv/consts/ENEEDAUTH.s index 023110de5..09bad1db5 100644 --- a/libc/sysv/consts/ENEEDAUTH.s +++ b/libc/sysv/consts/ENEEDAUTH.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,ENEEDAUTH,0,81,81,81,81,0 +.syscon errno,ENEEDAUTH,307,81,81,81,81,224 diff --git a/libc/sysv/consts/ENOATTR.s b/libc/sysv/consts/ENOATTR.s index 724b09744..55bf0f57e 100644 --- a/libc/sysv/consts/ENOATTR.s +++ b/libc/sysv/consts/ENOATTR.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,ENOATTR,0,93,87,83,93,0 +.syscon errno,ENOATTR,309,93,87,83,93,117 diff --git a/libc/sysv/consts/ENONET.s b/libc/sysv/consts/ENONET.s index 7fd8066af..0adc68865 100644 --- a/libc/sysv/consts/ENONET.s +++ b/libc/sysv/consts/ENONET.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,ENONET,64,0,0,0,0,0 +.syscon errno,ENONET,64,317,317,317,317,0 diff --git a/libc/sysv/consts/ENOPOLICY.s b/libc/sysv/consts/ENOPOLICY.s index d4f56e8d3..a4fe4ae6a 100644 --- a/libc/sysv/consts/ENOPOLICY.s +++ b/libc/sysv/consts/ENOPOLICY.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,ENOPOLICY,0,103,0,0,0,0 +.syscon errno,ENOPOLICY,316,103,316,316,316,0 diff --git a/libc/sysv/consts/EPROCLIM.s b/libc/sysv/consts/EPROCLIM.s index 5a5f1f51d..c6b6c37e1 100644 --- a/libc/sysv/consts/EPROCLIM.s +++ b/libc/sysv/consts/EPROCLIM.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EPROCLIM,0,67,67,67,67,10067 +.syscon errno,EPROCLIM,308,67,67,67,67,10067 diff --git a/libc/sysv/consts/EPROCUNAVAIL.s b/libc/sysv/consts/EPROCUNAVAIL.s index c205cbd86..c089b3d34 100644 --- a/libc/sysv/consts/EPROCUNAVAIL.s +++ b/libc/sysv/consts/EPROCUNAVAIL.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EPROCUNAVAIL,0,76,76,76,76,0 +.syscon errno,EPROCUNAVAIL,304,76,76,76,76,15841 diff --git a/libc/sysv/consts/EPROGMISMATCH.s b/libc/sysv/consts/EPROGMISMATCH.s index 8d90011ca..4fe5685bf 100644 --- a/libc/sysv/consts/EPROGMISMATCH.s +++ b/libc/sysv/consts/EPROGMISMATCH.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EPROGMISMATCH,0,75,75,75,75,0 +.syscon errno,EPROGMISMATCH,303,75,75,75,75,595 diff --git a/libc/sysv/consts/EPROGUNAVAIL.s b/libc/sysv/consts/EPROGUNAVAIL.s index f74903b7b..3be0d9cb6 100644 --- a/libc/sysv/consts/EPROGUNAVAIL.s +++ b/libc/sysv/consts/EPROGUNAVAIL.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EPROGUNAVAIL,0,74,74,74,74,0 +.syscon errno,EPROGUNAVAIL,302,74,74,74,74,329 diff --git a/libc/sysv/consts/EPROTO.s b/libc/sysv/consts/EPROTO.s index d55342965..490ca5e6d 100644 --- a/libc/sysv/consts/EPROTO.s +++ b/libc/sysv/consts/EPROTO.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EPROTO,71,100,92,95,96,0 +.syscon errno,EPROTO,71,100,92,95,96,7065 diff --git a/libc/sysv/consts/EPWROFF.s b/libc/sysv/consts/EPWROFF.s index b9b82848d..19837bcbe 100644 --- a/libc/sysv/consts/EPWROFF.s +++ b/libc/sysv/consts/EPWROFF.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,EPWROFF,0,82,0,0,0,0 +.syscon errno,EPWROFF,310,82,310,310,310,639 diff --git a/libc/sysv/consts/ERPCMISMATCH.s b/libc/sysv/consts/ERPCMISMATCH.s index 529a83743..2f7dfacef 100644 --- a/libc/sysv/consts/ERPCMISMATCH.s +++ b/libc/sysv/consts/ERPCMISMATCH.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,ERPCMISMATCH,0,73,73,73,73,0 +.syscon errno,ERPCMISMATCH,301,73,73,73,73,1627 diff --git a/libc/sysv/consts/ESHLIBVERS.s b/libc/sysv/consts/ESHLIBVERS.s index 03a24c622..cf87faec7 100644 --- a/libc/sysv/consts/ESHLIBVERS.s +++ b/libc/sysv/consts/ESHLIBVERS.s @@ -1,2 +1,2 @@ .include "o/libc/sysv/consts/syscon.internal.inc" -.syscon errno,ESHLIBVERS,0,87,0,0,0,0 +.syscon errno,ESHLIBVERS,314,87,314,314,314,0 diff --git a/libc/sysv/dos2errno.sh b/libc/sysv/dos2errno.sh index 74af2c605..ba5d2ec01 100755 --- a/libc/sysv/dos2errno.sh +++ b/libc/sysv/dos2errno.sh @@ -19,80 +19,6 @@ dir=libc/sysv/dos2errno . libc/sysv/gen.sh -# # DOS ERRNO CANONICAL MAPPINGS -# # -# # These are defined by consts.sh. -# # They're here too as a reminder. -# # -# dos kNtErrorInvalidFunction ENOSYS # in consts.sh -# dos kNtErrorFileNotFound ENOENT # in consts.sh -# dos kNtErrorPathNotFound ENOTDIR # in consts.sh -# dos kNtErrorTooManyOpenFiles EMFILE # in consts.sh -# dos kNtErrorTooManyDescriptors ENFILE # in consts.sh -# dos kNtErrorTooManyLinks EMLINK # in consts.sh -# dos kNtErrorAccessDenied EACCES # in consts.sh -# dos kNtErrorInvalidHandle EBADF # in consts.sh -# dos kNtErrorInvalidAccess EPERM # in consts.sh -# dos kNtErrorNotEnoughQuota EDQUOT # in consts.sh -# dos kNtErrorSeek ESPIPE # in consts.sh -# dos kNtErrorNotDosDisk ENOTBLK # in consts.sh -# dos kNtErrorFileExists EEXIST # in consts.sh -# dos kNtErrorInvalidParameter EINVAL # in consts.sh -# dos kNtErrorOutofmemory ENOMEM # in consts.sh -# dos kNtErrorBrokenPipe EPIPE # in consts.sh -# dos kNtErrorWaitNoChildren ECHILD # in consts.sh -# dos kNtErrorPathBusy ETXTBSY # in consts.sh -# dos kNtErrorBusy EBUSY # in consts.sh -# dos kNtErrorAlreadyExists EEXIST # in consts.sh -# dos kNtErrorBadExeFormat ENOEXEC # in consts.sh -# dos kNtErrorFileTooLarge EFBIG # in consts.sh -# dos kNtErrorDirectoryNotSupported EISDIR # in consts.sh -# dos kNtErrorInvalidAddress EFAULT # in consts.sh -# dos kNtErrorThreadNotInProcess ESRCH # in consts.sh -# dos kNtErrorNoMediaInDrive ENXIO # in consts.sh -# dos kNtErrorIoDevice EIO # in consts.sh -# dos kNtErrorSerialNoDevice ENOTTY # in consts.sh -# dos kNtErrorPossibleDeadlock EDEADLK # in consts.sh -# dos kNtErrorBadDevice ENODEV # in consts.sh -# dos kNtErrorInvalidCommandLine E2BIG # in consts.sh -# dos kNtErrorFileReadOnly EROFS # in consts.sh -# dos kNtErrorNoData ENODATA # in consts.sh -# dos WSAEPROCLIM EPROCLIM # in consts.sh -# dos WSAESHUTDOWN ESHUTDOWN # in consts.sh -# dos WSAEINPROGRESS EINPROGRESS # in consts.sh -# dos WSAENETDOWN ENETDOWN # in consts.sh -# dos WSAENETUNREACH ENETUNREACH # in consts.sh -# dos WSAENETRESET ENETRESET # in consts.sh -# dos WSAEUSERS EUSERS # in consts.sh -# dos WSAENOTSOCK ENOTSOCK # in consts.sh -# dos WSAEDESTADDRREQ EDESTADDRREQ # in consts.sh -# dos WSAEMSGSIZE EMSGSIZE # in consts.sh -# dos WSAEPROTOTYPE EPROTOTYPE # in consts.sh -# dos WSAENOPROTOOPT ENOPROTOOPT # in consts.sh -# dos WSAEPROTONOSUPPORT EPROTONOSUPPORT # in consts.sh -# dos WSAESOCKTNOSUPPORT ESOCKTNOSUPPORT # in consts.sh -# dos WSAEOPNOTSUPP ENOTSUP # in consts.sh -# dos WSAEOPNOTSUPP EOPNOTSUPP # in consts.sh -# dos WSAEPFNOSUPPORT EPFNOSUPPORT # in consts.sh -# dos WSAEAFNOSUPPORT EAFNOSUPPORT # in consts.sh -# dos WSAEADDRINUSE EADDRINUSE # in consts.sh -# dos WSAEADDRNOTAVAIL EADDRNOTAVAIL # in consts.sh -# dos WSAECONNABORTED ECONNABORTED # in consts.sh -# dos WSAECONNRESET ECONNRESET # in consts.sh -# dos WSAENOBUFS ENOBUFS # in consts.sh -# dos WSAEISCONN EISCONN # in consts.sh -# dos WSAENOTCONN ENOTCONN # in consts.sh -# dos WSAESHUTDOWN ESHUTDOWN # in consts.sh -# dos WSAETOOMANYREFS ETOOMANYREFS # in consts.sh -# dos kNtErrorTimeout ETIMEDOUT # in consts.sh -# dos WSAECONNREFUSED ECONNREFUSED # in consts.sh -# dos WSAEHOSTDOWN EHOSTDOWN # in consts.sh -# dos WSAEHOSTUNREACH EHOSTUNREACH # in consts.sh -# dos WSAEALREADY EALREADY # in consts.sh -# dos WSAESTALE ESTALE # in consts.sh -# dos WSAEREMOTE EREMOTE # in consts.sh -# dos WSAEINTR EINTR # in consts.sh - # DOS ERRNO MULTIMAPPINGS # # These mappings are defined in a decentralized section which are diff --git a/test/libc/calls/diagnose_syscall_test.c b/test/libc/calls/diagnose_syscall_test.c index 57ca96517..657e26e0d 100644 --- a/test/libc/calls/diagnose_syscall_test.c +++ b/test/libc/calls/diagnose_syscall_test.c @@ -102,6 +102,9 @@ TEST(diagnose_syscall, getpid) { // netbsd puts parent pid in edx // xnu seems to just clobber it! ASSERT_STREQ("rax rdx rcx r11", _gc(DiffContexts(&x, &y))); + } else if (IsWsl1()) { + // XXX: WSL1 must be emulating SYSCALL instructions. + ASSERT_STREQ("rax rcx", _gc(DiffContexts(&x, &y))); } else { ASSERT_STREQ("rax rcx r11", _gc(DiffContexts(&x, &y))); } @@ -112,6 +115,9 @@ TEST(diagnose_syscall, testWriteSuccess) { diagnose_syscall(__NR_write, 2, Z, 0, Z, Z, Z, Z, &x, &y); if (IsFreebsd()) { ASSERT_STREQ("rax rcx r8 r9 r10 r11", _gc(DiffContexts(&x, &y))); + } else if (IsWsl1()) { + // XXX: WSL1 must be emulating SYSCALL instructions. + ASSERT_STREQ("rax rcx", _gc(DiffContexts(&x, &y))); } else { ASSERT_STREQ("rax rcx r11", _gc(DiffContexts(&x, &y))); } @@ -124,6 +130,9 @@ TEST(diagnose_syscall, testWriteFailed) { ASSERT_STREQ("rax rcx r8 r9 r10 r11 cf", _gc(DiffContexts(&x, &y))); } else if (IsBsd()) { ASSERT_STREQ("rax rcx r11 cf", _gc(DiffContexts(&x, &y))); + } else if (IsWsl1()) { + // XXX: WSL1 must be emulating SYSCALL instructions. + ASSERT_STREQ("rax rcx", _gc(DiffContexts(&x, &y))); } else { ASSERT_STREQ("rax rcx r11", _gc(DiffContexts(&x, &y))); } diff --git a/test/libc/calls/sigaction_test.c b/test/libc/calls/sigaction_test.c index f45c57124..26ff2bd07 100644 --- a/test/libc/calls/sigaction_test.c +++ b/test/libc/calls/sigaction_test.c @@ -199,7 +199,7 @@ TEST(sigaction, autoZombieSlayer) { ASSERT_NE(-1, (pid = fork())); if (!pid) _Exit(0); // XXX: WSL does the wrong thing here. - if (__is_wsl()) usleep(10); + if (IsWsl1()) usleep(10); ASSERT_SYS(ECHILD, -1, wait(0)); // clean up ASSERT_SYS(0, 0, sigaction(SIGCHLD, &sa, 0)); diff --git a/test/libc/log/backtrace_test.c b/test/libc/log/backtrace_test.c index b0aebad48..10225fc28 100644 --- a/test/libc/log/backtrace_test.c +++ b/test/libc/log/backtrace_test.c @@ -326,7 +326,7 @@ TEST(ShowCrashReports, testDivideByZero) { __die(); } // XXX: WSL doesn't save and restore x87 registers to ucontext_t - if (!__is_wsl()) { + if (!IsWsl1()) { if (!strstr(output, "3.141")) { fprintf(stderr, "ERROR: crash report didn't have fpu register\n%s\n", _gc(IndentLines(output, -1, 0, 4))); diff --git a/test/libc/runtime/brk_test.c b/test/libc/runtime/brk_test.c index 15e056835..8b72b6c83 100644 --- a/test/libc/runtime/brk_test.c +++ b/test/libc/runtime/brk_test.c @@ -53,7 +53,8 @@ TEST(sbrk, underflowsEnd_returnsEinval) { } TEST(sbrk, giantDelta_returnsEnomem) { - if (IsXnu()) return; // mmap polyfills this but brk doesn't right now + if (IsXnu()) return; // mmap polyfills this but brk doesn't right now + if (IsWsl1()) return; // WSL1 setrlimit() is busted SPAWN(fork); struct rlimit rl = {1024 * 1024, 1024 * 1024}; ASSERT_SYS(0, 0, setrlimit(RLIMIT_AS, &rl)); diff --git a/test/libc/sock/sendfile_test.c b/test/libc/sock/sendfile_test.c index 8bacbc972..ece9ea362 100644 --- a/test/libc/sock/sendfile_test.c +++ b/test/libc/sock/sendfile_test.c @@ -126,8 +126,8 @@ TEST(sendfile, testPositioning) { ASSERT_EQ(-1, sendfile(4, 5, 0, 6)); ASSERT_TRUE(errno == EINVAL || errno == EPIPE); errno = 0; - // XXX: WSL clobbers file offset on failure! - if (!__is_wsl()) { + // XXX: WSL1 clobbers file offset on failure! + if (!IsWsl1()) { ASSERT_EQ(12, GetFileOffset(5)); } _Exit(0); diff --git a/test/libc/sock/unix_test.c b/test/libc/sock/unix_test.c index 2b34bed48..bfe9321e8 100644 --- a/test/libc/sock/unix_test.c +++ b/test/libc/sock/unix_test.c @@ -22,6 +22,7 @@ #include "libc/dce.h" #include "libc/errno.h" #include "libc/nt/version.h" +#include "libc/runtime/internal.h" #include "libc/runtime/runtime.h" #include "libc/sock/sock.h" #include "libc/sock/struct/sockaddr.h" @@ -165,7 +166,8 @@ TEST(unix, serverGoesDown_usingSendTo_unlink) { // much easier ASSERT_SYS(0, 5, sendto(4, "hello", 5, 0, (void *)&addr, len)); ASSERT_SYS(0, 5, read(3, buf, 8)); ASSERT_SYS(0, 0, close(3)); - ASSERT_SYS(ECONNREFUSED, -1, sendto(4, "hello", 5, 0, (void *)&addr, len)); + ASSERT_SYS(IsWsl1() ? ENOTCONN : ECONNREFUSED, -1, + sendto(4, "hello", 5, 0, (void *)&addr, len)); ASSERT_SYS(0, 0, unlink(addr.sun_path)); ASSERT_SYS(ENOENT, -1, sendto(4, "hello", 5, 0, (void *)&addr, len)); ASSERT_SYS(0, 3, socket(AF_UNIX, SOCK_DGRAM, 0)); diff --git a/tool/build/runit.c b/tool/build/runit.c index 8a5cfd3f3..477acd423 100644 --- a/tool/build/runit.c +++ b/tool/build/runit.c @@ -118,7 +118,6 @@ uint16_t g_sshport; char g_hostname[128]; uint16_t g_runitdport; volatile bool alarmed; -char g_ssh[PATH_MAX]; int __sys_execve(const char *, char *const[], char *const[]) hidden; @@ -473,8 +472,6 @@ int main(int argc, char *argv[]) { } CheckExists((g_runitd = argv[1])); CheckExists((g_prog = argv[2])); - CHECK_NOTNULL( - commandv(firstnonnull(getenv("SSH"), "ssh"), g_ssh, sizeof(g_ssh))); if (argc == 3) { /* hosts list empty */ return 0;