Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

location of __open, __read, etc.

75 views
Skip to first unread message

Hul Tytus

unread,
Aug 26, 2012, 4:16:09 PM8/26/12
to
comp.os.minix
location of __open, __read, etc.

In /usr/src/lib/syscall of minix2 the files open.s, read.c, etc show
the following form:

_open:
jmp __open

with __open declared as external. Anyone know where __open is located?

Hul

Giovanni

unread,
Aug 27, 2012, 3:16:55 AM8/27/12
to
Most of the source for functions you mention are located in
/usr/src/lib/posix/

Remember that the compiler (or linker, I don't remember) puts a '_' in
front of symbols declared external.

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
< http://giovanni.homelinux.net/ >

d...@kbrx.com

unread,
Aug 27, 2012, 6:12:54 PM8/27/12
to
Thanks for mentioning the adding of the '_' charactor - that brings a
little more clarity to viewing the source code.
Do you know where the code for recieving the SYS_VECTOR (34 decimal, I
believe) interupt is located? mps386.s holds the code for the hardware
interupts but not the "traps" or software interupts.

Hul

Giovanni

unread,
Aug 28, 2012, 4:05:18 AM8/28/12
to
On 08/28/2012 12:12 AM, d...@kbrx.com wrote:
> Thanks for mentioning the adding of the '_' charactor - that brings
> a little more clarity to viewing the source code. Do you know where
> the code for recieving the SYS_VECTOR (34 decimal, I believe)
> interupt is located? mps386.s holds the code for the hardware
> interupts but not the "traps" or software interupts.

I don't know the details for Minix 3, so you better ask questions on
the google group mailing list < min...@googlegroups.com >.
0 new messages