SIZEOF_VID
if ((vid = malloc(SIZEOF_VID)) == NULL) {
memset(vid, 0, SIZEOF_VID);
if (write(fd, vid, SIZEOF_VID) != SIZEOF_VID) {