|
From: Jose N. <jo...@mo...> - 2002-11-19 02:51:45
|
the attached diff changes the api in cli_loop to accepting two file descriptors now, fd in (to read from) and fd out (to pass the prompt to). tested on openbsd-current using test1. the goal is to allow for the silent operation of a cli_loop() paarsing a file, for example, by setting fd out to -1 (it just sets streamout to /dev/null, w+). feedback welcome. ___________________________ jose nazario, ph.d. jo...@mo... http://www.monkey.org/~jose/ |