Use glibc routines

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>