Searched refs:device_names (Results 1 – 2 of 2) sorted by relevance
16 static char **device_names; variable63 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); in open_device()68 device_names = new_device_names; in open_device()71 device_names[nfds] = strdup(device); in open_device()81 if(strcmp(device_names[i], device) == 0) { in close_device()83 free(device_names[i]); in close_device()84 memmove(device_names + i, device_names + i + 1, sizeof(device_names[0]) * count); in close_device()
17 static char **device_names; variable344 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); in open_device()349 device_names = new_device_names; in open_device()381 device_names[nfds] = strdup(device); in open_device()391 if(strcmp(device_names[i], device) == 0) { in close_device()395 free(device_names[i]); in close_device()396 memmove(device_names + i, device_names + i + 1, sizeof(device_names[0]) * count); in close_device()649 printf("%s: ", device_names[i]); in getevent_main()