From owner-cvs-src@FreeBSD.ORG Thu Jul 31 10:27:53 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFB0637B401; Thu, 31 Jul 2003 10:27:52 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87AD543F93; Thu, 31 Jul 2003 10:27:52 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6VHRq0U082021; Thu, 31 Jul 2003 10:27:52 -0700 (PDT) (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6VHRqQS082020; Thu, 31 Jul 2003 10:27:52 -0700 (PDT) Message-Id: <200307311727.h6VHRqQS082020@repoman.freebsd.org> From: John Baldwin Date: Thu, 31 Jul 2003 10:27:52 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/ddb db_command.c db_output.c ddb.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 17:27:53 -0000 jhb 2003/07/31 10:27:52 PDT FreeBSD src repository Modified files: sys/ddb db_command.c db_output.c ddb.h Log: Add a one-shot callout facility to db_printf() that executes the registered callout when a specified number of lines have been output. This can be used to implement pagers for ddb commands that output a lot of text. A simple paging function is included that automatically rearms itself when fired. Reviewed by: bde, julian Revision Changes Path 1.51 +1 -0 src/sys/ddb/db_command.c 1.29 +66 -0 src/sys/ddb/db_output.c 1.34 +8 -0 src/sys/ddb/ddb.h