Arduino interfacing with cocoa

Hello everyone

I am working on developing a C application that interfaces with an arduino via serial USB to control some DC motors via PWM.

there is a page in the playground but the links for the example code are broken and I was wondering if someone could link me to the examples and/or fix the links on the playground page.

http://playground.arduino.cc/Interfacing/Cocoa

so far the popen command has been working but I want to use IOKit/ioctl