Can you elaborate? I worked as a pharmacy tech when I was younger and never saw drugs dispensed without a prescription from a doctor. I also can't find anything on the web about this being possible in the U.S.
Actually modafinil is a schedule 4 stimulant (which matters in some states). And Pharm.D.s can get into an agreement with Physicians to dispense medication on their behalf as they see fit, it's called Collaborative drug therapy management.