add definitions of PUSH_MODEL and PULL_MODEL of mem-share.
modify shm_chn_attach function's shmget flags.