lkml.org 
[lkml]   [2003]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: OT: why no file copy() libc/syscall ??
    Date
    On Thursday 27 November 2003 04:58, David Lang wrote:
    [snip]
    > actually thinking about it a bit more, did I make a stupid mistake and
    > think that the FD points at the beginning of the file when it really
    > points at the inode? if it points at the inode then the problems I was
    > refering to don't exist.

    Actually, it points to inode and offset in the file. The advantage this has
    is in the case of appending to a file... open the destination file, seek to
    the end, then copy. It also allows seeking some offset in the input file,
    then copying the rest of the file.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:59    [W:0.023 / U:90.072 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site