Hi, The attached source, when compiled to a library and LD_PRELOADed, will write which ioctls an app sends to OSS's "/dev/dsp" to stderr. It's useful for debugging, especially when an application isn't open source. However, it's hackish and may only work only on Linux. To build and run:
1) cc -fPIC -shared -Wl,-soname,libwrap_ioctl.so.1 -I/usr/lib/oss/include -I/usr/include -o libwrap_ioctl.so.1.0 -ldl ioctlw.c 2) LD_PRELOAD=libwrap_ioctl.so.1.0 (app). [1] With thanks to http://scaryreasoner.wordpress.com/2007/11/17/using-ld_preload-libraries-and-glibc-backtrace-function-for-debugging/
ioctlw.c.gz
Description: GNU Zip compressed data
_______________________________________________ oss-devel mailing list oss-devel@mailman.opensound.com http://mailman.opensound.com/mailman/listinfo/oss-devel