Sentence:  All during the night the riding ponies had grazed in close proximity to the house, had stamped about it, and occasionally had put their noses to its cracks, <WSD>sniffingly</WSD> to satisfy either curiosity or a desire for human companionship. 
Meaning of the word marked with <WSD> tags:  With a sniffing sound or action.