]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a one-shot callout facility to db_printf() that executes the registered
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 31 Jul 2003 17:27:52 +0000 (17:27 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 31 Jul 2003 17:27:52 +0000 (17:27 +0000)
commit1e16f6098bf69794d9be2a7722a1ee1ac090508d
tree2e3958472b2e92004d1cf78c61cbb91760f2f2b8
parent69e4c730376c7789a1f05e654f2eaaf3c4937be9
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
sys/ddb/db_command.c
sys/ddb/db_output.c
sys/ddb/ddb.h