X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fd.c;h=22550286d57747ec90bcdc4aa050c8bea8259e65;hp=0065887d374a4ddba4f2d7a6d4b07aa094c22f1a;hb=6ce3524dbc2e688aca298836cef0d3f314f70d9b;hpb=09156a37fad2aa874b4f71b993bafa8902a8bad2 diff --git a/fd.c b/fd.c index 0065887d..22550286 100644 --- a/fd.c +++ b/fd.c @@ -206,7 +206,7 @@ int para_chdir(const char *path) * \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 @@ -255,12 +255,12 @@ close_cwd: * * \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; }