Blame src/api/sys_ipc.c

nsz f81126
#include <sys/ipc.h>
nsz f81126
#define T(t) (t*)0;
nsz f81126
#define F(t,n) {t *y = &x.;;}
nsz f81126
#define C(n) switch(n){case n:;}
nsz f81126
static void f()
nsz f81126
{
nsz f81126
T(uid_t)
nsz f81126
T(gid_t)
nsz f81126
T(mode_t)
nsz f81126
T(key_t)
nsz f81126
{
nsz f81126
struct ipc_perm x;
nsz f81126
F(uid_t,uid)
nsz f81126
F(gid_t,gid)
nsz f81126
F(uid_t,cuid)
nsz f81126
F(gid_t,cgid)
nsz f81126
F(mode_t, mode)
nsz f81126
}
nsz f81126
C(IPC_CREAT)
nsz f81126
C(IPC_EXCL)
nsz f81126
C(IPC_NOWAIT)
nsz f81126
C(IPC_PRIVATE)
nsz f81126
C(IPC_RMID)
nsz f81126
C(IPC_SET)
nsz f81126
C(IPC_STAT)
nsz 0ef264
{key_t(*p)(const char*,int) = ftok;}
nsz f81126
}