Rename nanosleep() to time_nanosleep().

This commit is contained in:
Ilia Alshanetsky 2003-11-14 22:55:54 +00:00
parent 6b7bd4be8f
commit c53b53f926
3 changed files with 5 additions and 5 deletions

2
NEWS
View file

@ -3,7 +3,7 @@ PHP NEWS
?? Oct 2003, PHP 5 Beta 3 ?? Oct 2003, PHP 5 Beta 3
- Added new functions: - Added new functions:
. dba_key_split() to split inifile keys in an array. (Marcus) . 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 #26072 (--disable-libxml does not work). (Jani)
- Fixed bug #26083 (Non-working write support in ext/dom). (Ilia) - Fixed bug #26083 (Non-working write support in ext/dom). (Ilia)
- Fixed bug #24394 (Serializing cross-referenced objects causes segfault). - Fixed bug #24394 (Serializing cross-referenced objects causes segfault).

View file

@ -302,7 +302,7 @@ function_entry basic_functions[] = {
PHP_FE(sleep, NULL) PHP_FE(sleep, NULL)
PHP_FE(usleep, NULL) PHP_FE(usleep, NULL)
#if HAVE_NANOSLEEP #if HAVE_NANOSLEEP
PHP_FE(nanosleep, NULL) PHP_FE(time_nanosleep, NULL)
#endif #endif
PHP_FE(time, NULL) PHP_FE(time, NULL)
PHP_FE(mktime, NULL) PHP_FE(mktime, NULL)
@ -1694,9 +1694,9 @@ PHP_FUNCTION(usleep)
/* }}} */ /* }}} */
#if HAVE_NANOSLEEP #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 */ Delay for a number of seconds and nano seconds */
PHP_FUNCTION(nanosleep) PHP_FUNCTION(time_nanosleep)
{ {
long tv_sec, tv_nsec; long tv_sec, tv_nsec;
struct timespec php_req, php_rem; struct timespec php_req, php_rem;

View file

@ -49,7 +49,7 @@ PHP_FUNCTION(toggle_short_open_tag);
PHP_FUNCTION(sleep); PHP_FUNCTION(sleep);
PHP_FUNCTION(usleep); PHP_FUNCTION(usleep);
#if HAVE_NANOSLEEP #if HAVE_NANOSLEEP
PHP_FUNCTION(nanosleep); PHP_FUNCTION(time_nanosleep);
#endif #endif
PHP_FUNCTION(flush); PHP_FUNCTION(flush);
PHP_FUNCTION(ip2long); PHP_FUNCTION(ip2long);