Move definitions of standard file number.
Replace ptr_t with intptr_t.