Document the new "=NAME" (#95) and "@FILE" (#12) syntax for --watchfd options.

This commit is contained in:
Andrew Wood
2025-10-04 20:17:46 +01:00
parent 242297a3c6
commit bd4ca7301c
3 changed files with 23 additions and 11 deletions
-3
View File
@@ -157,7 +157,6 @@ static bool opts_watchfd_add_item(opts_t opts, pid_t pid, int fd)
*/
static bool opts_watchfd_processname(opts_t opts, const char *process_name)
{
/* TODO: document "-d =NAME" syntax */
/* TODO: read from pgrep, without using popen() or system() */
return false;
}
@@ -173,8 +172,6 @@ static bool opts_watchfd_listfile(opts_t opts, const char *filename)
char buffer[1024]; /* flawfinder: ignore */
unsigned int linenumber;
/* TODO: document "-d @FILE" syntax */
/*
* flawfinder: buffer is zeroed before each use, and fgets() is
* passed one less than its size so the string functions in the loop