Subject: Re: fsync_range() system call
To: Ted Unangst <tedu@zeitbombe.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 10/24/2003 16:08:28
--+nBD6E3TurpgldQp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 24, 2003 at 06:46:34PM -0400, Ted Unangst wrote:
> On Fri, 24 Oct 2003, Bill Studenmund wrote:
>=20
> > I'd like to add a new system call, named fsync_range(). The purpose of
> > this system call is to flush some of the data in a file; it's a kind of
> > fdatasync for a range.
>=20
> @@ -347,6 +362,7 @@
>  __strong_alias(_close, close)
>  __strong_alias(_fcntl, fcntl)
>  __strong_alias(_fsync, fsync)
> +__weak_alias(fsync_range, _fsync_range)
>  __strong_alias(_msgrcv, msgrcv)
>  __strong_alias(_msgsnd, msgsnd)
>  __strong_alias(___msync13, __msync13)
>=20
> mostly unrelated, but i'm curious why weak_alias and not strong_alias?

Because fsync_range isn't a posix call but it's in the application's name=
=20
space. So we aren't supposed to be stomping on a user-supplied=20
"fsync_range". :-)

Take care,

Bill

--+nBD6E3TurpgldQp
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQE/mbDrWz+3JHUci9cRAorXAJ4tkt3w2aUlL5wNvbuCfY+3AZPAPQCfVWJ+
kivGjzSsrDInofjI7sL/Q8I=
=okCK
-----END PGP SIGNATURE-----

--+nBD6E3TurpgldQp--