From owner-cvs-all Wed Dec 13 12:22:31 2000 From owner-cvs-all@FreeBSD.ORG Wed Dec 13 12:22:27 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A8AB637B402; Wed, 13 Dec 2000 12:22:27 -0800 (PST) Received: (from des@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBDKMR322254; Wed, 13 Dec 2000 12:22:27 -0800 (PST) (envelope-from des) Message-Id: <200012132022.eBDKMR322254@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: Wed, 13 Dec 2000 12:22:27 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/linprocfs linprocfs_misc.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG des 2000/12/13 12:22:27 PST Modified files: sys/compat/linprocfs linprocfs_misc.c Log: Use kinfo_proc instead of eproc (which Kirk deep-sixed earlier this week) Generate a version string that looks just like a real Linux one - almost :) Use sbufs everywhere instead of sprintf(). Note that this is still imperfect, as the code does not check whether the sbuf overflowed - but it'll still work better than before, since if the sbuf overflows, the code now simply copies out 0 bytes instead of causing a trap (or worse, corrupting kernel structures) Revision Changes Path 1.16 +130 -108 src/sys/compat/linprocfs/linprocfs_misc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message