areadlink.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /* Read symbolic links without size limitation.
  2. Copyright (C) 2001, 2003-2004, 2007, 2009-2020 Free Software Foundation,
  3. Inc.
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <https://www.gnu.org/licenses/>. */
  14. /* Written by Jim Meyering <jim@meyering.net> */
  15. #include <stddef.h>
  16. extern char *areadlink (char const *filename);
  17. extern char *areadlink_with_size (char const *filename, size_t size_hint);
  18. #if GNULIB_AREADLINKAT
  19. extern char *areadlinkat (int fd, char const *filename);
  20. #endif
  21. #if GNULIB_AREADLINKAT_WITH_SIZE
  22. extern char *areadlinkat_with_size (int fd, char const *filename,
  23. size_t size_hint);
  24. #endif