Create device_system1.cc

Segfaults with write.  Possible issue with file descriptors.