Lines Matching refs:timespec
263 int SysClockSettime(clockid_t clockID, const struct timespec *tp)
266 struct timespec stp;
273 if (LOS_ArchCopyFromUser(&stp, tp, sizeof(struct timespec))) {
285 int SysClockGettime(clockid_t clockID, struct timespec *tp)
288 struct timespec stp = { 0 };
300 if (LOS_ArchCopyToUser(tp, &stp, sizeof(struct timespec))) {
308 int SysClockGetres(clockid_t clockID, struct timespec *tp)
311 struct timespec stp = { 0 };
323 if (LOS_ArchCopyToUser(tp, &stp, sizeof(struct timespec))) {
331 int SysClockNanoSleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem)
334 struct timespec sreq;
335 struct timespec srem = { 0 };
337 if (!req || LOS_ArchCopyFromUser(&sreq, req, sizeof(struct timespec))) {
347 if (rem && LOS_ArchCopyToUser(rem, &srem, sizeof(struct timespec))) {
355 int SysNanoSleep(const struct timespec *rqtp, struct timespec *rmtp)
358 struct timespec srqtp;
359 struct timespec srmtp = { 0 };
361 if (!rqtp || LOS_ArchCopyFromUser(&srqtp, rqtp, sizeof(struct timespec))) {
366 if (rmtp && LOS_ArchCopyFromUser(&srmtp, rmtp, sizeof(struct timespec))) {
376 if (rmtp && LOS_ArchCopyToUser(rmtp, &srmtp, sizeof(struct timespec))) {
408 struct timespec t;
438 struct timespec t;
465 struct timespec t;
492 struct timespec rq;
493 struct timespec rm = { 0 };