Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/man/man3c/./timespeccmp.3c
Real path: /usr/share/man/man3c/timespeccmp.3c
Zurück
'\" te .\" Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. .TH timespeccmp 3C "08 Nov 2016" "Oracle Solaris 11.4" "Standard C Library Functions" .SH NAME timespeccmp, timespeccompare, timespecadd, timespecsub, timespecfix, timespecclear, timespecisset \- timespec utility functions. Used to add, subtract, normalize, clear, check if set, and compare two timespec structures. .SH SYNOPSIS .LP .nf #include <sys/timespec_util.h> .fi .LP .nf int timespeccmp(struct timespec *t1, struct timespec *t2, CMP) .fi .LP .nf int timespeccompare(struct timespec *t1, struct timespec *t2); .fi .LP .nf void timespecadd(struct timespec *t1, struct timespec *t2, struct timespec *res); .fi .LP .nf void timespecsub(struct timespec *t1, struct timespec *t2, struct timespec *res); .fi .LP .nf void timespecfix(struct timespec *t1); .fi .LP .nf void timespecclear(struct timespec *t1); .fi .LP .nf int timespecisset(struct timespec *t1); .fi .SH DESCRIPTION .sp .LP The \fBtimespeccmp()\fR macro compares \fIt1\fR to \fIt2\fR using the comparison operator given in CMP, where CMP is one of <, <=, ==, !=, >=, or >. The result of the comparison is returned. .sp .LP The \fBtimespeccompare()\fR function compares two \fBtimespec\fR structures. It returns an integer greater than, equal to, or less than \fB0\fR, if \fIt1\fR is greater than, equal to, or less than \fIt2\fR respectively. .sp .LP The \fBtimespecadd()\fR function adds \fIt2\fR to \fIt1\fR. The resulting \fBtimespec\fR value is normalized and stored in \fBres\fR. .sp .LP The \fBtimespecsub()\fR function subtracts \fIt2\fR from \fIt1\fR. The resulting \fBtimespec\fR value is normalized and stored in \fBres\fR. .sp .LP The \fBtimespecfix()\fR function, given a \fBtimespec\fR \fIt1\fR, adjusts the second and nanosecond values such that the nanoseconds are between 0 and 1 billion, inclusive of 0 and exclusive of 1 billion. Any left over nanoseconds are converted to seconds and added to the value in seconds. .sp .LP The \fBtimespecclear()\fR function initializes the given \fBtimespec\fR structure to zero. .sp .LP The \fBtimespecisset()\fR function returns \fBtrue\fR if the input \fBtimespec\fR structure is set to any non-zero time value. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Architecture SPARC and x86 _ Interface Stability Committed _ MT-Level MT-Safe .TE .sp .SH SEE ALSO .sp .LP \fBtimercmp\fR(3C), \fBtimeradd\fR(3C)