flock vs lockf on Linux

前端 未结 2 1366
鱼传尺愫
鱼传尺愫 2020-11-30 00:14

If lockf is used with a 0 offset, what are differences between flock and lockf when used in exclusive mode, if any?

I\'m askin

2条回答
  •  独厮守ぢ
    2020-11-30 00:26

    The most likely reason for the conditional compilation is that neither of the two functions is available on every platform.

提交回复
热议问题