src/main/c/Posix/PosixHelperFunctions.c [1305:1317]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void searchForComPorts(serialPortVector* comPorts) { // Open the FreeBSD dev directory DIR *directoryIterator = opendir("/dev/"); if (directoryIterator) { // Read all files in the current directory struct dirent *directoryEntry = readdir(directoryIterator); while (directoryEntry) { // See if the file names a potential serial port if ((strlen(directoryEntry->d_name) >= 4) && (directoryEntry->d_name[0] != '.') && (((directoryEntry->d_name[0] == 't') && (directoryEntry->d_name[1] == 't') && (directoryEntry->d_name[2] == 'y') && (directoryEntry->d_name[3] != 'v')) || - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - src/main/c/Posix/PosixHelperFunctions.c [1504:1516]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void searchForComPorts(serialPortVector* comPorts) { // Open the FreeBSD dev directory DIR *directoryIterator = opendir("/dev/"); if (directoryIterator) { // Read all files in the current directory struct dirent *directoryEntry = readdir(directoryIterator); while (directoryEntry) { // See if the file names a potential serial port if ((strlen(directoryEntry->d_name) >= 4) && (directoryEntry->d_name[0] != '.') && (((directoryEntry->d_name[0] == 't') && (directoryEntry->d_name[1] == 't') && (directoryEntry->d_name[2] == 'y') && (directoryEntry->d_name[3] != 'v')) || - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -