From owner-freebsd-hackers Thu Apr 11 7:27:55 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from prioris.mini.pw.edu.pl (prioris.mini.pw.edu.pl [194.29.178.2]) by hub.freebsd.org (Postfix) with ESMTP id D6DF137B4A2 for ; Thu, 11 Apr 2002 07:27:33 -0700 (PDT) Received: from localhost (localhost.mini.pw.edu.pl [127.0.0.1]) by prioris.mini.pw.edu.pl (Postfix) with ESMTP id BF0AA7CF1C for ; Thu, 11 Apr 2002 16:27:31 +0200 (CEST) Received: by prioris.mini.pw.edu.pl (Postfix, from userid 1091) id BE72A7CEDB; Thu, 11 Apr 2002 16:27:19 +0200 (CEST) Date: Thu, 11 Apr 2002 16:27:19 +0200 From: Pawel Jakub Dawidek To: freebsd-hackers@freebsd.org Subject: How to catch closef()? Message-ID: <20020411162719.A93863@prioris.mini.pw.edu.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-PGP-Key-URL: http://garage.freebsd.pl/keys/PGP X-OS: FreeBSD 4.5-STABLE i386 X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey. How to catch all file descryptors closing when I'm in kld module? I can't catch closef() because this isn't syscall of course:) At the moment I'm catching succeded close(), sys_exit(), and succeded kill(). But what with kernel kills (I mean segfaults, etc.)? I need this, because in cerb (http://cerber.sourceforge.net) I need to have function that will give me filename from file descryptor and pid. Any ideas? I don't want to patch kernel directly. --=20 Pawel Jakub Dawidek Network Administrator. Am I Evil? Yes, I Am. --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia iQCVAwUBPLWdRz/PhmMH/Mf1AQG2QwP+O28NgZyccHzICVtgHfIHHE1pkmiiZJ31 FxWdS0C6eIK7cgACnV0jR5JC1blMi1fH3Zxik5yu3aGPHUv2WZoAynI98SMlNS4o lGcBAutc/fEGWhKPrjK2tmFJNSgeqtv7BMzsRkj+vAczreEO8eTnlggNrZYs5V1S u2J/U++fl+k= =hbRc -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message