Limits on charmed-particle production in proton-nucleus collisions at 400 GeV/c