Skip to content

Commit

Permalink
Remove tls.[ch]
Browse files Browse the repository at this point in the history
  • Loading branch information
zsuraski committed Apr 23, 1999
1 parent f53afa6 commit 6f7c0ed
Show file tree
Hide file tree
Showing 55 changed files with 21 additions and 499 deletions.
3 changes: 0 additions & 3 deletions ext/apache/apache.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
*/

/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#include "ext/standard/head.h"
#include "php_globals.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/bcmath/number.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
*************************************************************************/

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#if 0
#include "bcdefs.h"
#include "proto.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/dbase/dbase.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
#include "dl/phpdl.h"
#endif

#if defined(THREAD_SAFE)
#include "tls.h"
#endif
#include <stdlib.h>

#include "php.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/ereg/ereg.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include <stdio.h>
#include "php.h"
#include "php3_string.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/filepro/filepro.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
web site at http://www.fileproplus.com/
*/
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include "php.h"
#include "safe_mode.h"
#include "fopen-wrappers.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/gd/gd.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
Cold Spring Harbor Labs. */

/* Note that there is no code from the gd package in this file */
#ifdef THREAD_SAFE
# include "tls.h"
#endif

#include "php.h"
#include "ext/standard/head.h"
#include <math.h>
Expand Down
3 changes: 0 additions & 3 deletions ext/imap/imap.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

#if HAVE_IMAP

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#ifndef MSVC5
#include "build-defs.h"
#endif
Expand Down
6 changes: 0 additions & 6 deletions ext/informix/ifx.ec
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,6 @@ Changes 12.11.1998 (danny.heijl@cevi.be)
#if defined(COMPILE_DL)
#include "dl/phpdl.h"
#endif
#if defined(THREAD_SAFE)
#include "tls.h"
DWORD InformixTls;
static int numthreads=0;
void *ifx_mutex;
#endif

#if WIN32|WINNT
#include <winsock.h>
Expand Down
9 changes: 0 additions & 9 deletions ext/ldap/ldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@

/* $Id$ */
#define IS_EXT_MODULE
#if !PHP_31 && defined(THREAD_SAFE)
#undef THREAD_SAFE
#endif
#ifdef THREAD_SAFE
#include "tls.h"
DWORD ldapTLS;
static int numthreads=0;
void *ldap_mutex;
#endif

#include "php.h"

Expand Down
3 changes: 0 additions & 3 deletions ext/msql/msql.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
*/

/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include "php.h"
#if COMPILE_DL
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
*/
/* $Id$ */

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include <string.h>

#include "php.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/basic_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@


#define HASH_OF(p) ((p)->type==IS_ARRAY ? (p)->value.ht : (((p)->type==IS_OBJECT ? (p)->value.obj.properties : NULL)))
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include "php.h"
#include "php_ini.h"
#include "internal_functions_registry.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/browscap.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
+----------------------------------------------------------------------+
*/

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#include "php3_browscap.h"
#include "php_ini.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/datetime.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
/* $Id$ */


#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#include "zend_operators.h"
#include "datetime.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@

/* $Id$ */

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#include "fopen-wrappers.h"

Expand Down
3 changes: 0 additions & 3 deletions ext/standard/dl.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
+----------------------------------------------------------------------+
*/

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#include "dl.h"
#include "php_globals.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@

/* $Id$ */

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
*/
/* $Id$ */

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include <stdio.h>
#include "php.h"
#include <ctype.h>
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#include "php_globals.h"
#include "ext/standard/flock_compat.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/filestat.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
*/

/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include "php.h"
#include "safe_mode.h"
#include "fopen-wrappers.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/formatted_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
/* $Id$ */

#include <math.h> /* modf() */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#include "ext/standard/head.h"
#include "php3_string.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/fsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include "php.h"
#include <stdlib.h>
#if HAVE_UNISTD_H
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/head.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include <stdio.h>
#include "php.h"
#include "ext/standard/php3_standard.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/html.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
+----------------------------------------------------------------------+
*/

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#include "reg.h"
#include "html.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
| Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include "php.h"
#include "php_ini.h"
#include "php_globals.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
*/

/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include "php.h"
#include "php3_filestat.h"
#include "php_globals.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/mail.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
#include <stdlib.h>
#include <ctype.h>
#include <stdio.h>
#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#ifndef MSVC5
#include "build-defs.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
+----------------------------------------------------------------------+
*/

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#include "phpmath.h"
#include "snprintf.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/md5.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
/*
* md5.c - Copyright 1997 Lachlan Roche
*/
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include <stdio.h>
#include "php.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/microtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
#include <string.h>
#include <errno.h>

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#include "php.h"
#include "microtime.h"
#include "snprintf.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/mime.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include <stdio.h>
#include "php.h"
#include "ext/standard/php3_standard.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include "php.h"

#include <stdio.h>
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/pageinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include "php.h"
#include "pageinfo.h"

Expand Down
4 changes: 1 addition & 3 deletions ext/standard/post.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
+----------------------------------------------------------------------+
*/
/* $Id: */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include <stdio.h>
#include "php.h"
#include "php3_standard.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include <stdio.h>
#include "php.h"
#include "php3_string.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@


/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include <stdio.h>
#include "php.h"
#include "reg.h"
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/syslog.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
*/

/* $Id$ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif

#include "php.h"
#include "php_ini.h"
#include "zend_globals.h"
Expand Down
Loading

0 comments on commit 6f7c0ed

Please sign in to comment.