• Stanislav Kinsburskiy's avatar
    files: new "used" files list introduced · 7e12d2dd
    Stanislav Kinsburskiy authored
    This list contains all per-process used file fdinfo's, sorted by fd number.
    Will be used to safely create new artificial file descriptors and also allow
    to recreate temporary descriptors with original number, if possible, like
    AutoFS tries to preserve original pipe write end descriptor, when it was
    closed.
    This patch also adds a couple of simple helpers to find unused file
    descriptor:
    1) fd_is_used() does exactly what it is named
    2) find_unused_fd() returns "hint_fd" if unused or last used descriptor plus
    one.
    Signed-off-by: 's avatarStanislav Kinsburskiy <skinsbursky@virtuozzo.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    7e12d2dd
Name
Last commit
Last update
Documentation Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
lib Loading commit data...
scripts Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...