Current-Users archive

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

Re: Change of funopen(3) (was Re: lang/php* broken on NetBSD, patchsupplied)



taca@ wrote:

> > Module Name:        src
> > Committed By:       christos
> > Date:               Sun Jan 22 18:36:19 UTC 2012
> > 
> > Modified Files:
> >     src/bin/csh: csh.c
 :
> > Log Message:
> > From tnozaki@: make fpos_t a complex object that keeps track of the parse
> > state of the stream. Change argument of the seek function to funopen() from
> > fpos_t to off_t. Make f{g,s}etpos() use the new fpos_t struct, while 
> > providing
> > backwards compatible entry points. Approved by releng@
> Please let me know.
> 
> What is the best way to modify (or writing portable) code using
> funopen(3) to deal with change of its 4th parameter?
> 
>       fpos_t (*seekfn)(void *, fpos_t, int)
> 
> v.s.
> 
>       off_t (*seekfn)(void *, off_t, int)

The latter as csh.c rev 1.14 does?
http://cvsweb.NetBSD.org/bsdweb.cgi/src/bin/csh/csh.c.diff?r1=1.42&r2=1.43&f=h

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index