Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#1245 closed defect (fixed)

device_lseek is noop but always returns success

Reported by: strauman Owned by: Joel Sherrill
Priority: high Milestone: 4.8
Component: score Version: 4.7
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

I wonder if it would not be more appropriate to let

cpukit/libfs/src/deviceio.c:device_lseek()

execute rtems_set_errno_and_return_minus_one( ESPIPE )

rather than doing nothing and returning 0 (success).

Change History (2)

comment:1 Changed on 03/23/09 at 13:29:02 by Joel Sherrill

Resolution: fixed
Status: newclosed

comment:2 Changed on 11/10/09 at 14:09:06 by strauman

No. 4.9.2 did not fix this.

However, the HEAD (to become 4.10) follows recommendation #2 and returns the current offset. Thus lseek() should work fine (seekable devices only!)

Note: See TracTickets for help on using tickets.