This adds global exclusive advisory file locks on a per-thread basis. Only exclusive locking for a whole file is supported to setup headers etc. Finer grained locking will be handled somewhere else.
18 lines
237 B
Text
18 lines
237 B
Text
|
|
TESTING "Filehandle management" ./test-filehandles
|
|
|
|
|
|
TEST "basic filehandle usage" basic <<END
|
|
return: 0
|
|
END
|
|
|
|
rm -rf ,tmpdir
|
|
|
|
TEST "using many filehandles" more <<END
|
|
return: 0
|
|
END
|
|
|
|
TEST "file locking" file_locking <<END
|
|
return: 0
|
|
END
|
|
|