[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

RE: What's un.h? (About network programming...)



The declaration/definition of the struct sockaddr_un(unix) is there in
sys/un.h, without the the compiler cannot find the size of the sturct what
we are trying do.. thats why the file required..
kondaiah

> -----Original Message-----
> From:	Shridhar Daithankar [SMTP:shridhar_daithankar@xxxxxxxxxx]
> Sent:	Wednesday, March 28, 2001 5:34 AM
> To:	linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx
> Subject:	[LIP] What's un.h? (About network programming...)
> 
> Hi all
> 
>  I was fiddling a bit with socket programming, having stevens handy. I
> tried 
> unix domain sockets. But the examples didn't worked.
> 
>  gcc gave an error for 'struct sockaddr_un'  that unknown size etc. 
> 
> I did a grep -r on /usr/include(My fevourite ...:-)) fro 'struct
> sockaddr_un' 
> and included <sys/un.h> and it worked...
> 
>  Any idea why so? I though whatever files listed by man of every system
> call 
> in program should suffice.... What does this file do?
> 
>  Shridhar
> 
> ---------------------------------------------
> The mailing list archives are available at
> http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers