VirtualBox

Changeset 620 in kBuild


Ignore:
Timestamp:
Nov 26, 2006 6:54:12 AM (18 years ago)
Author:
bird
Message:

NetBSD: /fts.h/1.12/Thu Feb 3 04:39:32 2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/kmkbuiltin/ftsfake.h

    r370 r620  
     1/*      $NetBSD: fts.h,v 1.12 2005/02/03 04:39:32 perry Exp $   */
     2
    13/*
    24 * Copyright (c) 1989, 1993
     
    1113 *    notice, this list of conditions and the following disclaimer in the
    1214 *    documentation and/or other materials provided with the distribution.
    13  * 3. All advertising materials mentioning features or use of this software
    14  *    must display the following acknowledgement:
    15  *      This product includes software developed by the University of
    16  *      California, Berkeley and its contributors.
    17  * 4. Neither the name of the University nor the names of its contributors
     15 * 3. Neither the name of the University nor the names of its contributors
    1816 *    may be used to endorse or promote products derived from this software
    1917 *    without specific prior written permission.
     
    3230 *
    3331 *      @(#)fts.h       8.3 (Berkeley) 8/14/94
    34  * $FreeBSD: src/include/fts.h,v 1.10 2004/05/12 21:38:39 peadar Exp $
    35  */
    36 
    37 /** @file
    38  * FreeBSD 5.3
    39  * @changed bird: No whiteout, no fts_symfd. Replaced fts_rfd with fts_rdir
    4032 */
    4133
     
    4941        dev_t fts_dev;                  /* starting device # */
    5042        char *fts_path;                 /* path for this descent */
    51 #ifdef _MSC_VER
    52         char *fts_rdir;                 /* path of root */
    53 #else
    5443        int fts_rfd;                    /* fd for root */
    55 #endif
    56         int fts_pathlen;                /* sizeof(path) */
    57         int fts_nitems;                 /* elements in the sort array */
     44        u_int fts_pathlen;              /* sizeof(path) */
     45        u_int fts_nitems;               /* elements in the sort array */
    5846        int (*fts_compar)               /* compare function */
    59             (const struct _ftsent * const *, const struct _ftsent * const *);
     47                (const struct _ftsent **, const struct _ftsent **);
    6048
    6149#define FTS_COMFOLLOW   0x001           /* follow command line symlinks */
     
    6654#define FTS_SEEDOT      0x020           /* return dot and dot-dot */
    6755#define FTS_XDEV        0x040           /* don't cross devices */
    68 #if !defined(__EMX__) && !defined(_MSC_VER)
    6956#define FTS_WHITEOUT    0x080           /* return whiteout information */
    70 #endif
    7157#define FTS_OPTIONMASK  0x0ff           /* valid user option mask */
    7258
     
    7460#define FTS_STOP        0x200           /* (private) unrecoverable error */
    7561        int fts_options;                /* fts_open options, global flags */
    76         void *fts_clientptr;            /* thunk for sort function */
    7762} FTS;
    7863
     
    8671        char *fts_path;                 /* root path */
    8772        int fts_errno;                  /* errno for this node */
    88 #ifndef _MSC_VER
    8973        int fts_symfd;                  /* fd for symlink */
    90 #endif
    9174        u_short fts_pathlen;            /* strlen(fts_path) */
    9275        u_short fts_namelen;            /* strlen(fts_name) */
     
    9477        ino_t fts_ino;                  /* inode */
    9578        dev_t fts_dev;                  /* device */
     79#ifdef __LIBC12_SOURCE__
     80        u_int16_t fts_nlink;            /* link count */
     81#else
    9682        nlink_t fts_nlink;              /* link count */
     83#endif
    9784
    9885#define FTS_ROOTPARENTLEVEL     -1
     
    113100#define FTS_SL          12              /* symbolic link */
    114101#define FTS_SLNONE      13              /* symbolic link without target */
    115 #ifndef _MSC_VER
    116102#define FTS_W           14              /* whiteout object */
    117 #endif
    118103        u_short fts_info;               /* user flags for FTSENT structure */
    119104
    120105#define FTS_DONTCHDIR    0x01           /* don't chdir .. to the parent */
    121106#define FTS_SYMFOLLOW    0x02           /* followed a symlink to get here */
    122 #ifndef _MSC_VER
    123107#define FTS_ISW          0x04           /* this is a whiteout object */
    124 #endif
    125108        u_short fts_flags;              /* private flags for FTSENT structure */
    126109
     
    131114        u_short fts_instr;              /* fts_set() instructions */
    132115
     116#ifdef __LIBC12_SOURCE__
     117        struct stat12 *fts_statp;       /* stat(2) information */
     118#else
    133119        struct stat *fts_statp;         /* stat(2) information */
    134         char *fts_name;                 /* file name */
    135         FTS *fts_fts;                   /* back pointer to main FTS */
     120#endif
     121        char fts_name[1];               /* file name */
    136122} FTSENT;
    137123
     124#include <sys/cdefs.h>
    138125
     126__BEGIN_DECLS
     127#ifdef __LIBC12_SOURCE__
    139128FTSENT  *fts_children(FTS *, int);
    140129int      fts_close(FTS *);
    141 void    *fts_get_clientptr(FTS *);
    142 #define  fts_get_clientptr(fts) ((fts)->fts_clientptr)
    143 FTS     *fts_get_stream(FTSENT *);
    144 #define  fts_get_stream(ftsent) ((ftsent)->fts_fts)
    145130FTS     *fts_open(char * const *, int,
    146             int (*)(const FTSENT * const *, const FTSENT * const *));
     131            int (*)(const FTSENT **, const FTSENT **));
    147132FTSENT  *fts_read(FTS *);
    148133int      fts_set(FTS *, FTSENT *, int);
    149 void     fts_set_clientptr(FTS *, void *);
     134#else
     135FTSENT  *fts_children(FTS *, int)               __RENAME(__fts_children13);
     136int      fts_close(FTS *)                       __RENAME(__fts_close13);
     137FTS     *fts_open(char * const *, int,
     138            int (*)(const FTSENT **, const FTSENT **))
     139                                                __RENAME(__fts_open13);
     140FTSENT  *fts_read(FTS *)                        __RENAME(__fts_read13);
     141int      fts_set(FTS *, FTSENT *, int)  __RENAME(__fts_set13);
     142#endif
     143__END_DECLS
    150144
    151145#endif /* !_FTS_H_ */
    152 
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