DragonFly BSD
DragonFly commits List (threaded) for 2005-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/bin/ls extern.h ls.c print.c

From: Jeroen Ruigrok/asmodai <asmodai@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 18 Sep 2005 11:01:49 -0700 (PDT)

asmodai     2005/09/18 11:01:49 PDT

DragonFly src repository

  Modified files:
    bin/ls               extern.h ls.c print.c 
  Synchronise with FreeBSD:
  Bump Id where needed.
  Constify parameters that do not get touched.
  Do something sensible if both -h and -k are given.
  If we are asked to print the total number of blocks, do so even if we
  have no entries to print (either due to an empty directory or an
  error).  This makes the -l and -s options more consistent, like
  Solaris and (Debian) Linux.  To make this happen, tweak two
  optimizations on the second call to display():
  - Don't skip display() altogether, even if list == NULL.
  - Don't skip the call to the printfn in display() if we
    need to print the total.
  Small clean ups and casts.
  Revision  Changes    Path
  1.6       +4 -4      src/bin/ls/extern.h
  1.14      +17 -14    src/bin/ls/ls.c
  1.13      +8 -7      src/bin/ls/print.c


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]