Date: Tue, 18 Nov 1997 17:05:44 +0100 (MET) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: hackers@freebsd.org Subject: multiple instances of the same files... Message-ID: <199711181605.RAA20871@labinfo.iet.unipi.it>
next in thread | raw e-mail | index | archive | help
Well I have the following problem (derived from the sound driver) the file "soundcard.h" is replicated three times: 1. /usr/include/machine/soundcard.h 2. /sys/i386/include/soundcard.h 3. /sys/i386/isa/snd/soundcard.h The first copy is normally used by application programs (some even use, erroneously, /usr/include/sys/soundcard.h ). The second copy is used in the kernel sources. The third copy has been introduced, somewhat arbitrarily, by myself in order to make the sound distribution self-contained. Other drivers have a similar problem, with copy #3 being part of the driver's distribution. I wonder if it would be possible to make, for all drivers, copy #2 a symlink to the include file located in the same place as the driver file. Many files in /sys/i386/include would deserve this, e.g.: asc.h -> /sys/i386/isa/ cpu.h -> /sys/i386/i386/ lpt.h -> /sys/i386/isa/ mouse.h -> /sys/i386/isa/ pcaudioio.h -> /sys/i386/isa/ soundcard.h -> /sys/i386/isa/[sound|snd]/ speaker.h -> /sys/i386/isa/ ultrasound.h -> /sys/i386/isa/sound/ and probably many others. BTW i also notice (at least in my copy of 2.2.1) some inconsistent use of include directories. At times the file is included as <machine/foo.h> at other times it is included as <i386/include/foo.h> Is there any rule about this ? Luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711181605.RAA20871>