The structure of polydisperse hard sphere fluids, in the presence of a wall, is studied by the Rosenfeld density functional theory. Within this approach, the local excess free energy depends on only four combinations of the full set of density fields. The case of continuous polydispersity thereby becomes tractable. We predict, generically, an oscillatory size segregation close to the wall, and connect this, by a perturbation theory for narrow distributions, with the reversible work for changing the size of one particle in a monodisperse reference fluid. PACS numbers: 61.20.Gy, 05.20.Jj, 64.75. + g Understanding the behavior of polydisperse systems is relevant to many materials of practical interest. In particular, colloidal and/or polymeric fluids generally contain particles which have, in effect, a continuous distribution of sizes (and/or other parameters such as charge and chemical composition). This affects their performance in applications ranging from foodstuffs to polymer processing [1]. More fundamentally, colloidal systems also provide the closest experimental approach to the "theorists ideal fluid," namely, that of perfect hard spheres [2]. The fact that all colloids are in practice polydisperse (at least slightly) must then be taken into account in comparing theory with experiment. Only recently has experimental work started to clarify in a systematic way the generic consequences of polydispersity, such as the partitioning of sizes between coexisting phases [3].Despite the continuous interest polydisperse fluids have raised, their theoretical understanding remains far from complete, especially for inhomogeneous cases. More is known about partial structure factors in single-phase fluids [4,5] and liquid-liquid phase equilibrium [6,7] than about crystalline phases [8] or interfacial properties, for example. And, where such inhomogeneous situations have been studied [9] it has often proved necessary to assume that only the mean density, and not the size distribution, can vary in space [10]. This ignores size segregation effects, which (globally) influence the phase diagram [3,7]. A similar tendency to local segregation is implicit in treatments of binary and ternary hard sphere mixtures [11][12][13] and in polydisperse equilibrium structure factors in the homogeneous state [4].In what follows, we treat continuous polydispersity within a density functional theory (DFT) that properly allows for local size segregation. Our work is based on a choice of density functional (that of Rosenfeld [14]) that has previously been used to study finite mixtures of hard spheres. By exploiting the fact that its excess free energy density depends on only a small number of linear combinations of the particle densities (four "moment densities"), we are able to address the case of continuous polydispersity, where the underlying densities are infinite in number. This allows us to study, e.g., the effects of varying the shape of a smooth size distribution. Moreover, by a perturbative analysis of the same functional, we can di...