Help needed for Accessing GPIO of BBrd through 'C' Code [ Not through the files in /sys ]

This helped me (I didn’t use mmap):

https://www.ridgerun.com/developer/wiki/index.php/Gpio-int-test.c

Also, here’s some useful info in finding the Pin to GPIO number mappings:
http://akademii.blogspot.com/2012/02/beaglebone-gpio-testing.html

Oops, just saw you were talking about BeagleBoard, not BealgeBone. Might still be useful.