Path: utzoo!attcan!uunet!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!ycy From: ycy@walt.cc.utexas.edu (Joseph Yip) Newsgroups: comp.unix.questions Subject: shared memory segment, shmat() ... Message-ID: <34559@ut-emx.UUCP> Date: 27 Jul 90 16:41:38 GMT Sender: news@ut-emx.UUCP Reply-To: ycy@walt.cc.utexas.edu (Joseph Yip) Organization: The University of Texas at Austin, Austin, Texas Lines: 12 A few days ago, I came across some code that uses shmat() and related functions. The program maps a file using shmat() (we are using IBM RT, running AIX 2.2.1). Basically, the program opens an binary digital image file and maps it. Can someone explain to me what is shared memory segment and how to use it? In /usr/include/sys/shm.h (AIX), SHM_MAP flag maps a file instead of share segment. But in SunOS 4.0, shm.h does not have this flag. How can I map a file in this case? Thank you. - Joseph Yip Email: joseph@zeus.ee.utexas.edu