diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-02-08 15:12:36 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-02-08 15:30:10 -0800 |
commit | 1f23aedf49ed4c9888882cdc22bb8373d442af27 (patch) | |
tree | 48ec9467bd6ece1c788524a162746123779566e0 /lib/careadlinkat.h | |
parent | 80173a422eebacdb4f034240a5b33148b1a3d35e (diff) | |
download | gnulib-1f23aedf49ed4c9888882cdc22bb8373d442af27.tar.gz |
careadlinkat: stop exporting careadlinkatcwd
Only Emacs used it directly, and Emacs no longer needs it.
* NEWS: Document this simplification.
* lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
and make it static. Include <stdlib.h>, for abort, and unistd.h,
for readlink.
* lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
Don't include stdlib.h; no longer needed.
* lib/careadlinkat.h (careadlinkatcwd): Remove decl.
* lib/relocwrapper.c: Adjust comment to match new dependencies.
* modules/areadlink (Depends-on): Add readlink.
(Maintainer): Add self.
* modules/careadlinkat (Depends-on): Remove readlink.
Diffstat (limited to 'lib/careadlinkat.h')
-rw-r--r-- | lib/careadlinkat.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/careadlinkat.h b/lib/careadlinkat.h index 5cdb813fed..46f88ae288 100644 --- a/lib/careadlinkat.h +++ b/lib/careadlinkat.h @@ -52,21 +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 <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 - 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 #endif -ssize_t careadlinkatcwd (int fd, char const *filename, - char *buffer, size_t buffer_size); #endif /* _GL_CAREADLINKAT_H */ |