/usr/share/splint/lib/filerw.mts is in splint-data 3.1.2.dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | attribute filerw
context reference FILE *
oneof rw_none, rw_read, rw_write, rw_either
annotations
read ==> rw_read
write ==> rw_write
rweither ==> rw_either
rwnone ==> rw_none
merge
rw_read + rw_write ==> rw_none
rw_none + * ==> rw_none
rw_either + rw_read ==> rw_read
rw_either + rw_write ==> rw_write
rw_either + rw_none ==> rw_none
transfers
rw_read as rw_write ==> error "Must reset file between read and write."
rw_write as rw_read ==> error "Must reset file between write and read."
rw_none as rw_read ==> error "File in unreadable state."
rw_none as rw_write ==> error "File in unwritable state."
rw_either as rw_write ==> rw_write
rw_either as rw_read ==> rw_read
end
|