procps |
I started with the "commands" 2.0 source from TiVo's linux GPL page. I did a little hacking including using my libtivohack.
I hacked up a replacement for getutent() and friends that figure out which processes are interactive (since we don't have a utmp file). Both w and uptime make use of this.
I ifdef'ed out some stuff in top and ps that the TiVo can't do. For top to run you'll need a termcap file that supports you TERM. You can use TERMCAP to specify the location of a private termcap file.
I fix a Y2K bug in the formatting of the date for w.
I fixed some SUPPORT_PROCD code. There was also a nice bug where "timeout" was supposed to be unsigned but the TiVo kernel returns -1 and this was killing all the proc info following that parameter.
Back to Craig's TiVo Downloads page
Copyright © 2000, 2001
Craig Leres