git: find(1): Sync with FreeBSD

John Marino marino at crater.dragonflybsd.org
Fri Oct 11 16:30:09 PDT 2013


commit a18c0031f6b1259c3d5c06a5a5502b12be5b99a7
Author: John Marino <draco at marino.st>
Date:   Sat Oct 12 00:13:17 2013 +0200

    find(1): Sync with FreeBSD
    
    Originally I did this to gain the -quit feature.  It turns out that we
    already had it, but FreeBSD didn't document it until 4 years after they
    implemented it, so it wasn't on our man page either.
    
    With this sync, we get time comparisons down to the nanosecond.  We get
    the -sparse option.  The behavior of -delete was changed the delete the
    files given as arguments.
    
    The only thing that was omitted with all the birthtime options.
    The new find was used successfully in locate.update job, something
    that failed in the last sync and code in functions.c had to be
    partially reverted.

Summary of changes:
 usr.bin/find/extern.h   |   8 ++-
 usr.bin/find/find.1     |  57 ++++++++++++-----
 usr.bin/find/find.c     |  14 +++--
 usr.bin/find/find.h     |   7 ++-
 usr.bin/find/function.c | 159 +++++++++++++++++++++++++++++++++---------------
 usr.bin/find/ls.c       |  18 +++---
 usr.bin/find/main.c     |  15 ++---
 usr.bin/find/misc.c     |  39 +++++-------
 usr.bin/find/option.c   |   7 ++-
 9 files changed, 208 insertions(+), 116 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a18c0031f6b1259c3d5c06a5a5502b12be5b99a7


-- 
DragonFly BSD source repository



More information about the Commits mailing list