update ffmpeg to 4.1, add sketcher plugin, crikey tweaks, titler colorpicker, keyfram...
[goodguy/cinelerra.git] / cinelerra-5.1 / db / utils / root_info.C
1 #include<stdio.h>
2 #include<stdint.h>
3 #include <sys/ipc.h>
4 #include <sys/shm.h>
5
6 struct info {
7   int magic;
8   int info_key, info_id;
9   int root_info_id;
10   int index_info_id;
11   int page_info_id;
12   int64_t oldness, newness;
13 };
14
15 int main(int ac, char **av)
16 {
17   void *vp;
18   struct info *ip;
19   int id = shmget(34543, 30792, 0666);
20   if( id < 0 ) return 1;
21   vp = (void *) shmat(id, NULL, 0);
22   if( vp == (void*)-1 ) return 2;
23   ip = (struct info *)vp;
24   printf(" magic = %08x\n",ip->magic);
25   printf(" info_key = %d\n",ip->info_key);
26   printf(" info_id = %d\n",ip->info_id);
27   printf(" root_info_id = %d\n",ip->root_info_id);
28   printf(" index_info_id = %d\n",ip->index_info_id);
29   printf(" page_info_id = %d\n",ip->page_info_id);
30   printf(" oldness = %jd\n",ip->oldness);
31   printf(" newness = %jd\n",ip->newness);
32   return 0;
33 }
34