📄 clock_nanosleep.3
字号:
.\" This -*- nroff -*- file has been generated from.\" DocBook SGML with docbook-to-man on Debian GNU/Linux....\"...\" transcript compatibility for postscript use....\"...\" synopsis: .P! <file.ps>...\".de P!\\&..fl \" force out current output buffer\\!%PB\\!/showpage{}def...\" the following is from Ken Flowers -- it prevents dictionary overflows\\!/tempdict 200 dict def tempdict begin.fl \" prolog.sy cat \\$1\" bring in postscript file...\" the following line matches the tempdict above\\!end % tempdict %\\!PE\\!..sp \\$2u \" move below the image...de pF.ie \\*(f1 .ds f1 \\n(.f.el .ie \\*(f2 .ds f2 \\n(.f.el .ie \\*(f3 .ds f3 \\n(.f.el .ie \\*(f4 .ds f4 \\n(.f.el .tm ? font overflow.ft \\$1...de fP.ie !\\*(f4 \{\. ft \\*(f4. ds f4\"' br \}.el .ie !\\*(f3 \{\. ft \\*(f3. ds f3\"' br \}.el .ie !\\*(f2 \{\. ft \\*(f2. ds f2\"' br \}.el .ie !\\*(f1 \{\. ft \\*(f1. ds f1\"' br \}.el .tm ? font underflow...ds f1\".ds f2\".ds f3\".ds f4\"'\" t .ta 8n 16n 24n 32n 40n 48n 56n 64n 72n .TH "clock_nanosleep" "3" .SH "NAME" clock_nanosleep \(em high resultion sleep with specifiable clock .SH "SYNOPSIS" .PP .nf .ta 8n 16n 24n 32n 40n 48n 56n 64n 72n #include <time.h> int \fBclock_nanosleep\fP(clockid_t \fBclock_id\fR, int \fBflags\fR, const struct timespec *\fBrqtp\fR, struct timespec *\fBrmtp\fR); .fi .SH "DESCRIPTION" .PP This function suspends execution of the currently running realtime thread until the time interval specified by \fBrqtp\fR is elapsed, or until the function is woken up by a signal. If the TIMER_ABSTIME flag is set in \fBflags\fR, the time interval specified by \fBrqtp\fR is absolute; otherwise, it is relative to the current time. The timeout is experessed with respect to the clock specified by the parameter \fBclock_id\fR. .SH "RETURN VALUE" .PP If the \fBclock_nanosleep\fP function returns because the specified time interval has elapsed, it returns zero. Otherwise, it returns an error value. .SH "ERRORS" .IP "EINTR" 10 The function has been interrupted by a signal. .SH "AUTHOR" .PP Michael Barabanov (\fIbaraban@fsmlabs.com (link to URL mailto:baraban@fsmlabs.com) \fR) .SH "SEE ALSO" \fIclock_gettime(3) (link to URL ../susv2/xsh/clock_gettime.html) \fR, \fInanosleep(3) (link to URL ../susv2/xsh/nanosleep.html) \fR .PP \(co2001 FSMLabs Inc. .PP All rights reserved. ...\" created by instant / docbook-to-man, Wed 13 Jun 2001, 17:57
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -