From 6bba9b42448c966b4d7425ab0ca6f86f26564fb5 Mon Sep 17 00:00:00 2001 From: bz Date: Mon, 26 May 2008 10:40:09 +0000 Subject: Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and parts relied on the now removed NET_NEEDS_GIANT. Most of I4B has been disconnected from the build since July 2007 in HEAD/RELENG_7. This is what was removed: - configuration in /etc/isdn - examples - man pages - kernel configuration - sys/i4b (drivers, layers, include files) - user space tools - i4b support from ppp - further documentation Discussed with: rwatson, re --- share/examples/isdn/contrib/answer.c | 178 ----------------------------------- 1 file changed, 178 deletions(-) delete mode 100644 share/examples/isdn/contrib/answer.c (limited to 'share/examples/isdn/contrib/answer.c') diff --git a/share/examples/isdn/contrib/answer.c b/share/examples/isdn/contrib/answer.c deleted file mode 100644 index aac431f..0000000 --- a/share/examples/isdn/contrib/answer.c +++ /dev/null @@ -1,178 +0,0 @@ -// $FreeBSD$ -// changed ".g711a" to ".al" (-hm) -// Tue Mar 3 02:42:14 MET 1998 dave@turbocat.de -// started - -#define BLK_SIZE 2048 -#define SOX "/usr/local/bin/sox" -#define ALAWULAW "/usr/local/bin/alaw2ulaw" - -#include -#include - - FILE *device; - FILE *logfile; - char srcNum[30]; - char destNum[30]; - char argbuf[255]; - char tmpBuf[1024] = ""; - - -void writeToPhone (char *path) -{ - char buf[BLK_SIZE]; - FILE *srcfile; - int i = 0; - int readcount = 0; - - srcfile = fopen(path,"r"); - if (srcfile) { - for (i=0;i 2) { - argbuf[strlen(argbuf)-1] = '\0'; - } - - - device = fopen(argWithName("-D"),"r+"); - strcpy(destNum, argWithName("-d")); - strcpy(srcNum, argWithName("-s")); - - fprintf(logfile,"device '%s'\n", argWithName("-D")); - fprintf(logfile,"srcNum '%s'\n", srcNum); - fprintf(logfile,"destNum '%s'\n", destNum); - - - if (device) { - - strftime(timeStr,40,I4B_TIME_FORMAT,localtime(&now)); - - sprintf(outfileName,"/var/isdn/%s_%s_%s", timeStr, srcNum, destNum); - - writeToPhone ("/usr/local/lib/isdn/msg.al"); - readFromPhone (outfileName); - - sprintf(cmdStr,"/bin/cat %s | %s | %s -t raw -U -b -r 8000 - -t .au %s.snd", outfileName, ALAWULAW, SOX, outfileName); - fprintf(logfile,"%s\n",cmdStr); - system(cmdStr); - unlink(outfileName); - - fclose(device); - } else { - fprintf(logfile,"Can't open file '%s'\n",argWithName("-D")); - } - - now=time(NULL); - - strftime(timeStr,40,I4B_TIME_FORMAT,localtime(&now)); - - fprintf(logfile,"%s Done\n",timeStr); - fclose(logfile); - exit(0); // insure the process exit status is 0 - return 0; // ...and make main fit the ANSI spec. -} -- cgit v1.1