Karlan Mitchell wrote: > fork() kill() mmap() munmap() alarm() bcopy() writev() > sleep() truncate() readv() getppid() getguid() getuid() getpwuid() > getgid() NOTE: sleep I defined to _sleep > NOTE: the only above functions I'm familiar with are fork, sleep, > and get*id (get*id shouldn't be used on windows)
How does one determine whether the current account has admin privileges on Windows? Gtk-Gnutella should under no circumstances whatsoever run with admin privileges. > IDEA: replace all instances of fork with pthread_create, pthread is > portable to win32, with pthread-win32 or NT POSIX All we need is a non-blocking DNS resolver. Doesn't Windows provide anything better than gethostbyname()? > *I hacked out some defines MAP_ANONYMOUS, MAP_somethingmore to simple > values of 0, 1, 2....I have no clue what this would do, but it works. That's no secret. Use your favourite search engine and look for opengroup + <keyword>. This will take you directly to the POSIX documentation provided by The Open Group. Gtk-Gnutella does not require mmap(), it can do without. > I HAVE MANY LIBRARIES FOR WIN32/UNIX STUFF: > > *You may release any code you take from this project under LGPL or GPL* > > If you "svn co https://svn.sourceforge.net/svnroot/distweb distweb", > then go into distweb folder, you will > find many useful libraries, and header definitions. Please check > portable_socket.h (psocket_init/defines/includes), I think the only thing we don't do is calling WSAStartup(). We already have wrappers for the other stuff. -- Christian
pgpo4nYPXfInw.pgp
Description: PGP signature
