diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/careadlinkat.c | 2 | ||||
-rw-r--r-- | lib/careadlinkat.h | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/careadlinkat.c b/lib/careadlinkat.c index 6e4aa1395f..751578b9a5 100644 --- a/lib/careadlinkat.c +++ b/lib/careadlinkat.c @@ -39,7 +39,6 @@ #include "allocator.h" -#if ! HAVE_READLINKAT /* Get the symbolic link value of FILENAME and put it into BUFFER, with size BUFFER_SIZE. This function acts like readlink but has readlinkat's signature. */ @@ -53,7 +52,6 @@ careadlinkatcwd (int fd, char const *filename, char *buffer, abort (); return readlink (filename, buffer, buffer_size); } -#endif /* Assuming the current directory is FD, get the symbolic link value of FILENAME as a null-terminated string and put it into a buffer. diff --git a/lib/careadlinkat.h b/lib/careadlinkat.h index 4f0184bbc3..6576fb2cec 100644 --- a/lib/careadlinkat.h +++ b/lib/careadlinkat.h @@ -56,8 +56,7 @@ char *careadlinkat (int fd, char const *filename, when doing a plain readlink: Pass FD = AT_FDCWD and PREADLINKAT = careadlinkatcwd. */ #if HAVE_READLINKAT -/* AT_FDCWD is declared in <fcntl.h>, readlinkat in <unistd.h>. */ -# define careadlinkatcwd readlinkat +/* AT_FDCWD is declared in <fcntl.h>. */ #else /* Define AT_FDCWD independently, so that the careadlinkat module does not depend on the fcntl-h module. The value does not matter, since @@ -66,8 +65,8 @@ char *careadlinkat (int fd, char const *filename, # ifndef AT_FDCWD # define AT_FDCWD (-3041965) # endif +#endif ssize_t careadlinkatcwd (int fd, char const *filename, char *buffer, size_t buffer_size); -#endif #endif /* _GL_CAREADLINKAT_H */ |