tech-userlevel archive

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

Proposal: fpos_t and funopen(3) API change



hi, all.

according to src/lib/libc/shlib_version, following TODO remain before
libc major bump:

 - libc/stdio: make fpos_t larger.  see BUGS section in fgetpos(3).
   probably s/fpos_t/off_t/ in __sFILE and __sseek().  it involves
   funopen(3) api change.

(http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/shlib_version)


C1X spec says:

7.21.2.6
Each wide-oriented stream has an associated mbstate_t object that
stores the current
parse state of the stream. A successful call to fgetpos stores a
representation of the
value of this mbstate_t object as part of the value of the fpos_t
object. A later
successful call to fsetpos using the same stored fpos_t value restores
the value of

(http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1539.pdf)

so  i wrote patch for this

ftp://ftp.netbsd.org/pub/NetBSD/misc/tnozaki/patch-fpos_t

any comment?


very truly yours.
-- 
Takehiko NOZAKI <takehiko.nozaki%gmail.com@localhost>


Home | Main Index | Thread Index | Old Index