Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

629
Vistas
WSL : Function not implemented

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;
}
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

System V IPC is missing in WSL(1), which is what msgctl belongs to.

https://github.com/microsoft/WSL/issues/1016

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda