RTEMS CPU Kit with SuperCore  4.11.3
Macros | Functions
fts.c File Reference
#include <sys/cdefs.h>
#include "namespace.h"
#include <limits.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <assert.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <fts.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for fts.c:

Macros

#define _DIAGASSERT(a)
 
#define dirfd(dp)   __dirfd(dp)
 
#define HAVE_STRUCT_DIRENT_D_NAMLEN
 
#define ISDOT(a)   (a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2])))
 
#define CLR(opt)   (sp->fts_options &= ~(opt))
 
#define ISSET(opt)   (sp->fts_options & (opt))
 
#define SET(opt)   (sp->fts_options |= (opt))
 
#define CHDIR(sp, path)   (!ISSET(FTS_NOCHDIR) && chdir(path))
 
#define FCHDIR(sp, fd)   (!ISSET(FTS_NOCHDIR) && fchdir(fd))
 
#define BCHILD   1 /* fts_children */
 
#define BNAMES   2 /* fts_children, names only */
 
#define BREAD   3 /* fts_read */
 
#define NAPPEND(p)
 
#define __opendir2(path, flag)   opendir(path)
 
#define ADJUST(p)
 

Functions

FTSfts_open (char *const *argv, int options, int(*compar)(const FTSENT **, const FTSENT **))
 
int fts_close (FTS *sp)
 
FTSENTfts_read (FTS *sp)
 
int fts_set (FTS *sp, FTSENT *p, int instr)
 
FTSENTfts_children (FTS *sp, int instr)
 

Macro Definition Documentation

◆ ADJUST

#define ADJUST (   p)
Value:
do { \
if ((p)->fts_accpath != (p)->fts_name) \
(p)->fts_accpath = \
addr + ((p)->fts_accpath - (p)->fts_path); \
(p)->fts_path = addr; \
} while (/*CONSTCOND*/0)

◆ NAPPEND

#define NAPPEND (   p)
Value:
(p->fts_path[p->fts_pathlen - 1] == '/' \
? p->fts_pathlen - 1 : p->fts_pathlen)