A problem about glrotate() and matrix.

I want to know how glrotate() is realized, use matrix? And how?

Here 's an online copy of the Red Book, and appendix G shows how to create the matrix from glRotate. It’s also mentioned in the API specification on page 44.