os: Factor out CHECK_FOR_REQUIRED_ARGUMENTS

Lifted from vfb. xfree86 had almost the same thing but unparameterized,
port it to the vfb style.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
1 job for check-for-required-arguments in 3 minutes and 19 seconds (queued for 7 seconds)
Status Job ID Name Coverage
  Test
passed #34806
job

00:03:19