[so] Tema 2 Linux - mq_open
    Daniel Baluta 
    daniel.baluta at gmail.com
       
    Sun Mar 25 23:52:32 EEST 2012
    
    
  
On Sun, Mar 25, 2012 at 11:42 PM, Andrei Draga <andreidraga at yahoo.com> wrote:
> Am la un moment dat in gateway.c :
>         ...
>         S = initializeazaS() ;
>         C = mq_open ( "/gateway", O_CREAT | O_RDWR, 0777, &S ) ;
>         printf("%d\n",C) ;
>         printf("---%s\n", strerror(errno)) ;
>         ...
> Si cand rulez ./gateway obtin :
> -1
> ---Invalid argument
>
> De ce imi returneaza -1 de fiecare data mq_open ?
Salut,
Recitește te rog secțiunea din manual care spune în ce condiții
mq_open poate intoarce EINVAL.
thanks,
Daniel.
    
    
More information about the so
mailing list