httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk-Willem van Gulik <di...@elect6.jrc.it>
Subject Re: SunOS4 and stdio
Date Thu, 30 Oct 1997 09:12:34 GMT
On Wed, 29 Oct 1997, 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.
> 
>  > uname -a; egrep 'fopen|fclose|fgetc' /usr/*include/{*/*.h,*.h}
>  SunOS thailand 4.1.4 3 sun4m
>  /usr/include/scsi/scsi_ctl.h:extern int scsi_ifgetcap(), scsi_ifsetcap();
>  /usr/include/stdio.h:extern FILE	*fopen();
>  /usr/ucbinclude/scsi/scsi_ctl.h:extern int scsi_ifgetcap(), scsi_ifsetcap();
>  /usr/ucbinclude/stdio.h:extern FILE	*fopen();
>  /usr/5include/stdio.h:extern int	fclose(/* FILE *f */);
>  /usr/5include/stdio.h:extern int	fgetc(/* FILE *f */);
>  /usr/5include/stdio.h:extern FILE	*fopen(/* const char *path, const char *mode */);
>  /usr/xpg2include/stdio.h:extern FILE	*fopen(), *fdopen(), *freopen(), *popen(), *tmpfile();
>  >
> 
> Martin needs is fclose and fgetc.  - ben h.

Hmm they all apear on the same two manpages for me, and only
mention stdio.h.

Here is a repeat of your cmd on 4.1.3. So it seems they
are using the system 5 includes first ?

SunOS pacific 4.1.3 3 sun4c
/usr/include/scsi/scsi_ctl.h:extern int scsi_ifgetcap(), scsi_ifsetcap();
/usr/include/sunwindow/io_stream.h: * s is opened using fopen, with nmode
"r"
/usr/include/sunwindow/io_stream.h: * s is opened using fopen and mode "w"
is append is FALSE, otherwise "a" 
/usr/include/stdio.h:extern FILE        *fopen();
/usr/ucbinclude/scsi/scsi_ctl.h:extern int scsi_ifgetcap(),
scsi_ifsetcap();
/usr/ucbinclude/sunwindow/io_stream.h: * s is opened using fopen, with
nmode "r"
/usr/ucbinclude/sunwindow/io_stream.h: * s is opened using fopen and mode
"w" is append is FALSE, otherwise "a" 
/usr/ucbinclude/stdio.h:extern FILE     *fopen();
/usr/5include/stdio.h:extern int        fclose(/* FILE *f */);
/usr/5include/stdio.h:extern int        fgetc(/* FILE *f */);
/usr/5include/stdio.h:extern FILE       *fopen(/* const char *path, const
char *mode */);
/usr/xpg2include/stdio.h:extern FILE    *fopen(), *fdopen(), *freopen(),
*popen(), *tmpfile();

Dw.


>    From: Dirk-Willem van Gulik <dirkx@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.
> 
> 
> 


Mime
View raw message