diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-02-24 16:45:33 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-02-24 16:45:33 -0500 |
commit | 2fae10f887b48b809bac56e4ff8a5c3fd4525de3 (patch) | |
tree | f9699222bbdd13e75f6b5ecda6d11cbc54a3d9d5 /src/signal/kill.c | |
parent | 455bd824457b3e6cc3998817aac4e500b027cc50 (diff) | |
download | musl-2fae10f887b48b809bac56e4ff8a5c3fd4525de3.tar.gz musl-2fae10f887b48b809bac56e4ff8a5c3fd4525de3.tar.bz2 musl-2fae10f887b48b809bac56e4ff8a5c3fd4525de3.tar.xz musl-2fae10f887b48b809bac56e4ff8a5c3fd4525de3.zip |
fix aliasing violations in fgetpos/fsetpos
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.
Diffstat (limited to 'src/signal/kill.c')
0 files changed, 0 insertions, 0 deletions