* modules/xnanosleep (Description): Improve.
* lib/xnanosleep.h: Add comment. Make includable from C++.
* lib/xnanosleep.c: Update comment.
+2021-06-15 Bruno Haible <bruno@clisp.org>
+
+ xnanosleep: Improve module description.
+ * modules/xnanosleep (Description): Improve.
+ * lib/xnanosleep.h: Add comment. Make includable from C++.
+ * lib/xnanosleep.c: Update comment.
+
2021-06-15 Bruno Haible <bruno@clisp.org>
xfreopen: Improve module description.
-/* xnanosleep.c -- a more convenient interface to nanosleep
+/* A variant of nanosleep that takes a 'double' argument and handles EINTR.
Copyright (C) 2002-2007, 2009-2021 Free Software Foundation, Inc.
-/* Copyright (C) 2004-2021 Free Software Foundation, Inc.
+/* A variant of nanosleep that takes a 'double' argument and handles EINTR.
+ Copyright (C) 2004-2021 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int xnanosleep (double);
+
+#ifdef __cplusplus
+}
+#endif
Description:
-a more convenient interface to nanosleep
+A variant of nanosleep that takes a 'double' argument and handles EINTR.
Files:
lib/xnanosleep.h