tmpnam是C语言中用于产生一个唯一的文件名。
In fact, tmpnam (3) isn't reliable with threads and doesn't handle loops reliably, so it should never be used.
实际上,线程使用tmpnam(3)并不可靠,也不能可靠地处理循环,所以永远不要使用它。
Some programs just call mktemp (3) or tmpnam (3) directly to create a temporary file name, and then simply open it under the assumption that it'll be OK.
有一些程序只是直接调用mktemp(3)或tmpnam(3)来创建临时文件,然后基于这样做会成功的假定去简单地打开它。
应用推荐