[5214] in Athena Bugs
Kerberos 4: setenv()
daemon@ATHENA.MIT.EDU (Richard Basch)
Tue Jun 19 14:14:13 1990
Date: Tue, 19 Jun 90 14:13:56 -0400
To: bugs@ATHENA.MIT.EDU, bug-kerberos@MIT.EDU
From: Richard Basch <probe@MIT.EDU>
setenv() and getenv() should be declared in separate files. Many
systems do not have setenv() so a lot of applications define their own
setenv() [AFS has such applications]. However, since most systems have
getenv() many programs do not have their own version of that. Thus,
they rely on linking it in from the C library. A kerberos application
that defines one and not the other will link in the getenv() in the
Kerberos library and will get a multiply defined error for setenv().
BSD defines them separately so that there isn't a problem. I don't
recall if setenv() was in BSD 4.3 or whether we added it; I remember a
time when getenv() was in libc, but setenv() wasn't.
Essentially, Kerberos should follow the example of BSD and define them
in separate files.
-Richard