cvs commit: src/include stdio.h src/lib/libc/sys lseek.2 pathconf.2 src/sys/kern vfs_syscalls.c src/sys/sys filio.h unistd.h

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Apr 6 10:35:39 UTC 2007


On Fri, Apr 06, 2007 at 09:39:35AM +0400, Andrey Chernov wrote:
> On Fri, Apr 06, 2007 at 11:58:55AM +1000, Bruce Evans wrote:
> > On Thu, 5 Apr 2007, Pawel Jakub Dawidek wrote:
> > 
> > >pjd         2007-04-05 21:10:54 UTC
> > >
> > > FreeBSD src repository
> > >
> > > Modified files:
> > >   include              stdio.h
> > >   lib/libc/sys         lseek.2 pathconf.2
> > >   sys/kern             vfs_syscalls.c
> > >   sys/sys              filio.h unistd.h
> > > Log:
> > > Implement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found in
> > > OpenSolaris. For more information please refer to:
> > >
> > >         http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data
> > 
> > These are just namespace pollution in stdio.h.  stdio (fseek()) doesn't
> > support them, and the hack of declaring lseek() in stdio.h should not
> > be extended to new interfaces.  If stdio ever supports them, then they
> > would need to be declared under a visibility ifdef (not #ifdef self).
> 
> I agree. They must be implemented in fseek.c code first before adding them 
> to stdio.h and ifdefed with proper *_VISIBLE tags in all places.
> Perhaps new __CDDL_VISIBLE tag required for it.

This is not CDDL licensed. I'm planning to implement support for
SEEK_DATA and SEEK_HOLE for UFS.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20070406/5a9ea678/attachment.pgp


More information about the cvs-all mailing list