flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 14 Jun 2025, 23:47
https://manpages.debian.org/unstable/manpages-dev/ptrace.2.en.html#C_library/kernel_differences wrote: C library/kernel differences |
|||
![]() |
|
musl 15 Jun 2025, 08:53
revolution wrote:
oh, thanks it worked |
|||
![]() |
|
revolution 15 Jun 2025, 11:11
All of the syscall documentation is like that. It is all oriented towards the c-library interface, and occasionally contains notes to mention things that the c-library does to alter the values returned by the kernel.
The most common difference, that is never mentioned, is the return value from the c-library is either 0 or -1, and the error code can be read in the errno variable. But the kernel syscall returns the error code directly as a negative number between -4095 and -1, and doesn't have any errno variable to read. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.