VirtualBox

Changeset 3535 in kBuild for trunk


Ignore:
Timestamp:
Dec 20, 2021 11:32:28 PM (3 years ago)
Author:
bird
Message:

nt/fts-nt.c+h: A couple of tweaks to make grep happy.

Location:
trunk/src/lib/nt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt/fts-nt.c

    r3009 r3535  
    8585#include "nthlp.h"
    8686#include "ntdir.h"
     87#include "ntopenat.h" /* for AT_FDCWD */
    8788#include <stdio.h>//debug
    8889
     
    191192        sp->fts_options = options;
    192193        SET(FTS_NOCHDIR); /* NT: FTS_NOCHDIR is always on (for external consumes) */
     194        sp->fts_cwd_fd = AT_FDCWD;
    193195
    194196        /* Shush, GCC. */
  • trunk/src/lib/nt/fts-nt.h

    r3004 r3535  
    8383#define FTS_WHITEOUT    0x080           /* return whiteout information */
    8484#endif
     85#define FTS_CWDFD       0x100           /* For gnulib fts compatibility, enables fts_cwd_fd. */
     86#define FTS_TIGHT_CYCLE_CHECK 0x200     /* Ignored currently */
    8587#define FTS_NO_ANSI     0x40000000      /* NT: No ansi name or access path. */
    86 #define FTS_OPTIONMASK  0x400000ff      /* valid user option mask */
     88#define FTS_OPTIONMASK  0x400003ff      /* valid user option mask */
    8789
    88 #define FTS_NAMEONLY    0x100           /* (private) child names only */
    89 #define FTS_STOP        0x200           /* (private) unrecoverable error */
     90#define FTS_NAMEONLY    0x10000         /* (private) child names only */
     91#define FTS_STOP        0x20000         /* (private) unrecoverable error */
    9092        int fts_options;                /* fts_open options, global flags */
     93        int fts_cwd_fd;                 /* FTS_CWDFD: AT_FDCWD or a virtual CWD file descriptor. */
    9194        void *fts_clientptr;            /* thunk for sort function */
    9295} FTS;
     
    132135#define FTS_SL          12              /* symbolic link */
    133136#define FTS_SLNONE      13              /* symbolic link without target */
    134 //#define       FTS_W           14              /* whiteout object */
     137#define FTS_W           14              /* whiteout object */
    135138        int fts_info;                   /* user status for FTSENT structure */
    136139
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette