Perfect question -- just confusing enough that the person who tries to answer is confused, thus further confusing the asker.
Are you referring to a revolver, or a semi-auto? Different critters, different safety mechanisms. Typically a revolver will have either a transfer bar, or a hammer block; a semiauto will have one part, or a combination of parts, which locks hammer, sear, trigger and/or firing pin, depending on the exact gun.