ManPageArchiveWriteFree3.wiki 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ARCHIVE_WRITE_FREE(3) manual page
  2. == NAME ==
  3. '''archive_write_fail''',
  4. '''archive_write_close''',
  5. '''archive_write_finish''',
  6. '''archive_write_free'''
  7. - functions for creating archives
  8. == LIBRARY ==
  9. Streaming Archive Library (libarchive, -larchive)
  10. == SYNOPSIS ==
  11. '''<nowiki>#include <archive.h></nowiki>'''
  12. <br>
  13. ''int''
  14. <br>
  15. '''archive_write_fail'''(''struct archive *'');
  16. <br>
  17. ''int''
  18. <br>
  19. '''archive_write_close'''(''struct archive *'');
  20. <br>
  21. ''int''
  22. <br>
  23. '''archive_write_finish'''(''struct archive *'');
  24. <br>
  25. ''int''
  26. <br>
  27. '''archive_write_free'''(''struct archive *'');
  28. == DESCRIPTION ==
  29. <dl>
  30. <dt>'''archive_write_fail'''()</dt><dd>
  31. Always returns
  32. '''ARCHIVE_FATAL'''.
  33. This marks the archive object as being unusable;
  34. after calling this function, the only call that can succeed is
  35. '''archive_write_free'''()
  36. to release the resources.
  37. This can be used to speed recovery when the archive creation
  38. must be aborted.
  39. Note that the created archive is likely to be malformed in this case;
  40. </dd><dt>'''archive_write_close'''()</dt><dd>
  41. Complete the archive and invoke the close callback.
  42. </dd><dt>'''archive_write_finish'''()</dt><dd>
  43. This is a deprecated synonym for
  44. '''archive_write_free'''().
  45. </dd><dt>'''archive_write_free'''()</dt><dd>
  46. Invokes
  47. '''archive_write_close'''()
  48. if necessary, then releases all resources.
  49. If you need detailed information about
  50. '''archive_write_close'''()
  51. failures, you should be careful to call it separately, as
  52. you cannot obtain error information after
  53. '''archive_write_free'''()
  54. returns.
  55. </dd></dl>
  56. == RETURN VALUES ==
  57. These functions return
  58. '''ARCHIVE_OK'''
  59. on success, or
  60. '''ARCHIVE_FATAL'''.
  61. == ERRORS ==
  62. Detailed error codes and textual descriptions are available from the
  63. '''archive_errno'''()
  64. and
  65. '''archive_error_string'''()
  66. functions.
  67. == SEE ALSO ==
  68. [[ManPageBsdtar1]],
  69. [[ManPageArchiveWriteSetOptions3]],
  70. [[ManPageLibarchive3]],
  71. [[ManPageCpio5]],
  72. [[ManPageMtree5]],
  73. [[ManPageTar5]]