define a few constants and macros
refactor sys_sched_getparam, and create sys_lshort_query_remaining_time and lshort_query_overdue_time