file-lock

[procedure] file-lock port [start len]

Chicken: lock a file. See also file-test-lock, file-unlock.

Gauche has direct fcntl() interface. See sys-fcntl?.