Subject: Re: exit() undefined in bootloader build
To: None <tech-kern@netbsd.org>
From: None <itojun@iijlab.net>
List: tech-kern
Date: 06/02/2002 08:17:04
>> As far as I know, main is ALWAYS required to return int in ANSI C. Has this 
>> changed with the latest drafts of the ISO and/or ANSI standards?
>Not in a "freestanding" environment, like this case. A bootloader is not
>just another program run from the shell. The kernel itself is another
>example.
>ANSI/ISO makes no promises on the signature of main in such environments.

	i have no partuclar preference, other than:
	- when we share *.h from multiple *.c, the function signature
	  must be unified - like sys/lib/libsa/stand.h.
	- if we unify, exit(int) should be more useful than exit(void),
	  as there may be some party would like to use return value for some
	  purpose.

	i386 falled into the former case, so i unfieid all i386 bootloader
	to exit(int).  for other ports, it is really up to portmasters.

itojun