From owner-freebsd-hackers Sun Feb 3 13:11:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from milla.33net.fdns.net (milla.33net.fdns.net [217.197.166.58]) by hub.freebsd.org (Postfix) with ESMTP id 64C5A37B417 for ; Sun, 3 Feb 2002 13:11:17 -0800 (PST) Received: (from nick@localhost) by milla.33net.fdns.net (8.11.6/8.11.6) id g13LBbV42280 for freebsd-hackers@FreeBSD.ORG; Sun, 3 Feb 2002 22:11:37 +0100 (CET) (envelope-from nick) Date: Sun, 3 Feb 2002 22:11:37 +0100 From: =?ISO-8859-2?Q?Pawe=B3_Jakub_Dawidek?= To: freebsd-hackers@FreeBSD.ORG Subject: File name. Message-ID: <20020203221137.A34994@FreeBSD.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-PGP-Key-URL: http://naomi.fdns.net/~nick/keys/PGP.txt X-OS: FreeBSD 4.5-RC i386 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 --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=ISO-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey. For example i cantrol fchflags syscall via my kernel module. I got: int n_fchflags(register struct proc *p, register struct fchflags_args) { =2E.. } struct fchflags_args { int fd; int flags; }; I can get vnode of changed file. I can get inode number of changed file. But how can i get file name? There is a way to get inode when i have file name and p (struct proc), so maybe there is a way to get file name from inode number and p. And another thing for chflags syscall. I got file name, but how can I get full path name for this file? --=20 Pawe=B3 Jakub Dawidek Network Administrator. Am I Evil? Yes, I Am. --LZvS9be/3tNcYl/X Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia iQCVAwUBPF2niT/PhmMH/Mf1AQF2vgQAg0OzU4aki4NB+fDQk7ozEC5QCIatiBXn ncUdAbf0STcS5zGA8Fsb/1WF5jNtuo45dqkKo1E2jNGjh+cTYUr5MgDryzCBBT3u AFz7RF3Z53pq2rovNtuhyenAtY83epE07bXGGMlQt2H5POnW8+6xc4o/ZeEt+yxz +YxhstKSUmQ= =uYHn -----END PGP SIGNATURE----- --LZvS9be/3tNcYl/X-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message