Remove pthread.h from source. We should be using asterisk/lock.h everywhere instead...
authorJames Golovich <james@gnuinter.net>
Tue, 22 Jun 2004 19:32:52 +0000 (19:32 +0000)
committerJames Golovich <james@gnuinter.net>
Tue, 22 Jun 2004 19:32:52 +0000 (19:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3277 65c4cc65-6c06-0410-ace0-fbb531ad65f3

58 files changed:
apps/app_adsiprog.c
apps/app_agi.c
apps/app_alarmreceiver.c
apps/app_authenticate.c
apps/app_chanisavail.c
apps/app_controlplayback.c
apps/app_datetime.c
apps/app_db.c
apps/app_dial.c
apps/app_directory.c
apps/app_disa.c
apps/app_echo.c
apps/app_enumlookup.c
apps/app_festival.c
apps/app_flash.c
apps/app_getcpeid.c
apps/app_hasnewvoicemail.c
apps/app_ices.c
apps/app_image.c
apps/app_intercom.c
apps/app_lookupblacklist.c
apps/app_lookupcidname.c
apps/app_macro.c
apps/app_meetme.c
apps/app_milliwatt.c
apps/app_mp3.c
apps/app_nbscat.c
apps/app_parkandannounce.c
apps/app_playback.c
apps/app_privacy.c
apps/app_qcall.c
apps/app_queue.c
apps/app_read.c
apps/app_record.c
apps/app_rpt.c
apps/app_senddtmf.c
apps/app_sendtext.c
apps/app_setcallerid.c
apps/app_setcidname.c
apps/app_setcidnum.c
apps/app_skel.c
apps/app_sms.c
apps/app_softhangup.c
apps/app_sql_postgres.c
apps/app_striplsd.c
apps/app_substring.c
apps/app_system.c
apps/app_talkdetect.c
apps/app_transfer.c
apps/app_txtcidname.c
apps/app_url.c
apps/app_userevent.c
apps/app_voicemail.c
apps/app_waitforring.c
apps/app_zapateller.c
apps/app_zapbarge.c
apps/app_zapras.c
apps/app_zapscan.c

index 2fa21f0..f4d18e2 100755 (executable)
@@ -20,6 +20,7 @@
 #include <asterisk/adsi.h>
 #include <asterisk/options.h>
 #include <asterisk/utils.h>
+#include <asterisk/lock.h>
 #include <netinet/in.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -29,8 +30,6 @@
 #include <stdio.h>
 #include <errno.h>
 
-#include <pthread.h>
-
 #include "../asterisk.h"
 #include "../astconf.h"
 
index 991a9a5..51f04e8 100755 (executable)
 #include <asterisk/dsp.h>
 #include <asterisk/musiconhold.h>
 #include <asterisk/utils.h>
+#include <asterisk/lock.h>
 #include "../asterisk.h"
 #include "../astconf.h"
 
-#include <pthread.h>
-
 #define MAX_ARGS 128
 
 /* Recycle some stuff from the CLI interface */
index b8300f9..91317ae 100755 (executable)
@@ -39,7 +39,6 @@
 #include <math.h>
 #include <sys/wait.h>
 #include <unistd.h>
-#include <pthread.h>
 #include <sys/time.h>
 
 #define ALMRCV_CONFIG "alarmreceiver.conf"
index 4169e59..9b64c6c 100755 (executable)
@@ -26,8 +26,6 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <pthread.h>
-
 
 static char *tdesc = "Authentication Application";
 
index a777773..4438663 100755 (executable)
@@ -27,8 +27,6 @@
 #include <stdlib.h>
 #include <sys/ioctl.h>
 
-#include <pthread.h>
-
 static char *tdesc = "Check if channel is available";
 
 static char *app = "ChanIsAvail";
index 2ec8de1..b44eafb 100755 (executable)
@@ -22,7 +22,6 @@
 #include <asterisk/utils.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Control Playback Application";
 
index 97c1088..2f3cc4f 100755 (executable)
@@ -23,9 +23,6 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include <pthread.h>
-
-
 static char *tdesc = "Date and Time";
 
 static char *app = "DateTime";
index 64850c0..26af2c4 100755 (executable)
 #include <asterisk/channel.h>
 #include <asterisk/pbx.h>
 #include <asterisk/module.h>
-#include <asterisk/pbx.h>
 #include <asterisk/astdb.h>
+#include <asterisk/lock.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
-
 
 static char *tdesc = "Database access functions for Asterisk extension logic";
 
index 8b096c4..b0a21fb 100755 (executable)
@@ -36,8 +36,6 @@
 #include <sys/signal.h>
 #include <netinet/in.h>
 
-#include <pthread.h>
-
 static char *tdesc = "Dialing Application";
 
 static char *app = "Dial";
index f9499ac..cd164e5 100755 (executable)
@@ -23,7 +23,6 @@
 #include <string.h>
 #include <ctype.h>
 #include <stdlib.h>
-#include <pthread.h>
 #include <stdio.h>
 #include "../asterisk.h"
 #include "../astconf.h"
index cf19901..132f86e 100755 (executable)
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <math.h>
-#include <pthread.h>
 #include <sys/time.h>
 
 /*
index 42355a2..09d8a51 100755 (executable)
@@ -22,9 +22,6 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include <pthread.h>
-
-
 static char *tdesc = "Simple Echo Application";
 
 static char *app = "Echo";
index 148477e..bf81a4d 100755 (executable)
@@ -27,9 +27,6 @@
 #include <stdlib.h>
 #include <ctype.h>
 
-#include <pthread.h>
-
-
 static char *tdesc = "ENUM Lookup";
 
 static char *app = "EnumLookup";
index c0352cb..6e895b6 100755 (executable)
@@ -20,6 +20,7 @@
 #include <asterisk/md5.h>
 #include <asterisk/config.h>
 #include <asterisk/utils.h>
+#include <asterisk/lock.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
@@ -35,7 +36,6 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <ctype.h>
-#include <pthread.h>
 
 
 #define FESTIVAL_CONFIG "festival.conf"
index 45d1e25..a4bf4e8 100755 (executable)
@@ -29,7 +29,6 @@
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Flash zap trunk application";
 
index b436749..9aa0bc6 100755 (executable)
@@ -24,9 +24,6 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include <pthread.h>
-
-
 static char *tdesc = "Get ADSI CPE ID";
 
 static char *app = "GetCPEID";
index ff660dc..62585f1 100755 (executable)
 #include <asterisk/channel.h>
 #include <asterisk/pbx.h>
 #include <asterisk/module.h>
+#include <asterisk/lock.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
 #include <dirent.h>
 
-#include <pthread.h>
-
 #include "../astconf.h"
 
 static char *tdesc = "Indicator for whether a voice mailbox has messages in a given folder.";
index 294ecc6..395407d 100755 (executable)
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <pthread.h>
 #include <sys/time.h>
 #include <errno.h>
 #include "../astconf.h"
index 6a46f03..04af0a3 100755 (executable)
@@ -21,7 +21,6 @@
 #include <asterisk/image.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Image Transmission Application";
 
index 4462be1..5c27824 100755 (executable)
@@ -24,7 +24,6 @@
 #include <sys/ioctl.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 #include <sys/time.h>
 #include <netinet/in.h>
 
index 5760a0d..69743e3 100755 (executable)
@@ -24,7 +24,6 @@
 #include <asterisk/astdb.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Look up Caller*ID name/number from blacklist database";
 
index c24a0dc..ecb0a4e 100755 (executable)
@@ -24,7 +24,6 @@
 #include <asterisk/astdb.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Look up CallerID Name from local database";
 
index 7812173..dd53946 100755 (executable)
 #include <asterisk/module.h>
 #include <asterisk/options.h>
 #include <asterisk/utils.h>
+#include <asterisk/lock.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
 
-#include <pthread.h>
-
 #define MAX_ARGS 80
 
 static char *tdesc = "Extension Macros";
index 14a6524..97e54a0 100755 (executable)
@@ -31,7 +31,6 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <sys/ioctl.h>
-#include <pthread.h>
 
 #ifdef __linux__
 #include <linux/zaptel.h>
index dd14b60..6b9e6b7 100755 (executable)
@@ -23,8 +23,6 @@
 #include <stdlib.h>
 #include <errno.h>
 
-#include <pthread.h>
-
 static char *tdesc = "Digital Milliwatt (mu-law) Test Application";
 
 static char *app = "Milliwatt";
index a2e0ce2..b7c6699 100755 (executable)
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <pthread.h>
 #include <sys/time.h>
 
 #define LOCAL_MPG_123 "/usr/local/bin/mpg123"
index 892840e..75951de 100755 (executable)
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <pthread.h>
 #include <sys/time.h>
 #include <sys/socket.h>
 
index 5949288..2faa92d 100755 (executable)
 #include <asterisk/options.h>
 #include <asterisk/logger.h>
 #include <asterisk/say.h>
+#include <asterisk/lock.h>
 
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
 
-#include <pthread.h>
-
 static char *tdesc = "Call Parking and Announce Application";
 
 static char *app = "ParkAndAnnounce";
index b547547..24a130a 100755 (executable)
@@ -21,7 +21,6 @@
 #include <asterisk/utils.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Trivial Playback Application";
 
index db5375e..7628ea0 100755 (executable)
@@ -25,7 +25,6 @@
 #include <asterisk/config.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 #define PRIV_CONFIG "privacy.conf"
 
index e876f0a..33731b2 100755 (executable)
@@ -62,7 +62,6 @@
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <errno.h>
index e36bbda..c9e3ee9 100755 (executable)
@@ -55,8 +55,6 @@
 
 #include "../astconf.h"
 
-#include <pthread.h>
-
 #define QUEUE_STRATEGY_RINGALL         0
 #define QUEUE_STRATEGY_ROUNDROBIN      1
 #define QUEUE_STRATEGY_LEASTRECENT     2
index 4cba132..cbc65f9 100755 (executable)
@@ -23,7 +23,6 @@
 #include <asterisk/utils.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Read Variable Application";
 
index 17b9516..02676bd 100755 (executable)
@@ -21,7 +21,6 @@
 #include <asterisk/dsp.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Trivial Record Application";
 
index 9edd77f..bf6a51d 100755 (executable)
@@ -50,7 +50,6 @@ enum {REM_OFF,REM_MONITOR,REM_TX};
 enum{ID,PROC,TERM,COMPLETE,UNKEY,REMDISC,REMALREADY,REMNOTFOUND,REMGO,
        CONNECTED,CONNFAIL,STATUS};
 
-#include <pthread.h>
 #include <asterisk/lock.h>
 #include <asterisk/file.h>
 #include <asterisk/logger.h>
index 39de24f..f60ee65 100755 (executable)
@@ -23,7 +23,6 @@
 #include <asterisk/app.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Send DTMF digits Application";
 
index e1920b6..73d24a1 100755 (executable)
@@ -22,7 +22,6 @@
 #include <asterisk/image.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Send Text Applications";
 
index 2b0fdb6..a84c7a0 100755 (executable)
@@ -21,7 +21,6 @@
 #include <asterisk/image.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Set CallerID Application";
 
index 089d35f..c73af9a 100755 (executable)
@@ -23,7 +23,6 @@
 #include <asterisk/utils.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Set CallerID Name";
 
index a4ded6b..9aef3ba 100755 (executable)
@@ -24,7 +24,6 @@
 #include <asterisk/utils.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Set CallerID Number";
 
index f78652c..68bdd92 100755 (executable)
 #include <asterisk/channel.h>
 #include <asterisk/pbx.h>
 #include <asterisk/module.h>
+#include <asterisk/lock.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
-#include <pthread.h>
 
 static char *tdesc = "Trivial skeleton Application";
 static char *app = "skel";
index b935ae5..dc7c14a 100755 (executable)
@@ -27,8 +27,6 @@
 #include <dirent.h>
 #include <ctype.h>
 
-#include <pthread.h>
-
 /* ToDo */
 /* When acting as SC and answering, should check for messages and send instead of sending EST as first packet */
 /* Add full VP support */
index 43a4224..02135be 100755 (executable)
 #include <asterisk/channel.h>
 #include <asterisk/pbx.h>
 #include <asterisk/module.h>
+#include <asterisk/lock.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
 
-#include <pthread.h>
-
-
 static char *synopsis = "Soft Hangup Application";
 
 static char *tdesc = "Hangs up the requested channel";
index 8497927..b6e3e3c 100755 (executable)
@@ -26,7 +26,6 @@
 #include <sys/types.h>
 #include <stdio.h>
 #include <unistd.h>
-#include <pthread.h>
 #include "libpq-fe.h"
 
 #define EXTRA_LOG 0
index cc82d99..600f0bd 100755 (executable)
 #include <asterisk/channel.h>
 #include <asterisk/pbx.h>
 #include <asterisk/module.h>
+#include <asterisk/lock.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
 
-#include <pthread.h>
-
-
 static char *tdesc = "Strip trailing digits";
 
 static char *descrip =
index 78d270e..d2b2f8c 100755 (executable)
 #include <asterisk/pbx.h>
 #include <asterisk/module.h>
 #include <asterisk/pbx.h>
+#include <asterisk/lock.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
 
-#include <pthread.h>
-
-
 static char *tdesc = "(Deprecated) Save substring digits in a given variable";
 
 static char *descrip =
index 010137f..4dfed73 100755 (executable)
@@ -24,9 +24,6 @@
 #include <stdlib.h>
 #include <errno.h>
 
-#include <pthread.h>
-
-
 static char *tdesc = "Generic System() application";
 
 static char *app = "System";
index 60219c2..79bac38 100755 (executable)
@@ -22,7 +22,6 @@
 #include <asterisk/dsp.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Playback with Talk Detection";
 
index 239161d..826c93c 100755 (executable)
@@ -22,9 +22,6 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include <pthread.h>
-
-
 static char *tdesc = "Transfer";
 
 static char *app = "Transfer";
index d4e24d9..dd72ed0 100755 (executable)
@@ -26,9 +26,6 @@
 #include <stdlib.h>
 #include <ctype.h>
 
-#include <pthread.h>
-
-
 static char *tdesc = "TXTCIDName";
 
 static char *app = "TXTCIDName";
index 6cae9eb..fdaa270 100755 (executable)
@@ -21,7 +21,6 @@
 #include <asterisk/image.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Send URL Applications";
 
index 89527df..e1a87c2 100755 (executable)
@@ -19,7 +19,6 @@
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Custom User Event Application";
 
index 803ea4c..e1d2943 100755 (executable)
@@ -58,7 +58,6 @@ static inline int sql_init(void) { return 0; }
 static inline void sql_close(void) { }
 #endif
 
-#include <pthread.h>
 #include "../asterisk.h"
 #include "../astconf.h"
 
index bb86229..3bf8625 100755 (executable)
 #include <asterisk/pbx.h>
 #include <asterisk/module.h>
 #include <asterisk/options.h>
+#include <asterisk/lock.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
 
-#include <pthread.h>
-
-
 static char *synopsis = "Wait for Ring Application";
 
 static char *tdesc = "Waits until first ring after time";
index 497bd3a..4277777 100755 (executable)
@@ -20,7 +20,6 @@
 #include <asterisk/translate.h>
 #include <string.h>
 #include <stdlib.h>
-#include <pthread.h>
 
 static char *tdesc = "Block Telemarketers with Special Information Tone";
 
index 6d455ce..852d9ab 100755 (executable)
@@ -32,7 +32,6 @@
 #include <string.h>
 #include <stdlib.h>
 #include <sys/ioctl.h>
-#include <pthread.h>
 
 #ifdef __linux__
 #include <linux/zaptel.h>
index efe93f9..d835e12 100755 (executable)
@@ -34,8 +34,6 @@
 #include <stdio.h>
 #include <fcntl.h>
 
-#include <pthread.h>
-
 /* Need some zaptel help here */
 #ifdef __linux__
 #include <linux/zaptel.h>
index dab6271..178cc51 100755 (executable)
@@ -33,7 +33,6 @@
 #include <string.h>
 #include <stdlib.h>
 #include <sys/ioctl.h>
-#include <pthread.h>
 
 #ifdef __linux__
 #include <linux/zaptel.h>