Lines Matching defs:new
156 struct fattr *new;
158 new = xmalloc(sizeof(struct fattr));
159 memset(new, 0, sizeof(struct fattr));
160 new->type = type;
162 new->mask |= FA_FILETYPE;
164 new->modtime = modtime;
165 new->mask |= FA_MODTIME;
167 if (fattr_supported(new->type) & FA_LINKCOUNT) {
168 new->mask |= FA_LINKCOUNT;
169 new->linkcount = 1;
171 return (new);
174 /* Returns a new file attribute structure based on a stat structure. */
274 /* Returns a new file attribute structure from its encoded text form. */