From owner-freebsd-hackers Mon Mar 12 17: 6:55 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from vieo.com (vieo.com [216.30.79.131]) by hub.freebsd.org (Postfix) with ESMTP id 156D137B719 for ; Mon, 12 Mar 2001 17:06:49 -0800 (PST) (envelope-from johng@vieo.com) Received: (from johng@localhost) by vieo.com (8.11.2/8.11.2) id f2D16lZ02260; Mon, 12 Mar 2001 19:06:47 -0600 (CST) (envelope-from johng) Date: Mon, 12 Mar 2001 19:06:47 -0600 (CST) From: John Gregor Message-Id: <200103130106.f2D16lZ02260@vieo.com> To: freebsd-hackers@FreeBSD.ORG, shankar_agarwal@net.com Subject: Re: Question regarding the funcation socket()... In-Reply-To: <3AAD7114.A01DE452@net.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I am trying to find out where the function socket() is actually defined. sys/kern/uipc_syscalls.c cscope is your friend. > Moreover is see __P with all the function prototypes. Can anyone > tell me what do they mean. I am right now assuming for my work that > they just mean blank. Bad assumption. Depending on the compiler, __P either returns the argument passed to the macro or '()'. This is because pre-ANSI C didn't support function prototypes. pre-ANSI int foo(); ANSI int foo(char *, int *, int, int); Again, cscope is your friend. -JohnG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message