From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,12b6bb94ebde41c X-Google-Attributes: gidfee84,public From: sontakke@hobby.nl (Vikas Sontakke TOEM) Subject: Re: Dereferencing NULL pointer? Date: 1997/05/28 Message-ID: <5mibht$etf@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 244585374 References: <5lteva$q0e@charnel.ecst.csuchico.edu> <5m239e$ajk@charnel.ecst.csuchico.edu> Organization: CTG Newsgroups: comp.unix.osf.osf1 To answer the question, take a look at man uswitch and lookup USW_NULLP The uswitch system call is used to get or change the compatibility environ- ment specific behavior in Digital UNIX. Any changes affect the calling process and its children. When the USW_NULLP bit of uswitch is set to 1, the System V method of treating NULL pointers is applied. In this method, references to a NULL pointer always returns zero (0). When this bit-mask is reset to zero (0), subsequent references to a NULL pointer generate a segmentation violation signal (SIGSEGV). Any write(2) references to NULL pointers generate a segmentation violation signal (SIGSEGV) regardless of the uswitch value. -- Vikas Sontakke sontakke@zk3.dec.com DTN 381-0811 (603)881-0811 OEM Business Group (formerly known as E&RT), Nashua NH _______________________________________________________________________________