removed GetMask (gone to sys-*.c)