Page MenuHomeFreeBSD

Teach truss(1) about fsync(2) and fdatasync(2).
ClosedPublic

Authored by tmunro on Feb 22 2019, 12:01 PM.
Tags
None
Referenced Files
F81663554: D19295.diff
Fri, Apr 19, 3:45 PM
Unknown Object (File)
Feb 14 2024, 1:59 PM
Unknown Object (File)
Dec 21 2023, 3:35 AM
Unknown Object (File)
Dec 20 2023, 1:05 AM
Unknown Object (File)
Dec 17 2023, 3:33 AM
Unknown Object (File)
Dec 10 2023, 9:53 PM
Unknown Object (File)
Dec 4 2023, 11:28 AM
Unknown Object (File)
Oct 29 2023, 9:08 PM
Subscribers

Details

Summary

The convention is to show file descriptors as decimal. Add explicit entries to syscalls.c to avoid the default hex output.

Before:

fsync(0x12) = 0 (0x0)
fdatasync(0x12) = 0 (0x0)

After:

fsync(18) = 0 (0x0)
fdatasync(18) = 0 (0x0)

Test Plan

truss install -S foo /tmp/foo

See how the fsync() call (caused by -S) is displayed.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable