2002-06-01 20:26:21 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2002-06-07 22:59:24 +00:00
|
|
|
#ifdef _USING_FCGI_
|
2002-06-07 21:21:55 +00:00
|
|
|
#include "/usr/local/include/fcgi_stdio.h"
|
2002-06-07 22:59:24 +00:00
|
|
|
#endif
|
2002-06-07 21:21:55 +00:00
|
|
|
|
2002-06-01 20:26:21 +00:00
|
|
|
#include "shmem.h"
|
|
|
|
#include "sched_shmem.h"
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
SCHED_SHMEM* ssp;
|
|
|
|
int retval;
|
|
|
|
void* p;
|
|
|
|
|
|
|
|
retval = attach_shmem(BOINC_KEY, &p);
|
|
|
|
if (retval) {
|
|
|
|
printf("can't attach shmem\n");
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
ssp = (SCHED_SHMEM*)p;
|
|
|
|
retval = ssp->verify();
|
|
|
|
printf("ready: %d\n", ssp->ready);
|
|
|
|
}
|