if (shmctl (shmid, ICP_STAT, &shmds) == 0)
if (shmctl (shmid, IPC_STAT, &shmds) == 0)
shmat (shmid, shmaddr, shmflg)     int shmid;     const void *shmaddr;     int shmflg;{  void *__unbounded result;  void *__unbounded raddr;#if __BOUNDED_POINTERS__  size_t length = ~0;  struct shmid_ds shmds;  /* It's unfortunate that we need to make another system call to get     the shared memory segment length...  */  if (shmctl (shmid, ICP_STAT, &shmds) == 0)    length = shmds.shm_segsz;#endif  result = (void *__unbounded) INLINE_SYSCALL (ipc, 5, IPCOP_shmat, shmid, shmflg,					       __ptrvalue (&raddr),					       __ptrvalue (shmaddr));  if ((unsigned long) result <= -(unsigned long) SHMLBA)    result = raddr;  return BOUNDED_N (result, length);}