fixup: dfsv2: seq: aligned proto of lseek to manual
In manual, the prototype of lseek is `off_t lseek(int fd, off_t offset, int whence);` where the return type is `off_t` but not ssize_t. Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
parent
cadcd81104
commit
2cbd5889d1
|
@ -56,7 +56,7 @@ static inline void dfs_seq_setwidth(struct dfs_seq_file *seq, size_t size)
|
||||||
|
|
||||||
int dfs_seq_open(struct dfs_file *file, const struct dfs_seq_ops *ops);
|
int dfs_seq_open(struct dfs_file *file, const struct dfs_seq_ops *ops);
|
||||||
ssize_t dfs_seq_read(struct dfs_file *file, void *buf, size_t size, off_t *pos);
|
ssize_t dfs_seq_read(struct dfs_file *file, void *buf, size_t size, off_t *pos);
|
||||||
ssize_t dfs_seq_lseek(struct dfs_file *file, off_t offset, int whence);
|
off_t dfs_seq_lseek(struct dfs_file *file, off_t offset, int whence);
|
||||||
int dfs_seq_release(struct dfs_file *file);
|
int dfs_seq_release(struct dfs_file *file);
|
||||||
int dfs_seq_write(struct dfs_seq_file *seq, const void *data, size_t len);
|
int dfs_seq_write(struct dfs_seq_file *seq, const void *data, size_t len);
|
||||||
|
|
||||||
|
|
|
@ -256,7 +256,7 @@ Enomem:
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t dfs_seq_lseek(struct dfs_file *file, off_t offset, int whence)
|
off_t dfs_seq_lseek(struct dfs_file *file, off_t offset, int whence)
|
||||||
{
|
{
|
||||||
struct dfs_seq_file *seq = file->data;
|
struct dfs_seq_file *seq = file->data;
|
||||||
off_t retval = -EINVAL;
|
off_t retval = -EINVAL;
|
||||||
|
|
Loading…
Reference in New Issue