Glenn, have a look at the C1X spec below. Does this mean that AST fpos_t needs a mbstate_t?
Olga ---------- Forwarded message ---------- From: Takehiko NOZAKI <[email protected]> Date: Mon, Mar 21, 2011 at 7:50 PM Subject: Proposal: fpos_t and funopen(3) API change To: [email protected] 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 <[email protected]> -- , _ _ , { \/`o;====- Olga Kryzhanovska -====;o`\/ } .----'-/`-/ [email protected] \-`\-'----. `'-..-| / http://twitter.com/fleyta \ |-..-'` /\/\ Solaris/BSD//C/C++ programmer /\/\ `--` `--` _______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
