summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAnantha Kesari H Y <hyanantha@php.net>2005-07-01 07:55:28 +0000
committerAnantha Kesari H Y <hyanantha@php.net>2005-07-01 07:55:28 +0000
commitfe81fa0338c3a1587ee094d850589a1f60da6726 (patch)
treef7ae292f4b398dfb184a53812fd9769a4bc3aaf1 /main
parente6820914ff4a4c3f63cb51ad9b83220953410df8 (diff)
downloadphp-git-fe81fa0338c3a1587ee094d850589a1f60da6726.tar.gz
NetWare LibC has reentrant time functions no need to have this.
-- Kamesh from hyanantha's account
Diffstat (limited to 'main')
-rw-r--r--main/reentrancy.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/main/reentrancy.c b/main/reentrancy.c
index db2313f07f..ce8f698208 100644
--- a/main/reentrancy.c
+++ b/main/reentrancy.c
@@ -115,51 +115,6 @@ PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm)
#endif
-#if defined(NETWARE)
-/*
- Re-entrant versions of functions seem to be better for loading NLMs in different address space.
- Since we have them now in LibC, we might as well make use of them.
-*/
-
-#define HAVE_LOCALTIME_R 1
-#define HAVE_CTIME_R 1
-#define HAVE_ASCTIME_R 1
-#define HAVE_GMTIME_R 1
-
-PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm)
-{
- /* Modified according to LibC definition */
- if (localtime_r(timep, p_tm) != NULL)
- return (p_tm);
- return (NULL);
-}
-
-PHPAPI char *php_ctime_r(const time_t *clock, char *buf)
-{
- /* Modified according to LibC definition */
- if (ctime_r(clock, buf) != NULL)
- return (buf);
- return (NULL);
-}
-
-PHPAPI char *php_asctime_r(const struct tm *tm, char *buf)
-{
- /* Modified according to LibC definition */
- if (asctime_r(tm, buf) != NULL)
- return (buf);
- return (NULL);
-}
-
-PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm)
-{
- /* Modified according to LibC definition */
- if (gmtime_r(timep, p_tm) != NULL)
- return (p_tm);
- return (NULL);
-}
-
-#endif /* NETWARE */
-
#if defined(__BEOS__)
PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm)