Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
New Contributor
Posts: 4
Registered: ‎01-20-2012
My Device: Playbook
My Carrier: n/a

mkfifo() not (fully) supported?

Calling open() on a FIFO seems to always feel with EACCES.  I've tried adding <action>access_internet</access> to bar-descriptor.xml to see if that changed anything, but it did not.  Calling system("ls -lR") confirms the fifo is being created with proper permissions.  This is OS 1.0.8.6067.  Are FIFOs not supported / permitted?

 

   if (mkfifo("tmp/my_fifo", 0666)) {
      perror("mkfifo()");
      exit(0);
   }

   system("ls -lR");
   if (open("tmp/my_fifo", O_WRONLY) < 0) {
      perror("open()");  // Always fails here with EACCESS
      exit(0);
   }
   printf("So far, so good\n");

 

Thanks,

BlackBerry Development Advisor
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: mkfifo() not (fully) supported?

Hmm. It is a bug apparently, because it suppose to work. I will raise it internally.