summaryrefslogtreecommitdiff
path: root/src/libstddjb/fd_chdir.c
blob: e09656eaa17af6294a4564060483acb2549561ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <unistd.h>
#include <errno.h>
#include <skalibs/djbunix.h>

int fd_chdir (int d)
{
  register int r ;
  do
    r = fchdir(d) ;
  while ((r == -1) && (errno == EINTR)) ;
  return r ;
}