]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: introduce XMODE column, extensible variant of MODE
authorMasatake YAMATO <yamato@redhat.com>
Fri, 9 Jun 2023 12:35:55 +0000 (21:35 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 22 Jun 2023 00:01:13 +0000 (09:01 +0900)
commit92c00d7215bab642dc90f069a50161ee27219a89
tree81fc2fe76359b09de65e975223b16a82432f3fe0
parentcb233a3e03a113245aeb83147974485bff8fabf4
lsfd: introduce XMODE column, extensible variant of MODE

The original MODE column comes from three letters (rwx) may not be
enough for representing various aspects of file descriptors and memory
mappings. We want to add more items in the future.

However, the description of MODE in lsfd(1) doesn't wrote about its
extensibility. Adding more letters to the column can break
compatibility in someone's use case.

This change introduces XMODE column. Unlike MODE, XMODE is declared as
an extensible column in lsfd(1). Currently, it shows the same items as
the MODE column does.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-file.c
misc-utils/lsfd.1.adoc
misc-utils/lsfd.c
misc-utils/lsfd.h
tests/expected/lsfd/column-xmode-MODE-r-bit [new file with mode: 0644]
tests/expected/lsfd/column-xmode-MODE-w-bit [new file with mode: 0644]
tests/expected/lsfd/column-xmode-MODE-x-bit [new file with mode: 0644]
tests/expected/lsfd/column-xmode-XMODE-r-bit [new file with mode: 0644]
tests/expected/lsfd/column-xmode-XMODE-w-bit [new file with mode: 0644]
tests/expected/lsfd/column-xmode-XMODE-x-bit [new file with mode: 0644]
tests/ts/lsfd/column-xmode [new file with mode: 0755]