|
clsync
|
#include "common.h"#include <glib.h>#include "error.h"#include "sync.h"#include "indexes.h"#include "fileutils.h"#include "calc.h"#include "glibex.h"#include "mon_kqueue.h"
Go to the source code of this file.
Data Structures | |
| struct | monobj |
| struct | kqueue_data |
| struct | recognize_event_return |
Typedefs | |
| typedef struct monobj | monobj_t |
Enumerations | |
| enum | kqueue_status { KQUEUE_STATUS_UNKNOWN , KQUEUE_STATUS_RUNNING , KQUEUE_STATUS_DEINIT , KQUEUE_STATUS_DEAD } |
Functions | |
| static uint32_t | recognize_event (uint32_t event, int is_dir) |
| int | kqueue_sync (ctx_t *ctx_p, indexes_t *indexes_p, struct kevent *ev_p, monobj_t *obj_p) |
| int | kqueue_unmark (ctx_t *ctx_p, monobj_t *obj_p) |
| void | unmarkchild (gpointer _obj_p) |
| gboolean | unmarkchild_for_foreach (gpointer _obj_p, gpointer _value, gpointer _ctx_p) |
| void | monobj_free (void *monobj_p) |
| static gint | monobj_filecmp (gconstpointer _a, gconstpointer _b, gpointer _ctx_p) |
| static int | monobj_fdcmp (gconstpointer a, gconstpointer b, gpointer _ctx_p) |
| int | kqueue_init (ctx_t *_ctx_p) |
| int | kqueue_mark (ctx_t *ctx_p, monobj_t *obj_p) |
| void | child_free (monobj_t *node) |
| monobj_t * | kqueue_start_watch (ctx_t *ctx_p, ino_t inode, dev_t device, int dir_fd, const char *const fname, size_t name_len, unsigned char type) |
| monobj_t * | kqueue_add_watch_direntry (ctx_t *ctx_p, indexes_t *indexes_p, struct dirent *entry, monobj_t *dir_obj_p) |
| monobj_t * | kqueue_add_watch_path (ctx_t *ctx_p, indexes_t *indexes_p, const char *const path) |
| int | kqueue_add_watch_dir (ctx_t *ctx_p, indexes_t *indexes_p, const char *const accpath) |
| int | kqueue_wait (ctx_t *ctx_p, struct indexes *indexes_p, struct timeval *tv_p) |
| char * | kqueue_getpath (ctx_t *ctx_p, indexes_t *indexes_p, monobj_t *obj_p) |
| static int | _kqueue_handle_oneevent_dircontent_item (struct kqueue_data *dat, ctx_t *ctx_p, indexes_t *indexes_p, monobj_t *dir_obj_p, struct dirent *entry, void *children_notfound) |
| void | monobj_freedup (gpointer _obj_p) |
| gpointer | monobj_dup (gpointer _obj_p) |
| gboolean | unmarkdupchild (gpointer _obj_p, gpointer value, gpointer _ctx_p) |
| int | _kqueue_handle_oneevent_dircontent (ctx_t *ctx_p, indexes_t *indexes_p, monobj_t *obj_p) |
| int | kqueue_handle_oneevent (ctx_t *ctx_p, indexes_t *indexes_p, struct kevent *ev_p, monobj_t *obj_p) |
| int | kqueue_handle (ctx_t *ctx_p, indexes_t *indexes_p) |
| int | kqueue_deinit (ctx_t *ctx_p) |
Variables | |
| enum kqueue_status | kqueue_status = KQUEUE_STATUS_UNKNOWN |
| ctx_t * | ctx_p |
Definition at line 60 of file mon_kqueue.c.
| enum kqueue_status |
| Enumerator | |
|---|---|
| KQUEUE_STATUS_UNKNOWN | |
| KQUEUE_STATUS_RUNNING | |
| KQUEUE_STATUS_DEINIT | |
| KQUEUE_STATUS_DEAD | |
Definition at line 32 of file mon_kqueue.c.
Definition at line 701 of file mon_kqueue.c.


|
inlinestatic |
Definition at line 634 of file mon_kqueue.c.


| void child_free | ( | monobj_t * | node | ) |
Definition at line 491 of file mon_kqueue.c.


| monobj_t * kqueue_add_watch_direntry | ( | ctx_t * | ctx_p, |
| indexes_t * | indexes_p, | ||
| struct dirent * | entry, | ||
| monobj_t * | dir_obj_p ) |
Definition at line 383 of file mon_kqueue.c.


Definition at line 414 of file mon_kqueue.c.


| int kqueue_deinit | ( | ctx_t * | ctx_p | ) |
Definition at line 782 of file mon_kqueue.c.


| int kqueue_handle_oneevent | ( | ctx_t * | ctx_p, |
| indexes_t * | indexes_p, | ||
| struct kevent * | ev_p, | ||
| monobj_t * | obj_p ) |
Definition at line 752 of file mon_kqueue.c.


| int kqueue_init | ( | ctx_t * | _ctx_p | ) |
| monobj_t * kqueue_start_watch | ( | ctx_t * | ctx_p, |
| ino_t | inode, | ||
| dev_t | device, | ||
| int | dir_fd, | ||
| const char *const | fname, | ||
| size_t | name_len, | ||
| unsigned char | type ) |
Definition at line 325 of file mon_kqueue.c.


|
extern |
Definition at line 591 of file mon_kqueue.c.


| gpointer monobj_dup | ( | gpointer | _obj_p | ) |
|
static |
|
static |
| void monobj_free | ( | void * | monobj_p | ) |
Definition at line 131 of file mon_kqueue.c.


| void monobj_freedup | ( | gpointer | _obj_p | ) |
|
inlinestatic |
| void unmarkchild | ( | gpointer | _obj_p | ) |
Definition at line 113 of file mon_kqueue.c.


| gboolean unmarkchild_for_foreach | ( | gpointer | _obj_p, |
| gpointer | _value, | ||
| gpointer | _ctx_p ) |
Definition at line 125 of file mon_kqueue.c.


| gboolean unmarkdupchild | ( | gpointer | _obj_p, |
| gpointer | value, | ||
| gpointer | _ctx_p ) |
Definition at line 692 of file mon_kqueue.c.


| ctx_t* ctx_p |
Definition at line 85 of file mon_kqueue.c.
Definition at line 38 of file mon_kqueue.c.