|
|
@ -31,6 +31,7 @@ |
|
|
|
#define red(str) (ANSI_COLOR_RED str ANSI_COLOR_RESET) |
|
|
|
#define red(str) (ANSI_COLOR_RED str ANSI_COLOR_RESET) |
|
|
|
#define test_bit(yalv, abs_b) ((((char *)abs_b)[yalv/8] & (1<<yalv%8)) > 0) |
|
|
|
#define test_bit(yalv, abs_b) ((((char *)abs_b)[yalv/8] & (1<<yalv%8)) > 0) |
|
|
|
#define die(str) {perror(red(str)); exit(errno);} |
|
|
|
#define die(str) {perror(red(str)); exit(errno);} |
|
|
|
|
|
|
|
#define array_size(val) (val ? sizeof(val)/sizeof(a[0]) : 0) |
|
|
|
|
|
|
|
|
|
|
|
#define EVENT_SIZE (sizeof(struct inotify_event)) |
|
|
|
#define EVENT_SIZE (sizeof(struct inotify_event)) |
|
|
|
#define EVENT_BUF_LEN (1024*(EVENT_SIZE+16)) |
|
|
|
#define EVENT_BUF_LEN (1024*(EVENT_SIZE+16)) |
|
|
@ -283,7 +284,7 @@ int main (void) |
|
|
|
putchar('\n'); |
|
|
|
putchar('\n'); |
|
|
|
|
|
|
|
|
|
|
|
if (key_buffer_compare(&pb, &comb1)) |
|
|
|
if (key_buffer_compare(&pb, &comb1)) |
|
|
|
exec_command((char *)"/home/ale/hello"); |
|
|
|
exec_command((char *)"sh -e $HOME/hello"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|