C code for some common GNU utils with common options