svn commit: trunk/uClibc/libc/unistd
pkj at uclibc.org
pkj at uclibc.org
Fri Sep 22 16:54:49 UTC 2006
Author: pkj
Date: 2006-09-22 09:54:49 -0700 (Fri, 22 Sep 2006)
New Revision: 16190
Log:
Added support for sysconf(_SC_MONOTONIC_CLOCK).
Modified:
trunk/uClibc/libc/unistd/sysconf.c
Changeset:
Modified: trunk/uClibc/libc/unistd/sysconf.c
===================================================================
--- trunk/uClibc/libc/unistd/sysconf.c 2006-09-22 16:40:00 UTC (rev 16189)
+++ trunk/uClibc/libc/unistd/sysconf.c 2006-09-22 16:54:49 UTC (rev 16190)
@@ -883,6 +883,13 @@
#else
RETURN_NEG_1;
#endif
+
+ case _SC_MONOTONIC_CLOCK:
+ /* Check using the clock_getres system call. */
+ if (clock_getres(CLOCK_MONOTONIC, NULL) >= 0)
+ return _POSIX_VERSION;
+
+ RETURN_NEG_1;
}
}
libc_hidden_def(sysconf)
More information about the uClibc-cvs
mailing list