Input/Output Learning Mode

What is the difference between stat() and fstat()?