Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: sontakke@hobby.nl (Vikas Sontakke TOEM)
Subject: Re: Dereferencing NULL pointer?
Date: 1997/05/28	[thread overview]
Message-ID: <5mibht$etf@zk2nws.zko.dec.com> (raw)
In-Reply-To: danpop.864418896@news.cern.ch


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
_______________________________________________________________________________



  reply	other threads:[~1997-05-28  4:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-21  4:00 Dereferencing NULL pointer? Todd M. Saylor
1997-05-21  4:00 ` Steve VanDevender
1997-05-22  4:00   ` Todd M. Saylor
1997-05-23  4:00     ` Dan Pop
1997-05-28  4:00       ` Vikas Sontakke TOEM [this message]
1997-05-29  4:00 ` Craig Neth USG
1997-05-29  4:00 ` Craig Neth USG
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox