From owner-freebsd-arch Sun Feb 25 23:44:45 2001 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 0D6E337B491 for ; Sun, 25 Feb 2001 23:44:43 -0800 (PST) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id IAA64520; Mon, 26 Feb 2001 08:44:38 +0100 (CET) (envelope-from 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: "Kenneth D. Merry" Cc: arch@FreeBSD.ORG Subject: Re: sbufs in userland References: <20010226003319.A19994@panzer.kdm.org> From: Dag-Erling Smorgrav Date: 26 Feb 2001 08:44:37 +0100 In-Reply-To: "Kenneth D. Merry"'s message of "Mon, 26 Feb 2001 00:33:19 -0700" Message-ID: Lines: 12 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 "Kenneth D. Merry" writes: > 2. If we do put sbufs in userland, what is the best way to do it? Whichever way you do it, you need to change userland sprintf() to behave like kernel sprintf(), i.e. use a backend function that does the actual formatting and takes a pointer to a character output function, instead of what it currently does, which is to fake a FILE structure with the target string as buffer. 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