Where is errno defined? - Minix

This is a discussion on Where is errno defined? - Minix ; Hi everybody, I'm almost done with building Minix kernel on Linux - right now I just have three link errors. errno is one of them. Could someone please tell me where it is defined? Regards, Kashyap Just for the thrills ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Where is errno defined?

  1. Where is errno defined?

    Hi everybody,
    I'm almost done with building Minix kernel on Linux - right now I just
    have three link errors. errno is one of them. Could someone please
    tell me where it is defined?
    Regards,
    Kashyap

    Just for the thrills - here's what it looks like

    kashyap@opensuse:~/googleproject/powerpack/src/kernel> make
    ld boot.o start.o table.o protect.o mpx386.o klib386.o i8259.o proc.o
    exception.o utility.o clock.o system.o main.o ../lib/i386/misc/
    io_inb.o ../lib/i386/misc/io_inl.o ../lib/i386/misc/io_intr.o ../lib/
    i386/misc/io_inw.o ../lib/i386/misc/io_outb.o ../lib/i386/misc/
    io_outl.o ../lib/i386/misc/io_outw.o system/do_abort.o system/
    do_copy.o system/do_devio.o system/do_endksig.o system/do_exec.o
    system/do_exit.o system/do_fork.o system/do_getinfo.o system/
    do_getksig.o system/do_int86.o system/do_iopenable.o system/
    do_irqctl.o system/do_kill.o system/do_memset.o system/do_newmap.o
    system/do_nice.o system/do_privctl.o system/do_sdevio.o system/
    do_segctl.o system/do_setalarm.o system/do_sigreturn.o system/
    do_sigsend.o system/do_times.o system/do_trace.o system/do_umap.o
    system/do_unused.o system/do_vcopy.o system/do_vdevio.o ../lib/i386/
    string/memcpy.o ../lib/i386/string/_memmove.o ../lib/timers/
    tmrs_clr.o ../lib/timers/tmrs_exp.o ../lib/timers/tmrs_set.o ../lib/
    posix/_sigset.o -e start -Ttext=0x100000 -o ../../staging/iso/kernel
    clock.o: In function `clock_task':
    clock.c.text+0x1a): undefined reference to `_receive'
    system.o: In function `sys_task':
    system.c.text+0x1b): undefined reference to `_receive'
    main.o: In function `main':
    main.c.text+0x136): undefined reference to `strncpy'
    .../lib/posix/_sigset.o: In function `sigaddset':
    _sigset.c.text+0x10): undefined reference to `errno'
    .../lib/posix/_sigset.o: In function `sigdelset':
    _sigset.c.text+0x53): undefined reference to `errno'
    .../lib/posix/_sigset.o: In function `sigismember':
    _sigset.c.text+0xbe): undefined reference to `errno'
    make: *** [all] Error 1
    kashyap@opensuse:~/googleproject/powerpack/src/kernel>

  2. Re: Where is errno defined?

    kashyap wrote:
    > Hi everybody,
    > I'm almost done with building Minix kernel on Linux - right now I just
    > have three link errors. errno is one of them. Could someone please
    > tell me where it is defined?


    http://groups.google.com/group/comp....107fd4ce490ed5

    ....but it's in lib/other/errno.c

    Regards,

    Jens

    --
    Jens de Smit
    Student Computer Science | Vrije Universiteit Amsterdam
    jfdsmit@few.vu.nl | http://www.few.vu.nl/~jfdsmit
    "[In the end, people] get furious at IT that the goddamn magic isn't working"
    -- Stewart Dean

  3. Re: Where is errno defined?

    On Nov 5, 9:59*pm, "J.F. de Smit" wrote:
    > kashyap wrote:
    > > Hi everybody,
    > > I'm almost done with building Minix kernel on Linux - right now I just
    > > have three link errors. errno is one of them. Could someone please
    > > tell me where it is defined?

    >
    > http://groups.google.com/group/comp....ead/thread/290...
    >
    > ...but it's in lib/other/errno.c
    >
    > Regards,
    >
    > Jens
    >
    > --
    > Jens de Smit
    > Student Computer Science | Vrije Universiteit Amsterdam
    > jfds...@few.vu.nl |http://www.few.vu.nl/~jfdsmit
    > "[In the end, people] get furious at IT that the goddamn magic isn't working"
    > -- Stewart Dean


    Thanks Jens!

+ Reply to Thread