Re: [Linux-programlama] message queues

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Timur Aydin (ta@taydin.org)
Date: Fri 03 Jun 2005 - 22:35:01 EEST


Tufan BIYIKTAS <tufan.biyiktas@gmail.com> writes:

> while(1){
>
> memset(msg.buffer,0x0,BUFSIZE);
>
> msgrcv(msq_id,&msg,len,CLIENT,0);

Linux altinda msgrcv'nin ikinci argumani struct msgbuf* turunden
olmali. Senin tanimladigin message_t ile struct msgbuf* ayni degil. Bu
bir problem, ama tek problem bu mu bilemiyorum.

/* Bu senin tanimladigin ve Solaris'deki fonksiyonun beklentilerine
uygun olmali. */
typedef struct {

       long int msg_to;
       long int msg_fm;
       char buffer[BUFSIZE];

}message_t;

/* Bu da Linux man page'dan */
struct msgbuf {
       long mtype; /* message type, must be > 0 */
       char mtext[1]; /* message data */
};

-- 
Timur Aydin

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.