Path: utzoo!utgpu!watmath!clyde!att!rutgers!sunybcs!sbcs!jdn
From: jdn@sbcs.sunysb.edu (John Norden)
Newsgroups: comp.sys.sequent
Subject: bcopy on a sequent symmetry
Keywords: bcopy sequent symmetry
Message-ID: <1873@sbcs.sunysb.edu>
Date: 4 Dec 88 04:04:33 GMT
Sender: news@sbcs.sunysb.edu
Reply-To: jdn@sbcs.sunysb.edu (John Norden)
Organization: State University of New York at Stony Brook
Lines: 23

Has anyone ever tried to use bcopy to copy a shared memory region
to a non shared region with success.  When I run the code bellow I
get a segmentation fault.  Is this a bug with bcopy?

This just an example I am actually trying to copy a struct.  



shared  int x;
main () {
    int y;
    bcopy (&x, &y, sizeof (int));
}




_______________________________________________________________________________
John D. Norden             | jdn@sbcs.sunysb.edu                       INTERNET
Dept. of Computer Science  | jdn@suny-sb                                  CSNet
SUNY at Stony Brook        | {allegra,philabs,pyramid,research}!sbcs!jdn   UUCP
Stony Brook, NY 11794-4400 | (516) 632-7677 or 632-4569                   Voice
-------------------------------------------------------------------------------