For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > October 2007 > Re: How to make system calls having 64-bit arguments using 'int









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: How to make system calls having 64-bit arguments using 'int
Paul Pluzhnikov

2007-10-25, 4:26 am

Visa Inquirer <visa_desirer@yahoo.com> writes:

> If I need to make a system call with 6 arguments I can use the code:
> " push %esi\n"


Your question is necessarily OS-specific, yet you didn't give any
indication of which OS you are using.

The UserAgent gives a clue that you might be interested in something
other than Linux: "Mozilla/5.0 (X11; U; FreeBSD i386...".

I do not have access to a FreeBSD system, but on Linux one can
do this:


gdb -q /lib/libc.so.6
disas mmap64
disas ls64

I imagine this would also work on FreeBSD, and give you exactly
what you are looking for.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Paul Pluzhnikov

2007-10-25, 7:14 pm

Visa Inquirer <visa_desirer@yahoo.com> writes:

>
> I specified in subject: ".. in 32-bit Linux".


Indeed. But the subject is displayed in one place on the screen,
and the discussion happens in another. Which is why it is usually
a good idea to repeat *all* relevant details in the message body.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com