From owner-freebsd-hackers Thu Sep 5 01:56:01 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA02187 for hackers-outgoing; Thu, 5 Sep 1996 01:56:01 -0700 (PDT) Received: from zwei.siemens.at (zwei.siemens.at [193.81.246.12]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA02134 for ; Thu, 5 Sep 1996 01:55:43 -0700 (PDT) Received: from sol1.gud.siemens.co.at (root@firix [10.1.143.100]) by zwei.siemens.at (8.7.4/8.7.3) with SMTP id KAA26156 for ; Thu, 5 Sep 1996 10:53:30 +0200 (MET DST) Received: from ws2301.gud.siemens.co.at by sol1.gud.siemens.co.at with smtp (Smail3.1.28.1 #7 for ) id m0uyaBo-000220C; Thu, 5 Sep 96 10:53 MET DST Received: by ws2301.gud.siemens.co.at (1.37.109.16/1.37) id AA112943365; Thu, 5 Sep 1996 10:49:25 +0200 From: "Hr.Ladavac" Message-Id: <199609050849.AA112943365@ws2301.gud.siemens.co.at> Subject: Re: void main To: Leonard@pacbell.net (Leonard Chung) Date: Thu, 5 Sep 1996 10:49:25 +0200 (MESZ) Cc: j@uriah.heep.sax.de, hackers@freebsd.org In-Reply-To: <1.5.4.32.19960905055112.00682a34@pacbell.net> from "Leonard Chung" at Sep 4, 96 10:51:12 pm X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk E-mail message from Leonard Chung contained: > >> Um, so what exactly is wrong with void main, other than that you don't > >> happen to like it? > > > >It violates ANSI when used in a hosted environment. > > What's the difference between a freestanding and hosted environment? From > the wording, I think I have a general idea, but I'm not completely definite. As I understand it, the freestanding environment is no environment at all. Which means, no standard C library, no calling environment, process start via magic, nowhere to return, such things. Shortly, embedded applications. (and a UNIX kernel is an example thereof) Hosted environment is completely opposite. /Marino > > Leonard > -- > Leonard Chung > Support the Blue Ribbon Campaign for free speech online () > http://www.eff.org/blueribbon.html /\ > "Those who will not reason perish in the act. > Those who will not act, perish for that reason." - W. H. Auden > >