about summary refs log tree commit diff
path: root/src/stdio/fsetpos.c
Commit message (Collapse)AuthorAgeFilesLines
* fix aliasing violations in fgetpos/fsetposRich Felker2018-02-241-1/+1
| | | | | | | | | | | | | add a member of appropriate type to the fpos_t union so that accesses are well-defined. use long long instead of off_t since off_t is not always exposed in stdio.h and there's no namespace-clean alias for it. access is still performed using pointer casts rather than by naming the union member as a matter of style; to the extent possible, the naming of fields in opaque types defined in the public headers is not treated as an API contract with the implementation. access via the pointer cast is valid as long as the union has a member of matching type.
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-121-0/+8