Oracle Solaris Studio 12.2:C 用户指南

E.1.14.21 (7.9.4.2) The effect if a file with the new name exists prior to a call to the rename function(在调用 rename 函数之前已存在具有新名称的文件时的影响):

如果该文件存在,则将其删除,并且新文件改写先前存在的文件。