char *name;
const char *name;
fts_alloc(sp, name, namelen)	FTS *sp;	char *name;	register int namelen;{	register FTSENT *p;	size_t len;	/*	 * The file name is a variable length array and no stat structure is	 * necessary if the user has set the nostat bit.  Allocate the FTSENT	 * structure, the file name and the stat structure in one chunk, but	 * be careful that the stat structure is reasonably aligned.  Since the	 * fts_name field is declared to be of size 1, the fts_name pointer is	 * namelen + 2 before the first possible address of the stat structure.	 */	len = sizeof(FTSENT) + namelen;	if (!ISSET(FTS_NOSTAT))		len += sizeof(struct stat) + ALIGNBYTES;	if ((p = malloc(len)) == NULL)		return (NULL);	/* Copy the name plus the trailing NULL. */	bcopy(name, p->fts_name, namelen + 1);	if (!ISSET(FTS_NOSTAT))		p->fts_statp = (struct stat *)ALIGN(p->fts_name + namelen + 2);	p->fts_namelen = namelen;	p->fts_path = sp->fts_path;	p->fts_errno = 0;	p->fts_flags = 0;	p->fts_instr = FTS_NOINSTR;	p->fts_number = 0;	p->fts_pointer = NULL;	return (p);}