aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorJason A. Donenfeld <[email protected]>2022-06-29 15:06:57 +0200
committerAl Viro <[email protected]>2022-07-16 09:18:56 -0400
commite7478158e1378325907edfdd960eca98a1be405b (patch)
tree69d1ab990e63cf106b1a81fede39cef603991a5c /scripts/gdb/linux/tasks.py
parentb13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3 (diff)
fs: clear or set FMODE_LSEEK based on llseek function
Pipe-like behaviour on llseek(2) (i.e. unconditionally failing with -ESPIPE) can be expresses in 3 ways: 1) ->llseek set to NULL in file_operations 2) ->llseek set to no_llseek in file_operations 3) FMODE_LSEEK *not* set in ->f_mode. Enforce (3) in cases (1) and (2); that will allow to simplify the checks and eventually get rid of no_llseek boilerplate. Signed-off-by: Jason A. Donenfeld <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions