>From: [EMAIL PROTECTED] (Bill Davidsen)
>Joerg Schilling <[EMAIL PROTECTED]> wrote:
>> The language C does not have any predefined function.
>> Do you get a printf.o ?
> I was GE's rep to the first X3J11 committee for several years, and
>unless the standard has changed something, implementations are allowed
>to make the various standard functions something other than externally
>compiled. In any case, it's always been a matter of dubious portability
Right, but as the C language does not know special functions.
If a compiler does so, it must know how to correctly handle functions
that havethe same name as internal ones.
Any program must also follow the ANSI linking rules.
If I define a function regardless of the name, the function that is
first found by the linker must be used. Of course, if this function
has the name of a function from the C-library ist must behave as
conforming to the standard or the program will fail.
>to define your own version of system functions, and I believe that the
>standard has (had?) language saying that if you provide your own
>procedure for any part of the functions in a system header file, you
>have to provide tham all, because they are allowed to interract as long
>as the defined functions work as in the standard.
This is not required. In order to allow it to work in shared libraries
too, week symbols have been invented. I don't know by whom but I first
found them in Sun (Solaris Libc) sources.
J�rg
EMail:[EMAIL PROTECTED] (home) J�rg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni) If you don't have iso-8859-1
[EMAIL PROTECTED] (work) chars I am J"org Schilling
URL: http://www.fokus.gmd.de/usr/schilling ftp://ftp.fokus.gmd.de/pub/unix
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]