View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#42
Originally Posted by rm_you View Post
an strace is here: http://pastebin.ca/850430
I'm not sure how to interpret that... I have done some strace interpretation for an Operating Systems class once, but nothing this complex.
Here is my try from 770, your strace build seems to not to resolve syscalls etc which makes it a bit more hard
Code:
Nokia-770-36:/# strace /usr/sbin/dsmetest -l 1
execve("/usr/sbin/dsmetest", ["/usr/sbin/dsmetest", "-l", "1"], [/* 47 vars */]) = 0
..
..
..
brk(0)                                  = 0x12000
brk(0x13000)                            = 0x13000
socket(PF_FILE, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_FILE, path="/tmp/dsmesock"}, 112) = 0
fcntl(3, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
write(3, "\f\0\0\0\206\2\0\0\1\0\0\0", 12) = 12
write(1, "brightness reqyest sent!\n", 25brightness reqyest sent!
) = 25
close(3)                                = 0
_exit(0)                                = ?
So basically it is the
Code:
write(3, "\f\0\0\0\206\2\0\0\1\0\0\0", 12) = 12
line. When starting with -l 2 it becomes
Code:
write(3, "\f\0\0\0\206\2\0\0\2\0\0\0", 12) = 12
or when using strace -x (print in hex) it becomes
Code:
write(3, "\x0c\x00\x00\x00\x86\x02\x00\x00\x02\x00\x00\x00", 12) = 12
In your output the line is
write(3, "\f\0\0\0\211\2\0\0d\0\0\0", 12) = 12
ASCII code for 'd' is 100 so it makes some sense. The beginning is perhaps some version handshake or structure size or something.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2008-01-11 at 09:07.
 

The Following User Says Thank You to fanoush For This Useful Post: