flat assembler
Message board for the users of flat assembler.

Index > Unix > api reference calls in freebsd

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 12736
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 06 Feb 2009, 07:02
while searching for reference calls or freebsd api... don't know how and what to call it.

it seems they are listed in /usr/src/sys/kern/syscalls.master

but, is there complete reference for all these calls, (like the MSDN style) available for programmer??

i couldn't find any of such reference.
Post 06 Feb 2009, 07:02
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel 06 Feb 2009, 09:43
In your syscalls.master, the column at the left contains the syscall numbers (that go into eax). Then, you push every parameter in the column at the right, from the right to the left.
Don't forget to clean the stack upon return.
In general, return values go into eax and the CF is cleared upon success and set upon failure.

Other than that, why don't you check your manual (section 2 for system calls)?
e.g. kill: http://www.freebsd.org/cgi/man.cgi?query=kill&apropos=0&sektion=2&manpath=FreeBSD+7.1-RELEASE&format=html
Post 06 Feb 2009, 09:43
View user's profile Send private message Reply with quote
TheRaven



Joined: 22 Apr 2008
Posts: 91
Location: U.S.A.
TheRaven 28 Feb 2015, 08:09
Generally, there are developer documents for the various BSD derivatives. FreeBSD has a developers handbook in addition to numerous other documents. Specific BSD forums exist for users with mailing lists usually serving developers, but could be utilized interchangeably in order to find relevant data on the platform you wish to develop in. There are also C and C++ forums as well as O.S. specialty sites that may provide guidance and/or direction to other more pertinent resources. First and foremost click on ManOfSteel's link above then select the appropriate O.S. version and read on. Man pages are API documentation, but without all of the pretty frames on the top and left sides for headings and navigation.
Post 28 Feb 2015, 08:09
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.