From owner-freebsd-arch Mon Dec 11 10: 3:26 2000 From owner-freebsd-arch@FreeBSD.ORG Mon Dec 11 10:03:24 2000 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id A02D437B400 for ; Mon, 11 Dec 2000 10:03:23 -0800 (PST) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id TAA56515; Mon, 11 Dec 2000 19:03:22 +0100 (CET) (envelope-from des@ofug.org) Sender: des@ofug.org X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: arch@freebsd.org Subject: Safe string formatting in the kernel From: Dag-Erling Smorgrav Date: 11 Dec 2000 19:03:21 +0100 Message-ID: Lines: 16 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've implemented a set of functions for performing safe string formatting in the kernel, based on an initial idea (and design) by Poul-Henning. There's a patch up on freefall: http://people.freebsd.org/~des/software/sbuf-20001211.diff The current implementation is not complete (I plan to add support for automatically growing sbufs instead of failing when they fill up) but it's functional enough for most of the uses PHK and I have for it now. The code has already been reviewed by a number of people, so unless there are major objections I'll commit it some time later this week. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message