On 1/14/2013 17:29, Ruben Van Boxem wrote: > Hey guys, > > I couldn't sleep last night and thought of this: MSYS is a fork of Cygwin, > which introduced a bunch of POSIX runtime stuff to be able to run all them > shell commands. > > What if someone were to write an sh interpreter that used special tricks to > manipulate directory names when it calls programs, which were all compiled > for native Win32? The sh interpreter could act as a process/thread manager > that handles all the shell's forking. >
It is called a VM, one such program is called VirtualBox. But seriously, you will probably end up writing your own PE loader to simulate fork(), since specs say new process must have exact memory layout as the parent, not to mention Posix signaling pipelines to route to the correct process. fork() is especially tricky since win32 is lacking anything similar unless you go with undocumented Vista+ APIs that I heard rumors about. > I know there would be some trickiness involved when running shell scripts > containing Unix-like directory names, although I don't think it would be > undoable. > Those are the least of your worries, a usermode rootkit, err.., remotely attached thread can fix that. > This might be exactly what MSYS does of course, but it requires a special > build environment and ancient GCC (although the mysterious MSYS2 will > probably fix this). Give Services for Unix a try, assuming you have Vista/7 enterprise or ultimate edition installed. IIRC Win8 pro has it too. It is even 64bit. Get the features right now for a low low prices of $$$!
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
