Messages in this thread | | | Date | Thu, 11 Aug 2005 21:41:44 +0300 | Subject | Re: fcntl(F_GETLEASE) semantics?? | From | (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.
-- Heikki Orsila Barbie's law: heikki.orsila@iki.fi "Math is hard, let's go shopping!" http://www.iki.fi/shd - 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/
| |