httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Richards <>
Subject Re: cvs commit: apache/src conf.h
Date Wed, 14 Aug 1996 08:48:55 GMT
Roy Fielding <> writes:

> fielding    96/08/13 22:08:08
>   Modified:    src       conf.h
>   Log:
>   Added prototype of gethostname for SOLARIS2.
>   Submitted by: Roy Fielding

Hmm, we've been through all this before and I'm still pretty convinced
that gethostname is not something we should use on Solaris 2. The
reason there's no prototype for it (Solaris 2 does have full
prototyping) is because it's part of the BSD compatibility library.

     Use of these interfaces should be restricted to only  appli-
     cations  written  on BSD platforms.  Use of these interfaces
     with any of the system libraries or in multi-thread applica-
     tions is unsupported.
You've hidden the warning now and this may well bite us when we have a
threaded server. My OS abstraction example explicity used hostname
resolution as an example, it should use uname were possible (more
widely available) and gethostname if not.

On of the things I'd like to get cracking on but 1.2 is effectively in
feature freeze indefinately.

  Paul Richards. Originative Solutions Ltd.  (Netcraft Ltd. contractor)
  Elsevier Science TIS online journal project.
  Phone: 0370 462071 (Mobile), +44 (0)1865 843155

View raw message