The following code gives me the error that mkfifo is an undefined identifier. Searching the Codewarrior folder, I could find no file that contained the text mkfifo. Does anybody know how to use mkfifo with Codewarrior 8 Pro?
#include <iostream>
#include <types.h>
#include <sys/stat.h>
int main()
{
using namespace std;
/* set the umask explicitly, you don't know where it's been */
umask(0);
if (mkfifo("test_fifo", S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP))
{
perror("mkfifo");
exit(1);
}
}
#include <iostream>
#include <types.h>
#include <sys/stat.h>
int main()
{
using namespace std;
/* set the umask explicitly, you don't know where it's been */
umask(0);
if (mkfifo("test_fifo", S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP))
{
perror("mkfifo");
exit(1);
}
}