<font size=2 face="sans-serif">/opt # find / -name usb.ids*</font>
<br><font size=2 face="sans-serif">/usr/share/usb.ids.gz</font>
<br><font size=2 face="sans-serif">/opt # </font>
<br><font size=2 face="sans-serif">/opt # strace ./us</font>
<br><font size=2 face="sans-serif">execve(&quot;./us&quot;, [&quot;./us&quot;],
[/* 9 vars */]) = 0</font>
<br><font size=2 face="sans-serif">mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40005000</font>
<br><font size=2 face="sans-serif">open(&quot;/lib/libusb-0.1.so.4&quot;,
O_RDONLY) &nbsp;= -1 ENOENT (No such file or directory)</font>
<br><font size=2 face="sans-serif">open(&quot;/lib/libusb-0.1.so.4&quot;,
O_RDONLY) &nbsp;= -1 ENOENT (No such file or directory)</font>
<br><font size=2 face="sans-serif">open(&quot;/usr/lib/libusb-0.1.so.4&quot;,
O_RDONLY) = 3</font>
<br><font size=2 face="sans-serif">fstat(3, {st_mode=S_IFREG|0755, st_size=28260,
...}) = 0</font>
<br><font size=2 face="sans-serif">mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000</font>
<br><font size=2 face="sans-serif">read(3, &quot;\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\354\21\0\0004\0\0\0\314&quot;...,
4096) = 4096</font>
<br><font size=2 face="sans-serif">mmap2(NULL, 61440, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4000e000</font>
<br><font size=2 face="sans-serif">mmap2(0x4000e000, 21548, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4000e000</font>
<br><font size=2 face="sans-serif">mmap2(0x4001b000, 6668, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x5) = 0x4001b000</font>
<br><font size=2 face="sans-serif">close(3) &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;= 0</font>
<br><font size=2 face="sans-serif">munmap(0x40006000, 4096) &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0</font>
<br><font size=2 face="sans-serif">open(&quot;/lib/libgcc_s.so.1&quot;,
O_RDONLY) &nbsp; &nbsp;= 3</font>
<br><font size=2 face="sans-serif">fstat(3, {st_mode=S_IFREG|0644, st_size=41632,
...}) = 0</font>
<br><font size=2 face="sans-serif">mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000</font>
<br><font size=2 face="sans-serif">read(3, &quot;\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\340\35\0\0004\0\0\0\10&quot;...,
4096) = 4096</font>
<br><font size=2 face="sans-serif">mmap2(NULL, 73728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4001d000</font>
<br><font size=2 face="sans-serif">mmap2(0x4001d000, 40008, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4001d000</font>
<br><font size=2 face="sans-serif">mmap2(0x4002e000, 3656, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x9) = 0x4002e000</font>
<br><font size=2 face="sans-serif">close(3) &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;= 0</font>
<br><font size=2 face="sans-serif">munmap(0x40006000, 4096) &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0</font>
<br><font size=2 face="sans-serif">open(&quot;/lib/libc.so.0&quot;, O_RDONLY)
&nbsp; &nbsp; &nbsp; &nbsp;= 3</font>
<br><font size=2 face="sans-serif">fstat(3, {st_mode=S_IFREG|0644, st_size=227711,
...}) = 0</font>
<br><font size=2 face="sans-serif">mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000</font>
<br><font size=2 face="sans-serif">read(3, &quot;\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0000{\0\0004\0\0\0\260&quot;...,
4096) = 4096</font>
<br><font size=2 face="sans-serif">mmap2(NULL, 278528, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4002f000</font>
<br><font size=2 face="sans-serif">mmap2(0x4002f000, 223610, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4002f000</font>
<br><font size=2 face="sans-serif">mmap2(0x4006d000, 4908, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x36) = 0x4006d000</font>
<br><font size=2 face="sans-serif">mmap2(0x4006f000, 13216, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4006f000</font>
<br><font size=2 face="sans-serif">close(3) &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;= 0</font>
<br><font size=2 face="sans-serif">munmap(0x40006000, 4096) &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0</font>
<br><font size=2 face="sans-serif">open(&quot;/lib/libgcc_s.so.1&quot;,
O_RDONLY) &nbsp; &nbsp;= 3</font>
<br><font size=2 face="sans-serif">fstat(3, {st_mode=S_IFREG|0644, st_size=41632,
...}) = 0</font>
<br><font size=2 face="sans-serif">close(3) &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;= 0</font>
<br><font size=2 face="sans-serif">open(&quot;/lib/libc.so.0&quot;, O_RDONLY)
&nbsp; &nbsp; &nbsp; &nbsp;= 3</font>
<br><font size=2 face="sans-serif">fstat(3, {st_mode=S_IFREG|0644, st_size=227711,
...}) = 0</font>
<br><font size=2 face="sans-serif">close(3) &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;= 0</font>
<br><font size=2 face="sans-serif">open(&quot;/lib/libc.so.0&quot;, O_RDONLY)
&nbsp; &nbsp; &nbsp; &nbsp;= 3</font>
<br><font size=2 face="sans-serif">fstat(3, {st_mode=S_IFREG|0644, st_size=227711,
...}) = 0</font>
<br><font size=2 face="sans-serif">close(3) &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;= 0</font>
<br><font size=2 face="sans-serif">stat(&quot;/lib/ld-uClibc.so.0&quot;,
{st_mode=S_IFREG|0755, st_size=21168, ...}) = 0</font>
<br><font size=2 face="sans-serif">mprotect(0x4006d000, 4096, PROT_READ)
&nbsp; = 0</font>
<br><font size=2 face="sans-serif">mprotect(0x4000c000, 4096, PROT_READ)
&nbsp; = 0</font>
<br><font size=2 face="sans-serif">ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS,
{B115200 opost isig icanon echo ...}) = 0</font>
<br><font size=2 face="sans-serif">ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS,
{B115200 opost isig icanon echo ...}) = 0</font>
<br><font size=2 face="sans-serif">open(&quot;/dev/bus/usb&quot;, O_RDONLY|O_NONBLOCK|O_DIRECTORY)
= -1 ENOENT (No such file or directory)</font>
<br><font size=2 face="sans-serif">open(&quot;/proc/bus/usb&quot;, O_RDONLY|O_NONBLOCK|O_DIRECTORY)
= 3</font>
<br><font size=2 face="sans-serif">fstat(3, {st_mode=S_IFDIR|0555, st_size=0,
...}) = 0</font>
<br><font size=2 face="sans-serif">fcntl(3, F_SETFD, FD_CLOEXEC) &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; = 0</font>
<br><font size=2 face="sans-serif">brk(0) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;= 0x11000</font>
<br><font size=2 face="sans-serif">brk(0x12000) &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=
0x12000</font>
<br><font size=2 face="sans-serif">getdents(3, /* 2 entries */, 984) &nbsp;
&nbsp; &nbsp; = 32</font>
<br><font size=2 face="sans-serif">getdents(3, /* 0 entries */, 984) &nbsp;
&nbsp; &nbsp; = 0</font>
<br><font size=2 face="sans-serif">close(3) &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;= 0</font>
<br><font size=2 face="sans-serif">open(&quot;&quot;, O_RDONLY|O_NONBLOCK|O_DIRECTORY)
= -1 ENOENT (No such file or directory)</font>
<br><font size=2 face="sans-serif">exit(0) </font>
<br>
<br><tt><font size=2>Julien Boibessot &lt;julien.boibessot@free.fr&gt;
wrote on 2010.01.05 09:26:14:<br>
&gt; &gt;<br>
&gt; &gt; When I test it with our very simple usb test program, nothing
happen.<br>
&gt; &gt; I try to &quot;test&quot; it with lsusb, nothing too.<br>
&gt; For lsusb: do you have &quot;/var/lib/misc/usb.ids&quot; or an equivalent
on your<br>
&gt; system ?<br>
&gt; For your usb test program you should probably give it a try with:<br>
&gt; &nbsp; &nbsp; # strace us<br>
&gt; <br>
&gt; Regards,<br>
&gt; Julien<br>
</font></tt>