Subject: Re: __P???
To: Tony Tam <ttam@nortel.ca>
From: Chuck Robey <chuckr@glue.umd.edu>
List: tech-net
Date: 11/08/1997 21:23:26
On 8 Nov 1997, Tony Tam wrote:

> Can someone please explain to me the significance of
> 
> __P in the source code of NetBSD
> 
> one example is in the function declarations of Netinet/tcp_var.h at the 
> bottom of the file:
> 
> struct tcpiphdr *
> 	 tcp_template __P((struct tcpcb *));
> 
> What is the __P?

That's a portability hack, so that platforms that have old C compilers,
that can't take all the newer type declarations in the function argument,
can easily just turn them off and compile anyways.

> 
> Thanks,
> Tony
> 
> 

----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@glue.umd.edu         | communications topic, C programming, and Unix.
213 Lakeside Drive Apt T-1  |
Greenbelt, MD 20770         | I run Journey2 and picnic, both FreeBSD
(301) 220-2114              | version 3.0 current -- and great FUN!
----------------------------+-----------------------------------------------