Imported from tls.sourceforge.net