Density functional approach to the structure of uniform fluids