clsync
Loading...
Searching...
No Matches
mon_kqueue.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IN_ACCESS   0x00000001 /* File was accessed. */
 
#define IN_MODIFY   0x00000002 /* File was modified. */
 
#define IN_ATTRIB   0x00000004 /* Metadata changed. */
 
#define IN_CLOSE_WRITE   0x00000008 /* Writtable file was closed. */
 
#define IN_CLOSE_NOWRITE   0x00000010 /* Unwrittable file closed. */
 
#define IN_CLOSE   (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */
 
#define IN_OPEN   0x00000020 /* File was opened. */
 
#define IN_MOVED_FROM   0x00000040 /* File was moved from X. */
 
#define IN_MOVED_TO   0x00000080 /* File was moved to Y. */
 
#define IN_MOVE   (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */
 
#define IN_CREATE   0x00000100 /* Subfile was created. */
 
#define IN_DELETE   0x00000200 /* Subfile was deleted. */
 
#define IN_DELETE_SELF   0x00000400 /* Self was deleted. */
 
#define IN_MOVE_SELF   0x00000800 /* Self was moved. */
 
#define IN_IGNORED   0x00008000
 
#define IN_ISDIR   0x40000000
 

Functions

int kqueue_init ()
 
int kqueue_add_watch_dir (struct ctx *ctx_p, struct indexes *indexes_p, const char *const accpath)
 
int kqueue_wait (struct ctx *ctx_p, struct indexes *indexes_p, struct timeval *tv_p)
 
int kqueue_handle (struct ctx *ctx_p, struct indexes *indexes_p)
 
int kqueue_deinit (ctx_t *ctx_p)
 

Macro Definition Documentation

◆ IN_ACCESS

#define IN_ACCESS   0x00000001 /* File was accessed. */

Definition at line 24 of file mon_kqueue.h.

◆ IN_ATTRIB

#define IN_ATTRIB   0x00000004 /* Metadata changed. */

Definition at line 26 of file mon_kqueue.h.

◆ IN_CLOSE

#define IN_CLOSE   (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */

Definition at line 29 of file mon_kqueue.h.

◆ IN_CLOSE_NOWRITE

#define IN_CLOSE_NOWRITE   0x00000010 /* Unwrittable file closed. */

Definition at line 28 of file mon_kqueue.h.

◆ IN_CLOSE_WRITE

#define IN_CLOSE_WRITE   0x00000008 /* Writtable file was closed. */

Definition at line 27 of file mon_kqueue.h.

◆ IN_CREATE

#define IN_CREATE   0x00000100 /* Subfile was created. */

Definition at line 34 of file mon_kqueue.h.

◆ IN_DELETE

#define IN_DELETE   0x00000200 /* Subfile was deleted. */

Definition at line 35 of file mon_kqueue.h.

◆ IN_DELETE_SELF

#define IN_DELETE_SELF   0x00000400 /* Self was deleted. */

Definition at line 36 of file mon_kqueue.h.

◆ IN_IGNORED

#define IN_IGNORED   0x00008000

Definition at line 38 of file mon_kqueue.h.

◆ IN_ISDIR

#define IN_ISDIR   0x40000000

Definition at line 39 of file mon_kqueue.h.

◆ IN_MODIFY

#define IN_MODIFY   0x00000002 /* File was modified. */

Definition at line 25 of file mon_kqueue.h.

◆ IN_MOVE

#define IN_MOVE   (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */

Definition at line 33 of file mon_kqueue.h.

◆ IN_MOVE_SELF

#define IN_MOVE_SELF   0x00000800 /* Self was moved. */

Definition at line 37 of file mon_kqueue.h.

◆ IN_MOVED_FROM

#define IN_MOVED_FROM   0x00000040 /* File was moved from X. */

Definition at line 31 of file mon_kqueue.h.

◆ IN_MOVED_TO

#define IN_MOVED_TO   0x00000080 /* File was moved to Y. */

Definition at line 32 of file mon_kqueue.h.

◆ IN_OPEN

#define IN_OPEN   0x00000020 /* File was opened. */

Definition at line 30 of file mon_kqueue.h.

Function Documentation

◆ kqueue_add_watch_dir()

int kqueue_add_watch_dir ( struct ctx * ctx_p,
struct indexes * indexes_p,
const char *const accpath )
extern

Definition at line 491 of file mon_kqueue.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kqueue_deinit()

int kqueue_deinit ( ctx_t * ctx_p)
extern

Definition at line 827 of file mon_kqueue.c.

Here is the caller graph for this function:

◆ kqueue_handle()

int kqueue_handle ( struct ctx * ctx_p,
struct indexes * indexes_p )
extern

Definition at line 782 of file mon_kqueue.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ kqueue_init()

int kqueue_init ( )
extern
Here is the caller graph for this function:

◆ kqueue_wait()

int kqueue_wait ( struct ctx * ctx_p,
struct indexes * indexes_p,
struct timeval * tv_p )
extern

Definition at line 532 of file mon_kqueue.c.

Here is the caller graph for this function: