uzero(&t.high, sizeof(t.high));
return 0;
default:
- return -EINVAL;
+ udata.u_error = EINVAL;
+ return -1;
}
}
When active, must be SuperUser to Set Time.
********************************************/
#define tvec (time_t *)udata.u_argn
+#define type (uint16_t)udata.u_argn1
int16_t _stime(void)
{
time_t t;
+ if (type != 0) {
+ udata.u_error = EINVAL;
+ return -1;
+ }
if (uget(&t, tvec, sizeof(t)) || esuper())
return -1;
wrtime(&t);
}
#undef tvec
-
+#undef type
/*******************************************