X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcareadlinkat.h;h=704f8159b88021a4affc2bac0433e313b9d252e4;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=4f0184bbc333796fccd507aaf0364d8bb2856921;hpb=66a236773eb7d9706db907339c65791355083a3d;p=gnulib.git diff --git a/lib/careadlinkat.h b/lib/careadlinkat.h index 4f0184bbc..704f8159b 100644 --- a/lib/careadlinkat.h +++ b/lib/careadlinkat.h @@ -1,6 +1,6 @@ /* Read symbolic links into a buffer without size limitation, relative to fd. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -52,22 +52,16 @@ char *careadlinkat (int fd, char const *filename, ssize_t (*preadlinkat) (int, char const *, char *, size_t)); -/* Suitable values for careadlinkat's FD and PREADLINKAT arguments, - when doing a plain readlink: - Pass FD = AT_FDCWD and PREADLINKAT = careadlinkatcwd. */ +/* Suitable value for careadlinkat's FD argument. */ #if HAVE_READLINKAT -/* AT_FDCWD is declared in , readlinkat in . */ -# define careadlinkatcwd readlinkat +/* AT_FDCWD is declared in . */ #else /* Define AT_FDCWD independently, so that the careadlinkat module does - not depend on the fcntl-h module. The value does not matter, since - careadlinkatcwd ignores it, but we might as well use the same value + not depend on the fcntl-h module. We might as well use the same value as fcntl-h. */ # ifndef AT_FDCWD # define AT_FDCWD (-3041965) # endif -ssize_t careadlinkatcwd (int fd, char const *filename, - char *buffer, size_t buffer_size); #endif #endif /* _GL_CAREADLINKAT_H */