[uClibc]getprotobyname failure
Yigit Can
yigit.can at karel.com.tr
Mon Feb 24 12:07:37 UTC 2003
> Hello,
>
> I have a problem with getprotobyname() function.
>
> I wrote a simple program that only uses getprotobyname function
>
> I can run this program on my development machine=20
> but when I try to run this program on my basic kernel it gives me the =
> "memory fault" error.
>
> what can I do?
>
> please help,
>
>
> my program :
>
> #include <netdb.h>
> #include <stdio.h>
>
> int main(void){
>
> struct sockaddr_in addr;
> struct protoent *protocol=3DNULL;
> protocol=3Dgetprotobyname("tcp");
> printf("\n RESULT : %02x \n",protocol->p_proto);
>
> return 0;
> }
>
>
>
>
>
> Yiğit CAN
> Karel Electronics Corp.
> yigit.can at karel.com.tr
>
More information about the uClibc
mailing list