]> granicus.if.org Git - php/commitdiff
Rename nanosleep() to time_nanosleep().
authorIlia Alshanetsky <iliaa@php.net>
Fri, 14 Nov 2003 22:55:54 +0000 (22:55 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 14 Nov 2003 22:55:54 +0000 (22:55 +0000)
NEWS
ext/standard/basic_functions.c
ext/standard/basic_functions.h

diff --git a/NEWS b/NEWS
index c1e4e2e9561efdba7a79d8d7fb13a7a457b5888b..5926026debea40441b69ddc74c52900c0f60e370 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,7 +3,7 @@ PHP                                                                        NEWS
 ?? Oct 2003, PHP 5 Beta 3
 - Added new functions:
   . dba_key_split() to split inifile keys in an array. (Marcus)
-  . nanosleep() signal safe sleep (Magnus, Ilia)
+  . time_nanosleep() signal safe sleep (Magnus, Ilia)
 - Fixed bug #26072 (--disable-libxml does not work). (Jani)
 - Fixed bug #26083 (Non-working write support in ext/dom). (Ilia)
 - Fixed bug #24394 (Serializing cross-referenced objects causes segfault).
index 8175ad607d4d83cb5c0356a3a9186a0c6119caf8..94a51c718f427ddb4d799b3e6417a059ec856fce 100644 (file)
@@ -302,7 +302,7 @@ function_entry basic_functions[] = {
        PHP_FE(sleep,                                                                                                                   NULL)
        PHP_FE(usleep,                                                                                                                  NULL)
 #if HAVE_NANOSLEEP
-       PHP_FE(nanosleep,                                                                                                               NULL)
+       PHP_FE(time_nanosleep,                                                                                                          NULL)
 #endif
        PHP_FE(time,                                                                                                                    NULL)
        PHP_FE(mktime,                                                                                                                  NULL)
@@ -1694,9 +1694,9 @@ PHP_FUNCTION(usleep)
 /* }}} */
 
 #if HAVE_NANOSLEEP
-/* {{{ proto mixed nanosleep(long seconds, long nanoseconds)
+/* {{{ proto mixed time_nanosleep(long seconds, long nanoseconds)
    Delay for a number of seconds and nano seconds */
-PHP_FUNCTION(nanosleep)
+PHP_FUNCTION(time_nanosleep)
 {
        long tv_sec, tv_nsec;
        struct timespec php_req, php_rem;
index b7341fe9d1fa5cee5516eaa51a3a738adda6f4ac..da43780f84cd035cdc649f68d0ffc1762717b1c4 100644 (file)
@@ -49,7 +49,7 @@ PHP_FUNCTION(toggle_short_open_tag);
 PHP_FUNCTION(sleep);
 PHP_FUNCTION(usleep);
 #if HAVE_NANOSLEEP
-PHP_FUNCTION(nanosleep);
+PHP_FUNCTION(time_nanosleep);
 #endif
 PHP_FUNCTION(flush);
 PHP_FUNCTION(ip2long);