From owner-freebsd-hackers Tue Nov 18 09:12:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA06170 for hackers-outgoing; Tue, 18 Nov 1997 09:12:59 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id JAA06155 for ; Tue, 18 Nov 1997 09:12:49 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id RAA20871; Tue, 18 Nov 1997 17:05:45 +0100 From: Luigi Rizzo Message-Id: <199711181605.RAA20871@labinfo.iet.unipi.it> Subject: multiple instances of the same files... To: hackers@freebsd.org Date: Tue, 18 Nov 1997 17:05:44 +0100 (MET) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 at other times it is included as 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/ _____________________________|______________________________________