Date: Mon, 12 Mar 2001 19:06:47 -0600 (CST) From: John Gregor <johng@vieo.com> To: freebsd-hackers@FreeBSD.ORG, shankar_agarwal@net.com Subject: Re: Question regarding the funcation socket()... Message-ID: <200103130106.f2D16lZ02260@vieo.com> In-Reply-To: <3AAD7114.A01DE452@net.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103130106.f2D16lZ02260>