UPGRADE: osdep for TPS definition