Unbloat build config

- 10.5% reduction of o//depend dependency graph
- 8.8% reduction in latency of make command
- Fix issue with temporary file cleanup

There's a new -w option in compile.com that turns off the recent
Landlock output path workaround for "good commands" which do not
unlink() the output file like GNU tooling does.

Our new GNU Make unveil sandboxing appears to have zero overhead
in the grand scheme of things. Full builds are pretty fast since
the only thing that's actually slowed us down is probably libcxx

    make -j16 MODE=rel
    RL: took 85,732,063µs wall time
    RL: ballooned to 323,612kb in size
    RL: needed 828,560,521µs cpu (11% kernel)
    RL: caused 39,080,670 page faults (99% memcpy)
    RL: 350,073 context switches (72% consensual)
    RL: performed 0 reads and 11,494,960 write i/o operations

pledge() and unveil() no longer consider ENOSYS to be an error.
These functions have also been added to Python's cosmo module.

This change also removes some WIN32 APIs and System Five magnums
which we're not using and it's doubtful anyone else would be too
This commit is contained in:
Justine Tunney 2022-08-10 01:32:17 -07:00
parent 133c693650
commit ae5d06dc53
1423 changed files with 2213 additions and 5560 deletions

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_AppCompat_RunDLLW,AppCompat_RunDLLW,255

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_AssocCreateForClasses,AssocCreateForClasses,263

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_AssocGetDetailsOfPropKey,AssocGetDetailsOfPropKey,267

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_CDefFolderMenu_Create2,CDefFolderMenu_Create2,701

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_CIDLData_CreateFromIDArray,CIDLData_CreateFromIDArray,83

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_CStorageItem_GetValidatedStorageItemObject,CStorageItem_GetValidatedStorageItemObject,937

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_CheckEscapesW,CheckEscapesW,268

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_CommandLineToArgvW,CommandLineToArgvW,269

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_Control_RunDLL,Control_RunDLL,272

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_Control_RunDLLAsUserW,Control_RunDLLAsUserW,274

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_Control_RunDLLW,Control_RunDLLW,275

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DAD_AutoScroll,DAD_AutoScroll,129

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DAD_DragEnterEx,DAD_DragEnterEx,131

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DAD_DragEnterEx2,DAD_DragEnterEx2,22

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DAD_DragLeave,DAD_DragLeave,132

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DAD_DragMove,DAD_DragMove,134

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DAD_SetDragImage,DAD_SetDragImage,136

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DAD_ShowDragImage,DAD_ShowDragImage,137

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DllGetActivationFactory,DllGetActivationFactory,277

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DllGetVersion,DllGetVersion,279

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DllInstall,DllInstall,280

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DllRegisterServer,DllRegisterServer,281

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DllUnregisterServer,DllUnregisterServer,282

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DoEnvironmentSubstW,DoEnvironmentSubstW,284

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DragAcceptFiles,DragAcceptFiles,285

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DragFinish,DragFinish,286

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DragQueryFileAorW,DragQueryFileAorW,289

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DragQueryFileW,DragQueryFileW,290

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DragQueryPoint,DragQueryPoint,291

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DriveType,DriveType,64

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_DuplicateIcon,DuplicateIcon,292

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ExtractAssociatedIconExW,ExtractAssociatedIconExW,295

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ExtractAssociatedIconW,ExtractAssociatedIconW,296

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ExtractIconExW,ExtractIconExW,300

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ExtractIconW,ExtractIconW,301

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_FindExecutableW,FindExecutableW,303

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_FreeIconList,FreeIconList,304

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_GetCurrentProcessExplicitAppUserModelID,GetCurrentProcessExplicitAppUserModelID,305

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_GetFileNameFromBrowse,GetFileNameFromBrowse,63

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_GetSystemPersistedStorageItemList,GetSystemPersistedStorageItemList,919

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILAppendID,ILAppendID,154

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILClone,ILClone,18

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILCloneFirst,ILCloneFirst,19

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILCombine,ILCombine,25

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILCreateFromPathW,ILCreateFromPathW,190

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILFindChild,ILFindChild,24

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILFindLastID,ILFindLastID,16

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILFree,ILFree,155

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILGetNext,ILGetNext,153

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILGetSize,ILGetSize,152

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILIsEqual,ILIsEqual,21

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILIsParent,ILIsParent,23

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILLoadFromStreamEx,ILLoadFromStreamEx,846

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILRemoveLastID,ILRemoveLastID,17

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ILSaveToStream,ILSaveToStream,27

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_InitNetworkAddressControl,InitNetworkAddressControl,306

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_InternalExtractIconListW,InternalExtractIconListW,308

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_IsDesktopExplorerProcess,IsDesktopExplorerProcess,942

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_IsLFNDriveW,IsLFNDriveW,42

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_IsNetDrive,IsNetDrive,66

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_IsProcessAnExplorer,IsProcessAnExplorer,941

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_IsUserAnAdmin,IsUserAnAdmin,680

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_LaunchMSHelp_RunDLLW,LaunchMSHelp_RunDLLW,309

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_OpenAs_RunDLL,OpenAs_RunDLL,81

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_OpenAs_RunDLLW,OpenAs_RunDLLW,133

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_OpenRegStream,OpenRegStream,85

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_Options_RunDLL,Options_RunDLL,310

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_Options_RunDLLW,Options_RunDLLW,312

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PathCleanupSpec,PathCleanupSpec,171

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PathGetShortPath,PathGetShortPath,92

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PathIsExe,PathIsExe,43

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PathIsSlowW,PathIsSlowW,239

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PathMakeUniqueName,PathMakeUniqueName,47

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PathQualify,PathQualify,49

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PathResolve,PathResolve,51

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PathYetAnotherMakeUniqueName,PathYetAnotherMakeUniqueName,75

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PickIconDlg,PickIconDlg,62

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PifMgr_CloseProperties,PifMgr_CloseProperties,13

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PifMgr_GetProperties,PifMgr_GetProperties,10

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PifMgr_OpenProperties,PifMgr_OpenProperties,9

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PifMgr_SetProperties,PifMgr_SetProperties,11

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PrepareDiscForBurnRunDllW,PrepareDiscForBurnRunDllW,135

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PrintersGetCommand_RunDLL,PrintersGetCommand_RunDLL,138

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_PrintersGetCommand_RunDLLW,PrintersGetCommand_RunDLLW,150

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_ReadCabinetState,ReadCabinetState,654

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_RealDriveType,RealDriveType,524

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_RealShellExecuteExW,RealShellExecuteExW,208

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_RealShellExecuteW,RealShellExecuteW,226

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_RegenerateUserEnvironment,RegenerateUserEnvironment,313

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_RestartDialog,RestartDialog,59

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_RestartDialogEx,RestartDialogEx,730

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_RunAsNewUser_RunDLLW,RunAsNewUser_RunDLLW,314

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_SHAddDefaultPropertiesByExt,SHAddDefaultPropertiesByExt,315

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_SHAddFromPropSheetExtArray,SHAddFromPropSheetExtArray,167

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_SHAddToRecentDocs,SHAddToRecentDocs,316

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_SHAlloc,SHAlloc,196

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_SHAppBarMessage,SHAppBarMessage,317

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_SHAssocEnumHandlers,SHAssocEnumHandlers,318

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_SHAssocEnumHandlersForProtocolByApplication,SHAssocEnumHandlersForProtocolByApplication,319

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp shell32,__imp_SHBindToFolderIDListParent,SHBindToFolderIDListParent,320

Some files were not shown because too many files have changed in this diff Show more