2 .TH fwatch 3 "3 February 2001" "Straylight/Edgeware" "mLib utilities library"
4 fwatch \- watch a file for changes
11 .B "#include <mLib/fwatch.h>"
13 .BI "void fwatch_init(fwatch *" f ", const char *" name );
14 .BI "void fwatch_initfd(fwatch *" f ", int " fd );
15 .BI "int fwatch_update(fwatch *" f ", const char *" name );
16 .BI "int fwatch_updatefd(fwatch *" f ", int " fd );
19 These functions watch a file for changes. Use
25 block with information about a file; then later, the functions
29 will update the information in the structure and inform you whether the
34 functions can't return errors: they remember errors as part of the file
37 functions return zero if the file has not changed or nonzero if it has.
41 Mark Wooding, <mdw@distorted.org.uk>