Print this page
5218 posix definition of NULL
correct unistd.h and iso/stddef_iso.h
update gate source affected
*** 551,561 ****
struct timeval *tvp, int ok_if_empty)
{
int r;
r = inst_get_single_val(inst, SCF_PG_RESTARTER, pname, SCF_TYPE_TIME,
! tvp, NULL, ok_if_empty ? EMPTY_OK : 0, 0, 1);
return (r == 0 ? 0 : -1);
}
static int
--- 551,561 ----
struct timeval *tvp, int ok_if_empty)
{
int r;
r = inst_get_single_val(inst, SCF_PG_RESTARTER, pname, SCF_TYPE_TIME,
! tvp, 0, ok_if_empty ? EMPTY_OK : 0, 0, 1);
return (r == 0 ? 0 : -1);
}
static int
*** 1648,1658 ****
if (wip->pg == NULL) {
r = get_restarter_time_prop(wip->inst,
SCF_PROPERTY_STATE_TIMESTAMP, &tv, 0);
} else {
r = pg_get_single_val(wip->pg, SCF_PROPERTY_STATE_TIMESTAMP,
! SCF_TYPE_TIME, &tv, NULL, 0);
}
if (r != 0) {
/*
* There's something amiss with our service
--- 1648,1658 ----
if (wip->pg == NULL) {
r = get_restarter_time_prop(wip->inst,
SCF_PROPERTY_STATE_TIMESTAMP, &tv, 0);
} else {
r = pg_get_single_val(wip->pg, SCF_PROPERTY_STATE_TIMESTAMP,
! SCF_TYPE_TIME, &tv, 0, 0);
}
if (r != 0) {
/*
* There's something amiss with our service
*** 1700,1710 ****
if (wip->pg == NULL)
r = get_restarter_time_prop(wip->inst,
SCF_PROPERTY_STATE_TIMESTAMP, &tv, 0);
else
r = pg_get_single_val(wip->pg, SCF_PROPERTY_STATE_TIMESTAMP,
! SCF_TYPE_TIME, &tv, NULL, 0);
if (r == 0) {
int64_t sec;
int32_t us;
--- 1700,1710 ----
if (wip->pg == NULL)
r = get_restarter_time_prop(wip->inst,
SCF_PROPERTY_STATE_TIMESTAMP, &tv, 0);
else
r = pg_get_single_val(wip->pg, SCF_PROPERTY_STATE_TIMESTAMP,
! SCF_TYPE_TIME, &tv, 0, 0);
if (r == 0) {
int64_t sec;
int32_t us;
*** 2512,2522 ****
SCF_TYPE_ASTRING, buf, max_scf_fmri_length + 1, 0) == 0)
(void) printf(fmt, DETAILED_WIDTH,
gettext("next_state"), buf);
if (pg_get_single_val(rpg, SCF_PROPERTY_STATE_TIMESTAMP,
! SCF_TYPE_TIME, &tv, NULL, 0) == 0) {
stime = tv.tv_sec;
tmp = localtime(&stime);
for (tbsz = 50; ; tbsz *= 2) {
timebuf = safe_malloc(tbsz);
if (strftime(timebuf, tbsz, NULL, tmp) != 0)
--- 2512,2522 ----
SCF_TYPE_ASTRING, buf, max_scf_fmri_length + 1, 0) == 0)
(void) printf(fmt, DETAILED_WIDTH,
gettext("next_state"), buf);
if (pg_get_single_val(rpg, SCF_PROPERTY_STATE_TIMESTAMP,
! SCF_TYPE_TIME, &tv, 0, 0) == 0) {
stime = tv.tv_sec;
tmp = localtime(&stime);
for (tbsz = 50; ; tbsz *= 2) {
timebuf = safe_malloc(tbsz);
if (strftime(timebuf, tbsz, NULL, tmp) != 0)