tempnam() is used in a function in libwww to generate a temporary file. This function is then used in libwww for various purposes. Possible temp file races have *not* been checked for. There is also one tmpnam() call in libwww. That part does not seem to be actually used by Amaya.