Lines Matching refs:comment
1679 static int add_dirent(SMBCFILE *dir, const char *name, const char *comment, uint32 type)
1684 int comment_len = (comment == NULL ? 0 : strlen(comment));
1688 * size of the name and the comment and 1 each for the null terminator.
1744 dirent->comment = (char *)(&dirent->name + dirent->namelen + 1);
1745 strncpy(dirent->comment, (comment?comment:""), dirent->commentlen + 1);
1752 list_unique_wg_fn(const char *name, uint32 type, const char *comment, void *state)
1762 if (add_dirent(dir, name, comment, dirent_type) < 0) {
1792 list_fn(const char *name, uint32 type, const char *comment, void *state)
1825 if (add_dirent(dir, name, comment, dirent_type) < 0) {
2228 /* Save the pointer to the beginning of the comment */
2229 dest->comment = dest->name + dest->namelen + 1;
2231 /* Copy the comment */
2232 strncpy(dest->comment, src->comment, max_namebuf_len);
2234 /* Ensure the comment is null terminated */
2236 dest->comment[src->commentlen] = '\0';
2238 dest->comment[max_namebuf_len - 1] = '\0';
2243 dest->commentlen = strlen(dest->comment);
2244 dest->dirlen = ((dest->comment + dest->commentlen + 1) -
2250 dest->comment = (char *)(&dest->name + src->namelen + 1);
2396 ((struct smbc_dirent *)ndir)->comment =