101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

481
active users

#lockf

0 posts0 participants0 posts today
JdeBP<p>It seems like only 2 days ago this manual page section was only 2 sentences long. (-:</p><p><a href="https://jdebp.uk/Softwares/nosh/guide/commands/setlock.xml" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">jdebp.uk/Softwares/nosh/guide/</span><span class="invisible">commands/setlock.xml</span></a></p><p><a href="https://tty0.social/tags/NFS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NFS</span></a> <a href="https://tty0.social/tags/setlock" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>setlock</span></a> <a href="https://tty0.social/tags/flock" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>flock</span></a> <a href="https://tty0.social/tags/lockf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lockf</span></a> <a href="https://tty0.social/tags/s6" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>s6</span></a> <a href="https://tty0.social/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeBSD</span></a> <a href="https://tty0.social/tags/Illumos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Illumos</span></a> <a href="https://tty0.social/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a><br><span class="h-card"><a href="https://mstdn.social/@josephholsten" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>josephholsten</span></a></span> <span class="h-card"><a href="https://mastodon.social/@cks" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>cks</span></a></span> <br><span class="h-card"><a href="https://social.treehouse.systems/@ska" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ska</span></a></span> <span class="h-card"><a href="https://toot.io/@synlogic" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>synlogic</span></a></span></p>
JdeBP<p><span class="h-card"><a href="https://mstdn.social/@josephholsten" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>josephholsten</span></a></span></p><p>Resources:</p><p><a href="https://tty0.social/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeBSD</span></a> and <a href="https://tty0.social/tags/Illumos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Illumos</span></a> guarantees: <a href="https://illumos.org/man/2/fcntl#file-locking" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">illumos.org/man/2/fcntl#file-l</span><span class="invisible">ocking</span></a> and <a href="https://man.freebsd.org/cgi/man.cgi?query=flock&amp;sektion=2#NOTES" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">man.freebsd.org/cgi/man.cgi?qu</span><span class="invisible">ery=flock&amp;sektion=2#NOTES</span></a> </p><p>HPA's use of flock(2): <a href="https://salsa.debian.org/debian/util-linux/-/blob/master/sys-utils/flock.c#L281" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salsa.debian.org/debian/util-l</span><span class="invisible">inux/-/blob/master/sys-utils/flock.c#L281</span></a></p><p>FreeBSD using O_EXLOCK: <a href="https://github.com/freebsd/freebsd-src/blob/0e04dd3b66c053422b90c387f7bbd82a0921bda0/usr.bin/lockf/lockf.c#L177" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/freebsd/freebsd-src</span><span class="invisible">/blob/0e04dd3b66c053422b90c387f7bbd82a0921bda0/usr.bin/lockf/lockf.c#L177</span></a></p><p>Bernstein's approach, unified for redo: <a href="https://github.com/jdebp/djbwares/blob/master/source/lock_ex.c" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/jdebp/djbwares/blob</span><span class="invisible">/master/source/lock_ex.c</span></a> <a href="https://github.com/jdebp/djbwares/blob/master/source/hasflock.h.do" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/jdebp/djbwares/blob</span><span class="invisible">/master/source/hasflock.h.do</span></a></p><p>I went with detecting O_EXLOCK: <a href="https://github.com/jdebp/nosh/blob/master/source/open_lockfile.cpp" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/jdebp/nosh/blob/mas</span><span class="invisible">ter/source/open_lockfile.cpp</span></a></p><p><span class="h-card"><a href="https://mastodon.social/@cks" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>cks</span></a></span> points to the <a href="https://tty0.social/tags/fcntl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fcntl</span></a>, <a href="https://tty0.social/tags/lockf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lockf</span></a>, and <a href="https://tty0.social/tags/flock" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>flock</span></a> Linux man pages at <a href="https://utcc.utoronto.ca/~cks/space/blog/linux/FlockFcntlAndNFS" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">utcc.utoronto.ca/~cks/space/bl</span><span class="invisible">og/linux/FlockFcntlAndNFS</span></a></p><p><a href="https://tty0.social/tags/NFS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NFS</span></a> <a href="https://tty0.social/tags/setlock" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>setlock</span></a> <a href="https://tty0.social/tags/s6" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>s6</span></a><br><span class="h-card"><a href="https://social.treehouse.systems/@ska" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ska</span></a></span> <span class="h-card"><a href="https://toot.io/@synlogic" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>synlogic</span></a></span></p>
JdeBP<p><span class="h-card"><a href="https://mstdn.social/@josephholsten" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>josephholsten</span></a></span> </p><p>The interoperability problems are significant. H. Peter Anvin's flock(1) uses flock(2), whereas you are using fcntl(2).</p><p>Ironically, this means that <a href="https://tty0.social/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> is your worst nightmare, because <a href="https://tty0.social/tags/Illumos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Illumos</span></a> and the BSDs guarantee that those two will (locally) interlock, whereas Linux doesn't and the world has thus got two <a href="https://tty0.social/tags/flock" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>flock</span></a> tools on Linux that don't interlock.</p><p>That's going to be a <a href="https://tty0.social/tags/Unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Unix</span></a> StackExchange answer somewhen.</p><p><a href="https://tty0.social/tags/NFS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NFS</span></a> <a href="https://tty0.social/tags/setlock" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>setlock</span></a> <a href="https://tty0.social/tags/fcntl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fcntl</span></a> <a href="https://tty0.social/tags/lockf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lockf</span></a> <a href="https://tty0.social/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeBSD</span></a> <a href="https://tty0.social/tags/s6" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>s6</span></a> <br><span class="h-card"><a href="https://social.treehouse.systems/@ska" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ska</span></a></span> <span class="h-card"><a href="https://toot.io/@synlogic" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>synlogic</span></a></span> <span class="h-card"><a href="https://mastodon.social/@cks" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>cks</span></a></span></p>
JdeBP<p><span class="h-card"><a href="https://mstdn.social/@josephholsten" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>josephholsten</span></a></span> </p><p>Interesting. Another one. At this rate I'm going to have to factor out a list so that I don't keep laboriously repeating the names.</p><p>It's worth your having a HISTORY section on your manual page. Speaking from experience of _reading_ HISTORY sections, 20 years from now, people will quietly thank you.</p><p>I've tried to do that myself. e.g. <a href="http://jdebp.info/Softwares/djbwares/guide/commands/easter.xml#History" rel="nofollow noopener" target="_blank"><span class="invisible">http://</span><span class="ellipsis">jdebp.info/Softwares/djbwares/</span><span class="invisible">guide/commands/easter.xml#History</span></a></p><p><a href="https://tty0.social/tags/NFS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NFS</span></a> <a href="https://tty0.social/tags/setlock" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>setlock</span></a> <a href="https://tty0.social/tags/flock" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>flock</span></a> <a href="https://tty0.social/tags/lockf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lockf</span></a> <a href="https://tty0.social/tags/Illumos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Illumos</span></a> <a href="https://tty0.social/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeBSD</span></a> <a href="https://tty0.social/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://tty0.social/tags/s6" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>s6</span></a><br><span class="h-card"><a href="https://social.treehouse.systems/@ska" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ska</span></a></span> <span class="h-card"><a href="https://toot.io/@synlogic" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>synlogic</span></a></span> <span class="h-card"><a href="https://mastodon.social/@cks" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>cks</span></a></span></p>