* \param dir Result pointer.
* \param cwd File descriptor of the current working directory.
*
- * \return Positive on success, negative on errors.
+ * \return Standard.
*
* Opening the current directory (".") and calling fchdir() to return is
* usually faster and more reliable than saving cwd in some buffer and calling
*
* \param fd An open file descriptor
*
- * \return Positive on success, negative on errors.
+ * \return Standard.
*/
int para_fchdir(int fd)
{
if (fchdir(fd) < 0)
- return -E_FCHDIR;
+ return -ERRNO_TO_PARA_ERROR(errno);
return 1;
}