[BACK]Return to compat_fts.h CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/compat_fts.h between version 1.1 and 1.5

version 1.1, 2014/08/11 01:39:00 version 1.5, 2020/06/14 22:49:36
Line 38 
Line 38 
 typedef struct {  typedef struct {
         struct _ftsent *fts_cur;        /* current node */          struct _ftsent *fts_cur;        /* current node */
         struct _ftsent *fts_child;      /* linked list of children */          struct _ftsent *fts_child;      /* linked list of children */
           struct _ftsent **fts_array;     /* sort array */
         dev_t fts_dev;                  /* starting device # */          dev_t fts_dev;                  /* starting device # */
         char *fts_path;                 /* path for this descent */          char *fts_path;                 /* path for this descent */
         int fts_rfd;                    /* fd for root */  
         size_t fts_pathlen;             /* sizeof(path) */          size_t fts_pathlen;             /* sizeof(path) */
           int fts_nitems;                 /* elements in the sort array */
           int (*fts_compar)(const struct _ftsent **, const struct _ftsent **);
                                           /* compare function */
   
 #define FTS_NOCHDIR     0x0004          /* don't change directories */  #define FTS_NOCHDIR     0x0004          /* don't change directories */
 #define FTS_PHYSICAL    0x0010          /* physical walk */  #define FTS_PHYSICAL    0x0010          /* physical walk */
 #define FTS_XDEV        0x0040          /* don't cross devices */  #define FTS_XDEV        0x0040          /* don't cross devices */
 #define FTS_OPTIONMASK  0x00ff          /* valid user option mask */  #define FTS_OPTIONMASK  0x0054          /* valid user option mask */
   
 #define FTS_STOP        0x2000          /* (private) unrecoverable error */  #define FTS_STOP        0x2000          /* (private) unrecoverable error */
         int fts_options;                /* fts_open options, global flags */          int fts_options;                /* fts_open options, global flags */
Line 85  typedef struct _ftsent {
Line 88  typedef struct _ftsent {
 #define FTS_SL          12              /* symbolic link */  #define FTS_SL          12              /* symbolic link */
         unsigned short fts_info;        /* user flags for FTSENT structure */          unsigned short fts_info;        /* user flags for FTSENT structure */
   
 #define FTS_DONTCHDIR    0x01           /* don't chdir .. to the parent */  
         unsigned short fts_flags;       /* private flags for FTSENT structure */  
   
 #define FTS_NOINSTR      3              /* no instructions */  #define FTS_NOINSTR      3              /* no instructions */
 #define FTS_SKIP         4              /* discard node */  #define FTS_SKIP         4              /* discard node */
         unsigned short fts_instr;       /* fts_set() instructions */          unsigned short fts_instr;       /* fts_set() instructions */
Line 96  typedef struct _ftsent {
Line 96  typedef struct _ftsent {
         char fts_name[1];               /* file name */          char fts_name[1];               /* file name */
 } FTSENT;  } FTSENT;
   
 __BEGIN_DECLS  
 int      fts_close(FTS *);  int      fts_close(FTS *);
 FTS     *fts_open(char * const *, int, void *);  FTS     *fts_open(char * const *, int,
               int (*)(const FTSENT **, const FTSENT **));
 FTSENT  *fts_read(FTS *);  FTSENT  *fts_read(FTS *);
 int      fts_set(FTS *, FTSENT *, int);  int      fts_set(FTS *, FTSENT *, int);
 __END_DECLS  
   
 #endif /* !_FTS_H_ */  #endif /* !_FTS_H_ */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

CVSweb