Reimplement with-null-input and with-null-output entirely in Lisp, avoiding access to system devices.