Tag: solaris 10

在gcc中使用primefaces操作3.4.3

内置的primefaces操作是在gcc-4.1.2中引入的。 但是,我在OpenIndiana上使用gcc,它只有gcc 3.4.3。 现在我的问题是如何在gcc 3.4.3中使用primefaces操作? 此外,我试图在OpenIndiana中使用gcc 4.6.1,但它不起作用,因为它抱怨一些运行时库。 如果有人成功使用它,请告诉我。

为什么timer_create在solaris 10中抛出SIGEV_THREAD错误?

我通过使用timer_create写了一块用于设置定时器来调用一个线程,其中我将sigev_notify设置为SIGEV_THREAD,它给我错误EINVAL(无效参数)但是当我设置sigev_notify时SIGEV_SIGNAL代码工作正常。 我的这段代码即使在solaris 11中也适用于所有操作系统,但对于solaris 10,我给出了错误。 代码如下: { int status =0; struct itimerspec ts; struct sigevent se; se.sigev_notify = SIGEV_THREAD; se.sigev_value.sival_int = val; se.sigev_notify_function = func; se.sigev_notify_attributes = NULL; status = timer_create(CLOCK_REALTIME, &se, timer_id); ts.it_value.tv_sec = abs(delay); ts.it_value.tv_nsec = (delay-abs(delay)) * 1e09; ts.it_interval.tv_sec = abs(interval); ts.it_interval.tv_nsec = (interval-abs(interval)) * 1e09; status = timer_settime(*timer_id, 0, &ts, 0); } […]