flat assembler
Message board for the users of flat assembler.
Index
> Linux > Syscall numbers for recv and send functions? |
Author |
|
rbprsp 08 Mar 2015, 00:58
I'm using https://filippo.io/linux-syscall-table/ Linux syscalls reference, but can't found recv and send functions here. What's syscall numbers for these functions?
|
|||
08 Mar 2015, 00:58 |
|
gens 08 Mar 2015, 04:07
rbprsp wrote: I'm using https://filippo.io/linux-syscall-table/ Linux syscalls reference, but can't found recv and send functions here. What's syscall numbers for these functions? recvfrom() and sendto() ? 64bit are right there 32bit are right here http://docs.cs.up.ac.za/programming/asm/derick_tut/syscalls.html bdw if you need 64bit ones, i got a .inc for it, just ask |
|||
08 Mar 2015, 04:07 |
|
gens 08 Mar 2015, 13:15
RIxRIpt wrote: gens, can recvfrom/sendto be used for TCP sockets (like recv/send)? Aren't they UDP only? it seems to be documented like that i didnt know that there is no syscall number for it, so i did a little digging "The recv() call is normally used only on a connected socket (see connect(2)) and is identical to recvfrom() with a NULL from parameter." so i guess it's recvfrom() with last two parameters being null (or just the "from", as then "fromlen" wouldnt be checked anyway) |
|||
08 Mar 2015, 13:15 |
|
rbprsp 08 Mar 2015, 22:28
Thanks, dear colleagues! I'll publish my syscall tests at this thread later.
Sorry for offtopic, but can anyone explain how to convert FAS symbols to gdb format? |
|||
08 Mar 2015, 22:28 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.