Lines Matching defs:gDeviceNames
42 char *gDeviceNames[kNumTTYs * 2 + 3];
70 memset(gDeviceNames, 0, sizeof(gDeviceNames));
90 gDeviceNames[i] = strdup(buffer);
93 gDeviceNames[i + kNumTTYs] = strdup(buffer);
98 if (!gDeviceNames[i] || !gDeviceNames[i + kNumTTYs]) {
104 gDeviceNames[2 * kNumTTYs] = (char *)"ptmx";
105 gDeviceNames[2 * kNumTTYs + 1] = (char *)"tty";
117 free(gDeviceNames[i]);
129 return const_cast<const char **>(gDeviceNames);
138 for (uint32 i = 0; gDeviceNames[i] != NULL; i++) {
139 if (!strcmp(name, gDeviceNames[i])) {
409 gDeviceNames[kNumTTYs + ptyIndex]);