lkml.org 
[lkml]   [2005]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: fcntl(F_GETLEASE) semantics??
    From
    Date
    to den 11.08.2005 Klokka 21:41 (+0300) skreiv Heikki Orsila:
    > Peter Chubb <peterc@gelato.unsw.edu.au> wrote:
    > > if (fcntl(fd, F_SETLEASE, F_RDLCK) == -1)
    > > fail;
    >
    > Is that something inotify can do? If so, then should F_SETLEASE/GETLEASE
    > be deprecated for future? F_SETLEASE is Linux specific, and inotify is
    > generally more useful. It looks like inotify could be used to detected
    > changes in any file.

    inotify does not give you synchronous notification. It just tells you
    something has happened after the fact. Not the same thing at all.

    Cheers,
    Trond

    -
    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-08-11 20:59    [W:0.020 / U:93.808 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site