From owner-freebsd-hackers Tue Mar 16 22:40:55 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from poboxer.pobox.com (unknown [208.149.16.38]) by hub.freebsd.org (Postfix) with ESMTP id 544F315038 for ; Tue, 16 Mar 1999 22:40:14 -0800 (PST) (envelope-from alk@poboxer.pobox.com) Received: (from alk@localhost) by poboxer.pobox.com (8.9.3/8.9.1) id AAA56674; Wed, 17 Mar 1999 00:38:47 -0600 (CST) (envelope-from alk) From: Anthony Kimball MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 17 Mar 1999 00:38:46 -0600 (CST) X-Face: \h9Jg:Cuivl4S*UP-)gO.6O=T]]@ncM*tn4zG);)lk#4|lqEx=*talx?.Gk,dMQU2)ptPC17cpBzm(l'M|H8BUF1&]dDCxZ.c~Wy6-j,^V1E(NtX$FpkkdnJixsJHE95JlhO 5\M3jh'YiO7KPCn0~W`Ro44_TB@&JuuqRqgPL'0/{):7rU-%.*@/>q?1&Ed Reply-To: alk@pobox.com To: hackers@freebsd.org Subject: imgact_interp X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14063.19540.330930.620154@avalon.east> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I wrote a kld module to invoke java on class files. I'd like to generalize it before send-pr'ing it. However, I'm new at this sort of thing, and don't know how to best send registrations to the module. To allow an interpreter I to interpret files matching N bytes of magic M, I would like to send the module , but since M may contain nuls, I can't really use sysctls (the hammer I know), unless I were to escape the nuls somehow, which seems grotty. I could add a well-known secondary magic file, or a syntactic extension to /etc/magic, but those seems kludgy as well. How should this properly be done? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message