Lines Matching refs:suffix

5 /// \file       suffix.c
6 /// \brief Checks filename suffix and creates the destination filename
18 // For case-insensitive filename suffix on case-insensitive systems
61 /// \brief Test for special suffix used for 8.3 short filenames (SFN)
87 /// \param suffix Filename suffix to look for
91 /// \return If src_name has the suffix, src_len - strlen(suffix) is
95 test_suffix(const char *suffix, const char *src_name, size_t src_len)
97 const size_t suffix_len = strlen(suffix);
100 // the suffix. src_name may contain path to the filename, so we
106 if (suffix_strcmp(suffix, src_name + src_len - suffix_len) == 0)
113 /// \brief Removes the filename suffix of the compressed file
116 /// suffix.
165 message_warning(_("%s: Filename has an unknown suffix, "
184 msg_suffix(const char *src_name, const char *suffix)
186 message_warning(_("%s: File already has '%s' suffix, skipping"),
187 src_name, suffix);
192 /// \brief Appends suffix to src_name
222 // --format=raw requires specifying the suffix
246 // Recognize also the special suffix that is used when long
247 // filename (LFN) support isn't available. This suffix is
262 const char *suffix = custom_suffix != NULL
264 size_t suffix_len = strlen(suffix);
271 // Look for suffix separator from the filename, and make sure
289 && suffix[0] == '.')
306 suffix = tar_suffixes[format];
312 // Instead of the .xz suffix, use a single
323 suffix = "-";
327 if (suffix[0] == '.') {
328 // The first character of the suffix is a dot.
330 // and replace it with the new suffix.
338 // The first character of the suffix is not
349 // Truncate the suffix to three chars:
365 memcpy(dest_name + src_len, suffix, suffix_len);
378 // the string to compare the suffix, so calculate the length here.
388 suffix_set(const char *suffix)
390 // Empty suffix and suffixes having a directory separator are
392 if (suffix[0] == '\0' || has_dir_sep(suffix))
393 message_fatal(_("%s: Invalid filename suffix"), suffix);
395 // Replace the old custom_suffix (if any) with the new suffix.
397 custom_suffix = xstrdup(suffix);