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
Unknown Object (File)
Wed, Nov 20, 1:38 PM
Unknown Object (File)
Wed, Nov 20, 1:25 PM
Unknown Object (File)
Wed, Nov 20, 11:44 AM
Unknown Object (File)
Oct 16 2024, 2:33 PM
Unknown Object (File)
Oct 7 2024, 12:32 PM
Unknown Object (File)
Oct 4 2024, 10:03 AM
Unknown Object (File)
Oct 4 2024, 3:47 AM
Unknown Object (File)
Oct 1 2024, 3:30 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 Skipped
Unit
Tests Skipped