Hi all,
I'm trying to port an API library to OS X. The library is already
available under Unix/Linux/Windows. i can't compile some code now
because it can't find 'sigqueue'. Anyone familiar with this function,
and why it's not included? I believe this function should have been
defined in <signal.h>, according to this:
http://www.opengroup.org/onlinepubs/007908799/xsh/sigqueue.html
The headers and erroneous section for my code look like this:
------
#include <stdlib.h>
#include <time.h>
#include "oaDMFileSys.h"
#include "oaDMFileSysLocking.h"
#if !defined(WIN32)
#include <errno.h>
#include <signal.h>
#include <netdb.h>
#include <pwd.h>
#include <unistd.h>
#include <sys/utsname.h>
#endif
using namespace std;
.
.
.
.
bool
FileLocking::isActive(const ProcInfo &p)
{
#ifdef WIN32
HANDLE h = OpenProcess(PROCESS_ALL_ACCESS, false, p.id);
if (!h) {
return false;
}
CloseHandle(h);
return true;
#else
if (sigqueue(p.id, 0, sigval()) == -1 && errno == ESRCH) {
return false;
}
return true;
#endif
}
--------
It's the "if (sigqueue(p.id, 0, sigval())" statement that fails.
-bobby
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden
This email sent to email@hidden