unit_buffer_valid.c: initial revision.