In message <[EMAIL PROTECTED]>, David Malone writes:
>I've just noticed that usr.bin/ftp/ftp_var.h defines a large
>selection of global variables, and then this header file is included
>in multiple C source files.
>
>I thought this should lead to one copy of the global varible per
>source file, and then a warning or error at link time due to symbols
>being defined multiple times. This doesn't seem to be the case with
>the toolchain - you seem to get one copy of each variable for the
>final linked unit.
This is called "common" variables. They're documented with that
behaviour in the old and new testament.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message