Re: Syscall interface




"Thomas Worthington" <spamtrap@xxxxxxxxxx> wrote in message
news:op.s8jbbmz1e6av7m@xxxxxxxxxxxx
Sorry for forgetting to mention it was Linux.

Unfortunately the two links you gave are many years out of date now and
deal with Linux 1.2 and 2.2 which only included the old int 0x80 method.

Thanks anyway.

TWW


Well, I'm interested in the syscall interface, but I didn't feel like
downloading 51Mb of Linux 2.6.16 to find them. So I went looking elsewhere,
and found 'strace'. The strace package has files which list the syscalls by
name (not the register args). There appears to be a master syscall file
called 'syscallent.h' and also additional 'syscallent.h' for each
architecture that strace supports. The names of the calls in the master
'syscallent.h', dated 2006/01/12, correspond to the syscalls on the first
link I gave. The sub architecture 'x86_64' 'syscallent.h' has a very
different sequence of syscalls.

http://www.liacs.nl/~wichert/strace/


HTH,

Rod Pemberton


.



Relevant Pages

  • Re: Syscall interface
    ... There have been various hints over the years that 0x80 is no longer the prefered method, for performance reasons, but I've not seen any documentation on what assembly language programmers need to do to access the "modern" entrypoint. ... The strace package has files which list the syscalls by ... The sub architecture 'x86_64' 'syscallent.h' has a very ...
    (comp.lang.asm.x86)
  • Re: HLA Linux syscalls and related stuff
    ... > syscalls, and what the HLA syscall wrappers do with those codes. ... > Outside of the linux directory, I found about 90 instances that test ...
    (alt.lang.asm)
  • Re: HLA Linux syscalls and related stuff
    ... >>I'm not 100% certain about how Linux handles the return codes from ... >>syscalls, and what the HLA syscall wrappers do with those codes. ... For a FreeBSD version, I can see two ...
    (alt.lang.asm)
  • Re: Kernel header files in applications and GPL issues
    ... > that works on Linux and has a license that you like, ... > complying with the LGPL. ... > userland programs for Linux which don't have to abide by the GPL. ... > fg> that doesnt use any syscalls ... ...
    (comp.os.linux.development.apps)
  • Re: mysql scaling questions
    ... same file which is running into exclusive locking in the kernel ... Isn't this common for software developed for Linux? ... Even if Linux magically has faster syscalls somehow, they are still not zero cost so avoiding huge numbers of unnecessary trips ... Also I believe glibc caches getpid() in libc (again that ...
    (freebsd-performance)