Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2000 10:11:32 -0600 (CST)
From:      Suresh Kumar Satapati <sks1974@cs.tamu.edu>
To:        freebsd-questions@freebsd.org
Subject:   C question
Message-ID:  <Pine.SOL.4.10.10001190920530.29574-100000@dilbert>

next in thread | raw e-mail | index | archive | help
I have a C question.
I have a routing message structure .. 
        static struct srtmsg {...}rtmsg;
declared as above. Now i have to write a portion of this structure to a 
routing socket (PF_ROUTE) using a 'write' call.
My call looks as below:

   write(socketfd, (char*)&rtmsg, len)
  
  where 'len' is a valid integer. The value of 'len' is less than 
 sizeof(struct srtmsg). This call fails and gives a Page Fault.

Please let me know if there is a better way to do this.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.10.10001190920530.29574-100000>