Home | History | Annotate | Download | only in gen

Lines Matching refs:d12

25 direnttodirent12(struct dirent12 *d12, const struct dirent *d)
30 if (d->d_fileno > UINT_MAX || d->d_namlen >= sizeof(d12->d_name)) {
34 d12->d_fileno = (uint32_t)d->d_fileno;
35 d12->d_reclen = (uint16_t)d->d_reclen;
36 d12->d_namlen = (uint8_t)MIN(d->d_namlen, sizeof(d->d_name) - 1);
37 d12->d_type = (uint8_t)d->d_type;
38 memcpy(d12->d_name, d->d_name, (size_t)d12->d_namlen);
39 d12->d_name[d12->d_namlen] = '\0';
40 return d12;
46 static struct dirent12 d12;
47 return direnttodirent12(&d12, __readdir30(dirp));