Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!elroy.jpl.nasa.gov!usc!rpi!batcomputer!theory.tn.cornell.edu!gould From: gould@theory.tn.cornell.edu (EWD) Newsgroups: comp.lang.c Subject: Re: Is this ok?? Summary: SYS$VMS$FUBAR Message-ID: <1991Mar7.192014.28435@batcomputer.tn.cornell.edu> Date: 7 Mar 91 19:20:14 GMT References: Sender: news@batcomputer.tn.cornell.edu Distribution: comp Organization: Cornell Theory Center Lines: 31 Nntp-Posting-Host: theory.tn.cornell.edu In article davis@pacific.mps.ohio-state.edu (John E. Davis) writes: >Hi, > > The following code works on sun4 and ultrix but crashes on VMS. Just when >I thought I understood pointers..... > ... > return(0); ... > >I expect to `hello' but I fail on VMS. I get a `symbolic dump stack ...'. >What is wrong??? It's been a while, but I believe the bottom line is that any useful C program on VMS must include a '$'. You need to #include some SYS$SYSDEF$DARKSIDEOFTHEFORCE file in some VMS specific include systax, then you have to #define your exit statuses in terms of the '$' infested constants therein, then you need to #define corresponding exit statuses for other platforms... But don't complain: The discipline will put you in Mr. Portable mode for the rest of your career. On the brighter side, at least on VMS you can walk and chew gum at the same time without the horrors of execles and sockets and children and signals. Give me a Unix with async io and endaction routines... Eliot W. Dudley edudley@rodan.acs.syr.edu RD 1, Box 66 Cato, New York 13033 315 437 0215