#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>

int main()
{
 int handle;
 char *meldung[3] ={"ram-size:", "vga-mode:", "root-device"};
 handle = open("/vmlinuz",O_RDONLY);

 lseek(handle,504,0);

 short buffer;

 for(int i = 0; i<=2;++i)
 {
  read(handle,(char *)&buffer,sizeof (short));
  printf("%s %d\n",meldung[i],buffer);
 }  return 0;
}
