views:

66

answers:

1

Apache have .so modules for both windows and linux.How do they do it?

+2  A: 

Good question, I would suspect they remain dynamic link libraries with different file extensions but I could be wrong. File extension, is, after all, no guarantee of file type. If depends.exe in the Windows SDK can parse them, they're dlls. I have never tried and now can't, no Windows on my pc anymore.

Edit: looking at this: http://httpd.apache.org/docs/2.0/mod/mod_so.html#creating it looks like it is just a naming convention - "Apache still loads .dlls..."

Ninefingers
Yes the Windows .so files are DLLs. There is nothing magical about the .DLL extension - you could give Windows DLLs the extension .MyLittlePony and Windows would still be happy.
anon
+1 for .MyLittlePony
BennyG
Another +1 for .MyLittlePony - I am well aware file extensions are meaningless for file type since I use linux mostly, however, I wasn't sure if the use of a different file extension signified anything different... as it turns out not, but gotta be careful.
Ninefingers