Add util header for subsystem specific macros

This PR adds utility macros for the command subsystem.
Don't we return errno.h constants?