Artifact d68dd2f1c0d20adc0759e84427dfb3aa4fe770c4:
- File tests/langbench/hash.tcl — part of check-in [69b737f5a1] at 2016-04-19 20:35:49 on branch little — Fork of Tcl used in the "Little" project. http://www.mcvoy.com/lm/little/index.html (user: dgp, size: 282) [annotate] [blame] [check-ins using]
proc main {} { global argv set d [dict create] foreach file $argv { set f [open $file rb] while {[gets $f buf] >= 0} { dict set d $buf 1 } close $f } } main set f [open "/proc/[pid]/status"] while {[gets $f buf] >= 0} { if {[regexp {^Vm[RD]} $buf]} { puts $buf } }