Lines Matching defs:path
7 * of listeners. Each packet contains unix path of modified filesystem element,
162 static ssize_t build_fce_packet( struct fce_packet *packet, char *path, int mode, uint32_t event_id )
172 pathlen = strlen(path) + 1; /* include string terminator */
187 strncpy(packet->data + sizeof(tm_used), path, pathlen);
193 strncpy(packet->data, path, pathlen);
232 static void send_fce_event( char *path, int mode )
244 ssize_t data_len = build_fce_packet( &packet, path, mode, ++event_id );
286 data_len = build_fce_packet( &packet, path, mode, event_id );
418 int fce_register_delete_file( struct path *path )
422 if (path == NULL)
428 ret = register_fce( path->u_name, FALSE, FCE_FILE_DELETE );
447 int fce_register_new_dir( struct path *path )
451 if (path == NULL)
457 ret = register_fce( path->u_name, TRUE, FCE_DIR_CREATE );
463 int fce_register_new_file( struct path *path )
467 if (path == NULL)
473 ret = register_fce( path->u_name, FALSE, FCE_FILE_CREATE );
588 char *path = getcwd( pathbuff, sizeof(pathbuff) );
595 fprintf(stdout, "%s: [ -p Port -h Listener1 [ -h Listener2 ...] -P path -s Delay_between_events_in_us -e event_code -d Duration ]\n", argv[0]);
611 path = strdup(optarg);
642 register_fce( path, 0, event_code );