>>192
> if( i = 2000)
i == 2000
だろ

>>193
> timer_settime(timer_id,0,&itval,NULL);
do { int x; read(0, &x, sizeof x);} while (1);
> }