WSL : Function not implemented

Viewed 601

I know that wsl uses translates every command to be executed from the Windows kernel, but still, my question is :
Does WSL support system calls (e.g. message queues) and if yes,how?

I am getting the "Function not implemented" error whenever using any of the message queue functions.Is there any hope at all?

[EDIT:]

int main(int argc,char* argv[]){ 
    key_t key=MSG_KEY;
    mqid=msgget(key,0660 | IPC_CREAT );
    if(mqid==-1){
        perror("msgget error:");
        printf(" %s",strerror(errno));
    }
    int lenght=0,n=0;
    lenght=msgrcv(mqid,&req,MAX,1,0);
    if(lenght==-1){      
        if (errno == ENOMSG)
        {
            printf("\nNo message in the queue\n");
        }
        else
        {
            printf("\nError receiving message: %s\n", strerror(errno));
        }
    }
    else
    {
        printf("Received a message\n");
    }
    printf("\nreceived %d number of bytes\n",n);
    msgctl(mqid,IPC_RMID,NULL); 

    return 0;
}
1 Answers
Related