anjiahao1 commented on pull request #4693: URL: https://github.com/apache/incubator-nuttx/pull/4693#issuecomment-946345549
> > > > > > follow posix,use int64_t inside of time_t > > > > > > > > > > > > > > > which part of posix? > > > > > > > > > > > > clock_settime(clockid_t clock_id, FAR const struct timespec *tp) > > > > if use a `tp->tv_sec = -1` before will return ok,now return EINVAL > > > > > > > > > can you give me pointers to the relevant parts of the posix? > > > > > > https://man7.org/linux/man-pages/man3/clock_settime.3.html > > isn't it linux-specific documentation? > > do you mean you interpreted the following part to mean tv_sec should be signed? > > ``` > EINVAL (clock_settime()): tp.tv_sec is negative or tp.tv_nsec is > outside the range [0..999,999,999]. > ``` yse,i use man p clock_settime see EINVAL (clock_settime()): tp.tv_sec is negative or tp.tv_nsec is outside the range [0..999,999,999]. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org