Searched refs:device_names (Results 1 – 2 of 2) sorted by relevance
32 static char** device_names; variable76 device_names, sizeof(device_names[0]) * (nfds + 1))); in open_device()81 device_names = new_device_names; in open_device()84 device_names[nfds] = strdup(device); in open_device()93 if (strcmp(device_names[i], device) == 0) { in close_device()95 free(device_names[i]); in close_device()96 memmove(device_names + i, device_names + i + 1, sizeof(device_names[0]) * count); in close_device()
36 static char **device_names; variable369 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); in open_device()374 device_names = new_device_names; in open_device()406 device_names[nfds] = strdup(device); in open_device()416 if(strcmp(device_names[i], device) == 0) { in close_device()420 free(device_names[i]); in close_device()421 memmove(device_names + i, device_names + i + 1, sizeof(device_names[0]) * count); in close_device()673 printf("%s: ", device_names[i]); in getevent_main()