|
VCOM Linux Driver
Advantech Inc.
|
#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <string.h>#include <sys/inotify.h>Macros | |
| #define | EVENT_SIZE (sizeof(struct inotify_event)) |
| #define | EVENT_BUF_LEN (1024 * (EVENT_SIZE + 16)) |
| #define | DEFAULT_MSGLEN 64 |
| #define | FPATH_LEN 256 |
| #define | CMDBUF_LEN 512 |
Functions | |
| int | parse_ievent (char *buf, int *i, const char *path) |
| void | usage (char *cmd) |
| int | main (int argc, char **argv) |
| #define CMDBUF_LEN 512 |
| #define DEFAULT_MSGLEN 64 |
| #define EVENT_BUF_LEN (1024 * (EVENT_SIZE + 16)) |
| #define EVENT_SIZE (sizeof(struct inotify_event)) |
| #define FPATH_LEN 256 |
| int main | ( | int | argc, |
| char ** | argv ) |
| int parse_ievent | ( | char * | buf, |
| int * | i, | ||
| const char * | path ) |
| void usage | ( | char * | cmd | ) |