12 int64_t oldness, newness;
15 int main(int ac, char **av)
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);