[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Help please!!
- To: linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx
- Subject: Re: Help please!!
- From: Syed Khader Vali <sid@xxxxxxxxxxxxx>
- Date: 15 Mar 2000 13:37:17 +0530
- Copyright: Copyright 2000 Syed Khader Vali - All Rights Reserved
- Disclaimer: Not speaking for anyone in any way, shape, or form.
- In-reply-to: "Satheesh Kumar. N.K"'s message of "Tue, 14 Mar 2000 09:50:47 +0530"
- Operating-system: Turing OS XCVII
- Organization: Sid Carter Inc.
- Reply-to: sid@xxxxxxxxxxxxx
- Url: http://www.sidcarter.com/
>>>>> On Tue, 14 Mar 2000 09:50:47 +0530, "Satheesh Kumar. N.K" <nksk@xxxxxxxxxxxx> said:
Satheesh> So, when main returns to libc, libc exit()'s with this
Satheesh> return value. If main itself calls exit(x), then it
Satheesh> never returns to libc and the exit code is x.
I dunno whether this is relevant, but I came across this in one of
steven's books.
when the /main/ function either returns or exits ( by calling the
exit function provided by C start-up function is also invoked. A
function can return either explicitly by " falling off the end"
(i.e. by reaching the terminating right brace that ends a function),
or xplicitly by executing a return statement. The /exit/ function
typically flushes the standard I/O buffers and then terminates the
process by calling te system's _exit system call.
- Khader
--
Linux poses a real challenge for those with a taste for late-night
hacking (and/or conversations with God).
Syed Khader Vali (Siddiq) sid@xxxxxxxxxxxxx
Debian GNU/Linux (Woody) http://www.sidcarter.com