lt__argz_.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* lt__argz.h -- internal argz interface for non-glibc systems
  2. Copyright (C) 2004, 2007-2008, 2011-2015 Free Software Foundation,
  3. Inc.
  4. Written by Gary V. Vaughan, 2004
  5. NOTE: The canonical source of this file is maintained with the
  6. GNU Libtool package. Report bugs to bug-libtool@gnu.org.
  7. GNU Libltdl is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU Lesser General Public
  9. License as published by the Free Software Foundation; either
  10. version 2 of the License, or (at your option) any later version.
  11. As a special exception to the GNU Lesser General Public License,
  12. if you distribute this file as part of a program or library that
  13. is built using GNU Libtool, you may include this file under the
  14. same distribution terms that you use for the rest of that program.
  15. GNU Libltdl is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. GNU Lesser General Public License for more details.
  19. You should have received a copy of the GNU Lesser General Public
  20. License along with GNU Libltdl; see the file COPYING.LIB. If not, a
  21. copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
  22. or obtained by writing to the Free Software Foundation, Inc.,
  23. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  24. */
  25. #if !defined LT__ARGZ_H
  26. #define LT__ARGZ_H 1
  27. #include <stdlib.h>
  28. #define __need_error_t
  29. #include <errno.h>
  30. #include <sys/types.h>
  31. #if defined LTDL
  32. # include "lt__glibc.h"
  33. # include "lt_system.h"
  34. #else
  35. # define LT_SCOPE
  36. #endif
  37. #if defined __cplusplus
  38. extern "C" {
  39. #endif
  40. LT_SCOPE error_t argz_append (char **pargz, size_t *pargz_len,
  41. const char *buf, size_t buf_len);
  42. LT_SCOPE error_t argz_create_sep(const char *str, int delim,
  43. char **pargz, size_t *pargz_len);
  44. LT_SCOPE error_t argz_insert (char **pargz, size_t *pargz_len,
  45. char *before, const char *entry);
  46. LT_SCOPE char * argz_next (char *argz, size_t argz_len,
  47. const char *entry);
  48. LT_SCOPE void argz_stringify (char *argz, size_t argz_len, int sep);
  49. #if defined __cplusplus
  50. }
  51. #endif
  52. #if !defined LTDL
  53. # undef LT_SCOPE
  54. #endif
  55. #endif /*!defined LT__ARGZ_H*/