Closed treeswift closed 8 months ago
I reviewed the use of _PATH_*
macros; there will be a follow-up soon that removes a BSD'd paths.h
stub in the otherwise PD project. But it's a data-only header anyway (a few string literals reflecting a popular convention mostly irrelevant on Windows). TL;DR can merge as is.
This pull request integrates
toybox
, a collection of *nix tools within a single multi-use binary. It is also a showcase of:sys/mman.h
).The Windows/MinGW fork of
toybox
being used provides approximately a third of the tools claimed by mainline Toybox, and roughly a half of the ones currently selected in its configuration. The ones that fail to build (approximately 90) are removed from the build. The ones that make it (also around 90) may not work as intended due to extensive stubbing of POSIX and Linux API, the lack of/sys
and/proc
, differences between nix and Windows permission models, differences between nix and Windows pipes and, finally, the proverbial lack offork
. However, this is still a significant expansion of our command line utility zoo.Overall and optimistically, this garage sale buys us the following list of tools (some commands that make no sense on Windows are yet to be removed, but I am too happy right now with having prettified the build as is):
cat
works,grep
works; some missing utilities, such aswget
, only have a few holes to plumb. Command files (*.cmd
) will be replaced with hardlinks once we have installation hooks in place.File issues at: https://github.com/treeswift/toybox-mingw/issues