Could basename, asprintf and vasprintf from libiberty be linked with and exported by the cygwin DLL. Also, could getsid be exported (it exists, but is not exported). If this is ok, I'll submit a patch. Chris