bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fpurge on z/OS


From: Bruno Haible
Subject: Re: fpurge on z/OS
Date: Wed, 8 Apr 2009 02:19:10 +0200
User-agent: KMail/1.9.9

Hello,

Juergen Weber wrote:
> ERROR CCN3205 ./fpurge.c:119   "Please port gnulib fpurge.c to your
> platform! Look at the definitions of fflush, setvbuf and ungetc on your
> system, then report this to bug-gnulib."
> 
> So, I am doing this ;-)
> The required definitions are linked from here:
> http://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.bpxbd00/edclb1803426.htm
> 
> Better readable is the pdf linked there, too.

For porting 'fpurge', you need some insight into the internals of a FILE
stream on the particular platform.

> What would be the fpurge of z/OS ?

The fpurge function is best ported together with a couple of other
functions.

You find in   http://www.haible.de/bruno/gnu/testdir-stdioext.tar.gz
the documentation and implementation for all systems so far (from BSD
systems to QNX), and a test suite. The documentation/specification is
in the .h files.

To port this package:

  - Unpack the package, configure it. Try "make" and fix the problems.
  - Run "make check" to see the test results.
  - The recommended order of porting (from easy to harder) is:
    fbufmode, fseterr, freadable, fwritable, freading, fwriting,
    fpending, fpurge, freadptr, freadseek, freadahead.

Bruno

PS: Are you by chance the Old Wabble from Stuttgart?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]