Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
54
of
174
5.6.3.2.
int close(…)
Closes access to the device.
Argument name
Type
Direction Description
fd
int
in
File descriptor received at
open
.
Return value
Description
0
Device closed successfully
-1
see
errno
values
errno values
EBADF
The file descriptor
fd
is not an
open file descriptor
5.6.3.3.
off_t lseek(…)
Sets page offset for read/ write operations.
Argument name
Type
Direction Description
fd
int
in
File descriptor received at
open
.
offset
off_t
in
Page number.
whence
int
in
Must be set to SEEK_SET.
Return value
Description
offset
Page number
- 1
see
errno
values
errno values
EBADF
The file descriptor
fd
is not an
open file descriptor
ESPIPE
fd
is associated with a pipe,
socket or FIFO.
EINVAL
whence
is not a proper value.
EOVERFLOW
The resulting file offset would
overflow
off_t
.