Date: Sun, 25 Oct 2015 20:43:35 +0100 From: Ivan Radovanovic <radovanovic@gmail.com> To: freebsd-hackers@FreeBSD.org Subject: Opening file to be used with kevent Message-ID: <562D30E7.50300@gmail.com>
next in thread | raw e-mail | index | archive | help
Hi guys, What are recommended flags to use when opening file descriptor to be used later with kevent(2)? I was thinking to specify O_RDONLY but I guess that would prevent any other process from opening file with O_EXCL (and I don't care about file contents anyway, I just want to be notified when file is changed). Apparently Darwing has O_EVTONLY for this purpose, so I am wondering if FreeBSD has something equivalent (or what would be the weakest mode to pass to open(2))? Kind regards, Ivan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?562D30E7.50300>