Simple utility to show the open(2) flags for a file/dir
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
COPYING
Makefile
README
fdflags.c

README

A simple utility to display a file/directories open(2) flags given the flags
value from /proc/<pid>/fdinfo/<fd>

You can either pass the path to the /proc/<pid>/fdinfo/<fd> file or simply
pass the flags value.

e.g

    $ ./fdflags /proc/7878/fdinfo/38
    O_LARGEFILE
    O_RDWR
    O_CLOEXEC

or

    $ ./fdflags 0444002
    O_RDWR
    O_DIRECT
    O_NOFOLLOW
    O_NONBLOCK