From owner-cvs-all@FreeBSD.ORG Fri Jan 20 01:41:01 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 304A216A41F; Fri, 20 Jan 2006 01:41:01 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D309A43D45; Fri, 20 Jan 2006 01:41:00 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k0K1f0gT018891; Fri, 20 Jan 2006 01:41:00 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0K1f0Ep018890; Fri, 20 Jan 2006 01:41:00 GMT (envelope-from mux) Message-Id: <200601200141.k0K1f0Ep018890@repoman.freebsd.org> From: Maxime Henrion Date: Fri, 20 Jan 2006 01:41:00 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup Makefile TODO detailer.c fattr.c fattr.h fattr_os.h lister.c proto.c proto.h updater.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2006 01:41:01 -0000 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