Ignore:
Timestamp:
Nov 2, 2016, 12:28:02 AM (9 years ago)
Author:
bird
Message:

rm.c: Use fts_dirfd on windows.

File:
1 edited

Legend:

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

    r2992 r2997  
    5353#ifdef _WINNT_
    5454typedef HANDLE fts_fd_t;
     55# define NT_FTS_INVALID_HANDLE_VALUE    INVALID_HANDLE_VALUE
    5556#else
    5657typedef void * fts_fd_t;
     58# define NT_FTS_INVALID_HANDLE_VALUE    ((void *)~(uintptr_t)0)
    5759#endif
    5860#define FTSCALL __cdecl
     
    98100        int fts_errno;                  /* errno for this node */
    99101        fts_fd_t fts_symfd;             /* NT: Normally -1; -2 we followed this symlinked dir */
    100         fts_fd_t fts_dirfd;             /* NT: Handle to the directory */
     102        fts_fd_t fts_dirfd;             /* NT: Handle to the directory (NT_FTS_)INVALID_HANDLE_VALUE if not valid */
    101103        size_t fts_pathlen;             /* strlen(fts_path) */
    102104        size_t fts_namelen;             /* strlen(fts_name) */
Note: See TracChangeset for help on using the changeset viewer.