Subject: Re: funlink() for fun!
To: <>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-kern
Date: 07/12/2003 15:18:00
--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
On Fri, Jul 11, 2003 at 04:48:54PM -0400, der Mouse wrote:
> Not quite. chdir() operates on a process and a directory; the pathname
> is necessary only to identify the directory. It could equally well
> identify the directory by a file descriptor open on it, and that's
> exactly what fchdir() does. truncate() operates on a file; the
> pathname is used merely to find the desired file. It too could equally
> well identify the file by a file descriptor open on it, and that's
> exactly what ftruncate() does.
>=20
> However, unlink() does not operate on a file, except as a side effect;
> it operates on a link to a file.=20
Just what I wanted to write myself.
-is
--Dxnq1zWXvFF0Q93v
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)
iD8DBQE/EAqHPCRcZ/VMtk4RAtZZAJ9LbKZtiEJg/5CQBHRJfxwyzH0KCgCcD0AC
VZHpHgwRM5sj0FHSvqXlaZ4=
=v2ZZ
-----END PGP SIGNATURE-----
--Dxnq1zWXvFF0Q93v--