VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
vcom_inotf.c File Reference
#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)
 

Macro Definition Documentation

◆ CMDBUF_LEN

#define CMDBUF_LEN   512

◆ DEFAULT_MSGLEN

#define DEFAULT_MSGLEN   64

◆ EVENT_BUF_LEN

#define EVENT_BUF_LEN   (1024 * (EVENT_SIZE + 16))

◆ EVENT_SIZE

#define EVENT_SIZE   (sizeof(struct inotify_event))

◆ FPATH_LEN

#define FPATH_LEN   256

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

◆ parse_ievent()

int parse_ievent ( char * buf,
int * i,
const char * path )

◆ usage()

void usage ( char * cmd)