No subject



Fri Oct 03 00:24:14 2003
Return-Path: pavlin@possum.icir.org
Delivery-Date: Fri, 03 Oct 2003 00:24:15 -0700
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
	by tigger.icir.org (8.12.9p1/8.12.3) with ESMTP id h937OFko084620
	for <atanu@tigger.icir.org>; Fri, 3 Oct 2003 00:24:15 -0700 (PDT)
	(envelope-from pavlin@possum.icir.org)
Received: from fruitcake.ICSI.Berkeley.EDU (fruitcake.ICSI.Berkeley.EDU [192.150.186.11])
	by wyvern.icir.org (8.12.9p1/8.12.3) with ESMTP id h937OFH5089599
	for <atanu@icir.org>; Fri, 3 Oct 2003 00:24:15 -0700 (PDT)
	(envelope-from pavlin@possum.icir.org)
Received: from possum.icir.org (possum.icir.org [192.150.187.67])
	by fruitcake.ICSI.Berkeley.EDU (8.12.9/8.12.9) with ESMTP id h937OFLF002959
	for <atanu@icsi.berkeley.edu>; Fri, 3 Oct 2003 00:24:15 -0700 (PDT)
Received: from possum.icir.org (localhost [127.0.0.1])
	by possum.icir.org (8.12.9p1/8.12.3) with ESMTP id h937OFIK038127;
	Fri, 3 Oct 2003 00:24:15 -0700 (PDT)
	(envelope-from pavlin@possum.icir.org)
Message-Id: <200310030724.h937OFIK038127@possum.icir.org>
To: atanu@ICSI.Berkeley.EDU
cc: pavlin@icir.org, xorp-cvs@icir.org
Subject: Re: [Xorp-cvs] XORP cvs commit: xorp/bgp/ test_plumbing.cc 
In-Reply-To: Message from Atanu Ghosh <atanu@icsi.berkeley.edu> 
   of "Thu, 02 Oct 2003 23:06:42 PDT." <71742.1065161202@tigger.icir.org> 
Date: Fri, 03 Oct 2003 00:24:14 -0700
From: Pavlin Radoslavov <pavlin@icir.org>

> >>>>> "Pavlin" == Pavlin Radoslavov <pavlin@icir.org> writes:
> 
> 
>     Pavlin> CVSROOT:	/usr/local/share/doc/apache/cvs
>     Pavlin> Module name:	xorp
>     Pavlin> Repository:	xorp/bgp/
>     Pavlin> Changes by:	pavlin@xorpc.icir.org.	03/10/02 22:40:12
> 
>     Pavlin> Modified files:
>     Pavlin> 	xorp/bgp/: test_plumbing.cc 
> 
>     Pavlin> Log message:
>     Pavlin> 	Replace 0 as the last argument in execlp(3) with NULL.
>     Pavlin> 	This fixes a compilation error in OpenBSD-3.3
> 
> What is NULL defined as on OpenBSD-3.3?

It is conditionally defined in number of places, so it is unclear
which particular value is used, but practically in all cases the
definition is something in the lines of (e.g., in <sys/param.h>):

#ifndef NULL
#ifdef  __GNUG__
#define NULL    __null
#else
#define NULL    0L
#endif
#endif

I.e., in our case NULL should be defined to __null.
I coudn't find the definition of __null, so I guess it must be
defined internally in gcc.

Pavlin