From owner-freebsd-hackers Wed Dec 13 08:11:05 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA26626 for hackers-outgoing; Wed, 13 Dec 1995 08:11:05 -0800 (PST) Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id IAA26445 for ; Wed, 13 Dec 1995 08:09:51 -0800 (PST) Received: from caramba.cs.tu-berlin.de (wosch@caramba.cs.tu-berlin.de [130.149.17.12]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id QAA17697 for ; Wed, 13 Dec 1995 16:48:36 +0100 From: Wolfram Schneider Received: (wosch@localhost) by caramba.cs.tu-berlin.de (8.6.12/8.6.9) id QAA09663; Wed, 13 Dec 1995 16:48:30 +0100 Date: Wed, 13 Dec 1995 16:48:30 +0100 Message-Id: <199512131548.QAA09663@caramba.cs.tu-berlin.de> To: hackers@freebsd.org Subject: fts(3) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org Precedence: bulk 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