[dahdi-commits] fjoe: freebsd/trunk r9208 - /freebsd/trunk/drivers/dahdi/dahdi_transcode.c

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Mon Aug 30 15:41:30 CDT 2010


Author: fjoe
Date: Mon Aug 30 15:40:33 2010
New Revision: 9208

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9208
Log:
Ignore FIONBIO and FIOASYNC ioctls: they are actually
handled by upper level but also are passed down to the
device driver.

This fixes warnings about inability to set non-blocking
mode for codec_dahdi descriptors during asterisk startup.

Modified:
    freebsd/trunk/drivers/dahdi/dahdi_transcode.c

Modified: freebsd/trunk/drivers/dahdi/dahdi_transcode.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/dahdi_transcode.c?view=diff&rev=9208&r1=9207&r2=9208
==============================================================================
--- freebsd/trunk/drivers/dahdi/dahdi_transcode.c (original)
+++ freebsd/trunk/drivers/dahdi/dahdi_transcode.c Mon Aug 30 15:40:33 2010
@@ -30,6 +30,7 @@
 #include <sys/ioccom.h>
 #include <sys/module.h>
 #include <sys/poll.h>
+#include <sys/filio.h>
 #else /* !__FreeBSD__ */
 #include <linux/kernel.h>
 #include <linux/errno.h>
@@ -422,6 +423,11 @@
 		   "supported. Please call DAHDI_TC ioctls directly.\n",
 		   THIS_MODULE->name);
 		return -EINVAL;
+#if defined(__FreeBSD__)
+	case FIONBIO:
+	case FIOASYNC:
+		return 0;
+#endif
 	default:
 		return -EINVAL;
 	};




More information about the dahdi-commits mailing list