3 #define F(t,n) {t *y = &x.n;}
4 #define C(n) switch(n){case n:;}
16 F(struct ipc_perm
, shm_perm
)
20 F(shmatt_t
,shm_nattch
)
25 {void*(*p
)(int,const void*,int) = shmat
;}
26 {int(*p
)(int,int,struct shmid_ds
*) = shmctl
;}
27 {int(*p
)(const void*) = shmdt
;}
28 {int(*p
)(key_t
,size_t,int) = shmget
;}
49 {key_t(*p
)(const char*,int) = ftok
;}