pkgsrc-Users archive

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

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


In message <>
        on Sun, 22 Jan 2012 13:36:19 -0500,
        "Christos Zoulas" <> wrote:
> Module Name:  src
> Committed By: christos
> Date:         Sun Jan 22 18:36:19 UTC 2012
> Modified Files:
>       src/bin/csh: csh.c
>       src/distrib/sets/lists/base: ad.mips64eb ad.mips64el md.amd64
>           md.sparc64 shl.mi
>       src/distrib/sets/lists/comp: ad.mips64eb ad.mips64el md.amd64
>           md.sparc64 shl.mi
>       src/include: stdio.h
>       src/lib/libc: shlib_version
>       src/lib/libc/compat: Makefile
>       src/lib/libc/stdio: fgetpos.c findfp.c fmemopen.c fopen.c freopen.c
>           fseek.3 fseeko.c fsetpos.c ftell.c ftello.c funopen.3 funopen.c
>           local.h stdio.c
>       src/tests/fs/nfs/nfsservice: mountd.c
> Added Files:
>       src/lib/libc/compat/include: stdio.h
>       src/lib/libc/compat/stdio: compat_fgetpos.c
>           compat_fsetpos.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)


        off_t (*seekfn)(void *, off_t, int)

Best regards.

Takahiro Kambe <>

Home | Main Index | Thread Index | Old Index