/** * Fd-enum is a simple tool to list open file descriptors of a pid by type * Copyright (C) 2023 Aaron Ball * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include #include #include #include "config.h" #ifndef _fdstats_h #define _fdstats_h struct fdstats { unsigned long livesize; unsigned long deadsize; unsigned long unknown; unsigned long dead; unsigned long live; unsigned long sockets; unsigned long inodes; unsigned long pipes; }; int fdstats_read(struct fdstats*, char*, struct config*); #endif