fcntl(2) lock on /dev/null fails with EINVAL

Steffen Nurpmeso sdaoden at yandex.com
Fri Jul 17 12:57:08 PDT 2015


..and so here is a tiny manual update.
Just noting that locking succeeds on at least (my outdated) Snow
Leopard and i like that since /dev/null is the only sane, always
available option to foist something NULLy into whatever.
I.e., i use it to be able to have an available NULL mailbox for
the test (suite is a wording too strong, still).  Yes, it is
because the BSD Mail codebase i'm sitting upon still doesn't have
it own VOID object that can be addressed directly.

--steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dfly-fcntl.2.diff
Type: text/x-diff
Size: 389 bytes
Desc: not available
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20150717/f433915b/attachment-0022.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.c
Type: text/x-csrc
Size: 458 bytes
Desc: not available
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20150717/f433915b/attachment-0023.bin>


More information about the Users mailing list