cvs commit: projects/csup Makefile TODO detailer.c fattr.c fattr.h fattr_os.h lister.c proto.c proto.h updater.c

Maxime Henrion mux at FreeBSD.org
Thu Jan 19 17:41:01 PST 2006


mux         2006-01-20 01:41:00 UTC

  FreeBSD projects repository

  Modified files:
    csup                 Makefile TODO detailer.c fattr.c fattr.h 
                         fattr_os.h lister.c proto.c proto.h 
                         updater.c 
  Log:
  Commit the rest of my patch to implement status file support.  It's not
  perfect and there are a few things I need to fix/polish, but it will do
  for now.
  
  Makefile:
  - Connect the new files to the build.
  
  TODO:
  - Slightly update, more to come.
  
  proto.c:
  - Rename proto_getstr() to proto_get_ascii().
  - Add proto_get_int() and proto_get_time(), self-explanatory.
  - Add support for new modifiers to proto_printf(): %c, %S for strings
    that shouldn't be escaped and %t for printing time_t.  Check write
    errors in this function.
  
  fattr.c:
  - Add a new parameter to fattr_new() to allow to pass a modtime for
    the new file attribute, as in CVSup.
  - Use xmalloc() and friends.
  - Implement fattr_default().
  - Remove the const qualifier from the fattr_decode() argument, it gets
    written to.
  - Implement fattr_umask().
  - Implement fattr_getmask().
  - Implement fattr_getlinkcount().
  - Swap the to and from parameters of fattr_install() to match CVSup.
  
  fattr_os.h:
  - Change the supported the file attributes for FT_UNKNOWN filetypes
    with a big XXX comment next to it, this needs double-checking.
  
  detailer.c:
  - Convert to use the status file.
  - Use the new proto_*() API for parsing.
  
  lister.c:
  - Convert to use the status file.
  - Use the new proto_*() API for parsing.
  
  updater.c:
  - Update to use and update the status file.
  - Use the new proto_*() API for parsing.
  - Use a struct context and pass it throughout the updater's code to
    reduce the number of parameters.
  - Use the new co_prefixlen field of struct coll instead of calling
    strlen() each time.
  
  And copyright updates about everywhere.
  
  Revision  Changes    Path
  1.32      +4 -1      projects/csup/Makefile
  1.32      +3 -8      projects/csup/TODO
  1.32      +110 -36   projects/csup/detailer.c
  1.23      +64 -27    projects/csup/fattr.c
  1.18      +11 -2     projects/csup/fattr.h
  1.4       +1 -1      projects/csup/fattr_os.h
  1.16      +272 -3    projects/csup/lister.c
  1.49      +123 -60   projects/csup/proto.c
  1.8       +6 -2      projects/csup/proto.h
  1.58      +553 -214  projects/csup/updater.c


More information about the cvs-projects mailing list