You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <Ma...@mch.sni.de> on 1997/10/29 17:43:39 UTC
Re: SunOS4 and stdio
Can someone with a SunOS4 please tell me where (in which #include file)
they hide the declarations for fclose() and fgetc()?
Are they not in <stdio.h>?
Puzzled,
Martin
--
| S I E M E N S | <Ma...@mch.sni.de> | Siemens Nixdorf
| ------------- | Voice: +49-89-636-46021 | Informationssysteme AG
| N I X D O R F | FAX: +49-89-636-44994 | 81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request
Re: SunOS4 and stdio
Posted by Martin Kraemer <Ma...@mch.sni.de>.
Thank you, Lars and Dirk-Willem!
I just wondered why the compile errors which Ben H noted still persisted
even after I explicitely included <stdio.h> in util.c line 65 -- but he
probably just had a version from before the patch.
Hope it (finally) works on SunOS with the current snapshots!
Martin
--
| S I E M E N S | <Ma...@mch.sni.de> | Siemens Nixdorf
| ------------- | Voice: +49-89-636-46021 | Informationssysteme AG
| N I X D O R F | FAX: +49-89-636-44994 | 81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request
Re: SunOS4 and stdio
Posted by Martin Kraemer <Ma...@mch.sni.de>.
On Wed, Oct 29, 1997 at 03:11:53PM -0400, Ben Hyde wrote:
>
> Oh, isn't this special. I find that SunOS 4.1.4 as fewer
> things in stdio.h than Dirk finds in verision 4.1.3.
Oh well!
> Martin needs is fclose and fgetc. - ben h.
We could rewrite it to use getc() (even though fgetc() was invented to be
the "function" version of the -possibly macro- getc()).
But that would leave fclose() still undefined.
Now I begin to realize why people swear about the "broken sun headers"... ;-)
The question is: should we add the missing prototypes to conf.h, risking
prototype mismatches with updated system headers?
Martin
--
| S I E M E N S | <Ma...@mch.sni.de> | Siemens Nixdorf
| ------------- | Voice: +49-89-636-46021 | Informationssysteme AG
| N I X D O R F | FAX: +49-89-636-44994 | 81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request
Re: SunOS4 and stdio
Posted by Dirk-Willem van Gulik <di...@elect6.jrc.it>.
On Wed, 29 Oct 1997, Martin Kraemer wrote:
> Can someone with a SunOS4 please tell me where (in which #include file)
> they hide the declarations for fclose() and fgetc()?
> Are they not in <stdio.h>?
>
#include <stdio.h>
int getc(stream)
FILE *stream;
fclose(stream)
FILE *stream;
fflush(stream)
FILE *stream;
on
SunOS pacific 4.1.3 3 sun4c
Cheers,
Dw.