fsearch: keep track of stdout offset if needed
When stdout points to a file and not a pipe write atomicity is not guarantied. Detect that stdout is a regular file and keep track of its offset using a atomic offset variable in user space.
When stdout points to a file and not a pipe write atomicity is not guarantied. Detect that stdout is a regular file and keep track of its offset using a atomic offset variable in user space.