Re: fsync for only part of a file
Jason Thorpe <thorpej-DZEk9q7Sfju/3pe1ocb+swC/[email protected]> Sat, 13 Sep 2003 10:10:35 -0700
| Newsgroups | gmane.os.bsd.api.general |
|---|---|
| Message-ID | <[email protected]> |
On Saturday, September 13, 2003, at 09:51 AM, Jonathan Chen wrote: > On Fri, Sep 12, 2003 at 09:32:51PM -0700, wrstuden-DZEk9q7Sfju/3pe1ocb+swC/[email protected] > wrote: >> >> int fsync2(int fd, off_t start, size_t run); > > I'm not sure how useful this is, but perhaps: > > int foo(int fd, off_t offset, size_t run, int whence); > (where whence/offset is the same usage as lseek(2). > > by that extension, perhaps this new function could be called lsync(). > (not that I have any idea when the L stands for) In the old days, there was a seek() and an lseek(). The latter took a "long" argument for the offset. -- Jason R. Thorpe <thorpej-DZEk9q7Sfju/3pe1ocb+swC/[email protected]> --------------------------------------------------------------------- The BSD APIs Discussion Mailing List To unsubscribe: send "unsubscribe bsd-api-discuss" to majordomo-of7zbby7T3pWk0Htik3J/[email protected]