silverbuddy
|
46d8b0a039
|
Handle the case when /sys/class/tty/ entries are not symlinks.
For example:
$ uname -a
Linux RT-N66U 2.6.22.19 #1 Thu Feb 12 20:33:36 CST 2015 mips GNU/Linux
$ ls -lF /sys/class/tty/
drwxr-xr-x 2 foo root 0 May 18 18:12 ttyACM0/
$ ls -lF /sys/class/tty/ttyACM0/
-r--r--r-- 1 foo root 4096 May 18 18:12 dev
lrwxrwxrwx 1 foo root 0 May 18 18:12 device -> ../../../devices/pci0000:00/0000:00:04.1/usb1/1-1/1-1.1/1-1.1:1.0/
lrwxrwxrwx 1 foo root 0 May 18 18:12 subsystem -> ../../../class/tty/
-rw-r--r-- 1 foo root 4096 May 18 18:12 uevent
|
2015-05-27 11:09:26 +02:00 |
|
Uwe Hermann
|
dc422c04af
|
Various cosmetic and consistency fixes.
|
2015-03-26 23:57:56 +01:00 |
|
Uwe Hermann
|
7c1101dc08
|
Fix misleading snprintf() arguments.
|
2015-02-20 18:57:08 +01:00 |
|
Uffe Jakobsen
|
ea17bfca3d
|
If present, add usb_serial to description for better identification
|
2015-02-20 18:54:12 +01:00 |
|
Aurelien Jacobs
|
653cef3ab1
|
linux: remove readlinkat() dependency
|
2014-09-04 20:13:55 +02:00 |
|
Martin Ling
|
0666ccc7ca
|
linux: Fix warning by marking vid, pid variables unsigned.
|
2014-08-24 14:08:00 +01:00 |
|
Martin Ling
|
7890cef6cf
|
Revise debug macros to work in strict C99.
|
2014-08-24 14:06:21 +01:00 |
|
Marcus Comstedt
|
12056e2f75
|
Avoid use of struct serial_struct on systems which don't have it (Android)
This fixes bug #376.
|
2014-07-06 14:16:56 +02:00 |
|
Marcus Comstedt
|
5bd33b7c8b
|
Don't use readlinkat if it does not exist
This fixes bug #377.
|
2014-07-06 14:15:46 +02:00 |
|
Aurelien Jacobs
|
970f279ae4
|
Introduce SP_API/SP_PRIV to mark visibility of functions.
|
2014-07-02 14:43:32 +02:00 |
|
Aurelien Jacobs
|
48a4076f69
|
Move list_ports() implementations to OS-specific files.
|
2014-06-14 01:28:49 +02:00 |
|
Martin Ling
|
e33dcf90a0
|
Tidy up and split most OS-specific code to separate files.
|
2014-06-11 15:10:29 +01:00 |
|