rcmd_set_state
void rcmd_set_state(int);
rcmd_set_state(RCMD_INIT);
rcmd_set_state(RCMD_NORMAL);
rcmd_set_state(RCMD_CLEANUP);