Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: dakoder on June 29, 2010, 07:00:50 AM

Title: is there a detailed list of tables and structures for the linux system call 0x66
Post by: dakoder on June 29, 2010, 07:00:50 AM
I have spent hours searching for the data structures for the kernel system call 0x66 (102)  sockets regarding TCP/IP networking, I have used this for the X11 graphics (very nice) but I need some help here.

eax = 102  (0x66)   the call

ebx =   the sub function 1 to 17
1    SYS_SOCKET     
2    SYS_BIND       
3    SYS_CONNECT     
4    SYS_LISTEN     
5    SYS_ACCEPT     
6    SYS_GETSOCKNAME
7    SYS_GETPEERNAME
8    SYS_SOCKETPAIR 
9    SYS_SEND       
10   SYS_RECV       
11   SYS_SENDTO     
12   SYS_RECVFROM   
13   SYS_SHUTDOWN   
14   SYS_SETSOCKOPT 
15   SYS_GETSOCKOPT 
16   SYS_SENDMSG     
17   SYS_RECVMSG     


ecx  points to a data structure (stack or RAM)  it is this structure I need.
It is not available in any of the system call tables or in any of the MAN / INFO  pages.
Thanks.



Graham






Title: Re: is there a detailed list of tables and structures for the linux system call 0x66
Post by: Frank on June 29, 2010, 08:39:37 AM
The Linux system call reference (http://sourceforge.net/projects/lscr/) project at Sourceforge has relevant information (in the help files: "Miscellaneous" => "sys_socketcall").
Title: Re: is there a detailed list of tables and structures for the linux system call 0x66
Post by: dakoder on June 29, 2010, 10:36:23 AM
Well I gues the answer to my question is   YES!!!   YES!!!  OMG    YES!!!   
thank you very much for that, it has exactly what I am looking for and more.

Graham