int isSerialDevice (const char **identifier) { #ifdef ALLOW_DOS_DEVICE_NAMES if (isDosDevice(*identifier, "COM")) return 1; #endif /* ALLOW_DOS_DEVICE_NAMES */ if (isQualifiedDevice(identifier, "serial")) return 1; if (isUnqualifiedDevice(*identifier)) return 1; return 0; }
char * getDevicePath (const char *device) { const char *directory = getDeviceDirectory(); #ifdef ALLOW_DOS_DEVICE_NAMES if (isDosDevice(device, NULL)) { //directory = NULL; } #endif /* ALLOW_DOS_DEVICE_NAMES */ return makePath(directory, device); }