[ros-kernel] A small ldr patch for cygwin
art yerkes
ayerkes at speakeasy.net
Sun Oct 26 18:33:46 CET 2003
Using this patch, and forcing cygwin1.dll to use it's win95 personality, I can
load sh, get a prompt, and execute shell builtin commands. Fork needs work
in ntoskrnl, which I talked about with David Welch a while back. That stuff
will be a bit of work, but I think that several other programs use the same
feature cygwin does.
The change made here sets the lpvReserved argument to DllMain according to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dllmain.asp
and allows cygwin to figure out whether it was dynamically loaded by
LoadLibrary or by the system when starting a process.
Also, should I send the cygwin people a patch for forcing cygwin personality
using an env var?
If I don't hear anything negative, I'll commit in a couple of days.
--
"Should array indices start at 0 or 1? My compromise of 0.5 was rejected
without, I thought, proper consideration."
- S. Kelly-Bootle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldr.diff
Type: application/octet-stream
Size: 4839 bytes
Desc: not available
Url : http://reactos.geldorp.nl:8080/pipermail/ros-kernel/attachments/20031026/b9866788/ldr.obj
More information about the Ros-kernel
mailing list