* \param old_path The source path.
* \param new_path The destination path.
*
- * \return positive in success, \p -E_RENAME on errors.
+ * \return Standard.
*
* \sa rename(2).
*/
static inline int para_rename(const char *old_path, const char *new_path)
{
if (rename(old_path, new_path) < 0)
- return -E_RENAME;
+ return -ERRNO_TO_PARA_ERROR(errno);
return 1;
}