Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 1995 16:48:30 +0100
From:      Wolfram Schneider <wosch@cs.tu-berlin.de>
To:        hackers@freebsd.org
Subject:   fts(3)
Message-ID:  <199512131548.QAA09663@caramba.cs.tu-berlin.de>

next in thread | raw e-mail | index | archive | help

from the man page:
The argument compar() specifies a user-defined function which may be used
to order the traversal of the hierarchy.  It takes two pointers to point-
ers to FTSENT structures as arguments and should return a negative value,
zero, or a positive value to indicate if the file referenced by its first
argument comes before, in any order with respect to, or after, the file
referenced by its second argument.  The fts_accpath, fts_path and
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fts_pathlen fields of the FTSENT structures may never be used in this
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
comparison.  If the fts_info field is set to FTS_NS or FTS_NSOK, the
^^^^^^^^^^
fts_statp field may not either.


Why should I not use this fields? I need fts_accpath for a find(1)
with builtin sort.

Wolfram



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512131548.QAA09663>