From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <13426df10902271442g48becc74hf3bf6cf1a83c1896@mail.gmail.com> References: <13426df10902271442g48becc74hf3bf6cf1a83c1896@mail.gmail.com> Date: Sat, 28 Feb 2009 00:39:20 +0100 Message-ID: <599f06db0902271539h6c1bd709xc49245fe2bab7d72@mail.gmail.com> From: Gorka Guardiola To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] new contest Topicbox-Message-UUID: aa074626-ead4-11e9-9d60-3106f5b1d025 On Fri, Feb 27, 2009 at 11:42 PM, ron minnich wrote: > > Beat that. > > ron > > nm shows that printf gets changed for puts, so after taking everything out: int main(int argc, char *argv[]) { printf(=A8hello darkness=A8); } //no includes... no defines, nothing I am paranoid about libc now gcc -c darkness darkness.c darkness.c: In function 'main': darkness.c:5: warning: incompatible implicit declaration of built-in function 'printf' wait, builtin?? nm darkness.o 00000000 T main U puts puts?. where did that come from hmm ah builtin... quoting some anonymous gcc developer you are not *allowed* to modify the C library functions unless you ask gcc for permission... gcc -fno-builtin gcc -please-let-me-write-my-function-please... --=20 - curiosity sKilled the cat