]> Savannah Git Hosting - gnulib.git/commitdiff
xnanosleep: Improve module description.
authorBruno Haible <bruno@clisp.org>
Tue, 15 Jun 2021 11:14:58 +0000 (13:14 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 15 Jun 2021 11:14:58 +0000 (13:14 +0200)
* modules/xnanosleep (Description): Improve.
* lib/xnanosleep.h: Add comment. Make includable from C++.
* lib/xnanosleep.c: Update comment.

ChangeLog
lib/xnanosleep.c
lib/xnanosleep.h
modules/xnanosleep

index fc91284430dd70f4fc8753d69220dbd08a693bcb..b192beba1419d34b26fca60089630f2b74b51b09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
index 3c4443e12f6495085c0e91642b12fb88d9d00ff5..4a52d1aa4548d8a1dc5bf2feacfff5cad65ce74a 100644 (file)
@@ -1,4 +1,4 @@
-/* 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.
 
index 77b896b88dd127e5df26f85dcf494e478346cd85..7e38b4f5fcfd7e2432867dc37c7414e25b108218 100644 (file)
@@ -1,4 +1,5 @@
-/* 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
index 9f12ff3205c2ae81c5c5d1291340a9a367e3fea4..039c6d156dafa8ebb8516d7b4ea2600a36b5ec32 100644 (file)
@@ -1,5 +1,5 @@
 Description:
-a more convenient interface to nanosleep
+A variant of nanosleep that takes a 'double' argument and handles EINTR.
 
 Files:
 lib/xnanosleep.h