Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2018 14:16:16 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Vitalio D <v.dol_s@hotmail.com>
Cc:        freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org
Subject:   Re: where to find exit(int) function implementation
Message-ID:  <59cdf69e792d5c723fa919abac1d67b6@webmail.1blu.de>
In-Reply-To: <AM5PR0902MB19231F79EA283E2CE7B17310DC110@AM5PR0902MB1923.eurprd09.prod.outlook.com>
References:  <AM5PR0902MB19231F79EA283E2CE7B17310DC110@AM5PR0902MB1923.eurprd09.prod.outlook.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Am 10.01.2018 14:01, schrieb Vitalio D:
> Hello,
> 
> How and where void _exit(int) is implemented? I've started
> with exit(int) defined in exit.c un stdlib, but I've got stuck at
> unistd.h where void _exit(int) __dead2;
> After that I couldn't find anything by running
> find /usr/src -name "*.c" -exec grep " _exit(int" /dev/null {} \;

$ find /usr/src -name *.c | grep exit
/usr/src/sys/kern/kern_exit.c
/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_onexit.c
/usr/src/lib/libc/arm/aeabi/aeabi_atexit.c
/usr/src/lib/libc/stdlib/cxa_thread_atexit.c
/usr/src/lib/libc/stdlib/cxa_thread_atexit_impl.c
/usr/src/lib/libc/stdlib/exit.c
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/src/lib/libc/stdlib/atexit.c
/usr/src/lib/libc/stdlib/quick_exit.c
/usr/src/lib/libthr/thread/thr_exit.c
/usr/src/contrib/netbsd-tests/lib/libc/stdlib/h_atexit.c
/usr/src/contrib/netbsd-tests/lib/libc/stdlib/t_exit.c
/usr/src/contrib/netbsd-tests/lib/libpthread/h_atexit.c
/usr/src/contrib/netbsd-tests/lib/libpthread/h_exit.c
/usr/src/contrib/binutils/libiberty/atexit.c
/usr/src/contrib/binutils/libiberty/xatexit.c
/usr/src/contrib/binutils/libiberty/xexit.c
/usr/src/contrib/tcp_wrappers/clean_exit.c
/usr/src/contrib/xz/src/common/tuklib_exit.c
/usr/src/contrib/gcclibs/libiberty/atexit.c
/usr/src/contrib/gcclibs/libiberty/xatexit.c
/usr/src/contrib/gcclibs/libiberty/xexit.c
/usr/src/contrib/sendmail/libsm/strexit.c
/usr/src/contrib/sendmail/src/sysexits.c
/usr/src/contrib/diff/lib/exitfail.c
/usr/src/contrib/nvi/vi/v_zexit.c





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?59cdf69e792d5c723fa919abac1d67b6>