| 22 | } |
| 23 | |
| 24 | void TarHeader::clear() throw() |
| 25 | // Reset the tar header struct ready for a new file |
| 26 | // Does not throw as constructor calls this |
| 27 | { |
| 28 | m_used_gnu = false; |
| 29 | memset(&m_head, 0, sizeof(m_head)); |
| 30 | strncpy(m_head.h.ustar, "ustar", sizeof(m_head.h.ustar) - 1); |
| 31 | m_head.h.ustar_version[0] = '0'; |
| 32 | m_head.h.ustar_version[1] = '0'; |
| 33 | } |
| 34 | |
| 35 | void TarHeader::set_filename(const std::string& filename) |
| 36 | // Set the file name in the tar header. If the filename given is too long |
no outgoing calls
no test coverage detected