alarm: use proper functions to avoid overwriting env
alarm: use proper functions to avoid overwriting env

Former-commit-id: 4512f4f5f788cef877392bc423ec6973b94fc7e1 [formerly deb625254ba9f70255f9549927869d4fdf91c3dd]
Former-commit-id: 228883a3b6e03a998df48df3418e3f0b3c2adae0
haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2