vfs: check userland buffers before reading them.
[haiku.git] / headers / private / fs_shell / fssh_uio.h
blobdc15a9d58c041104506a3cfcfb3a51a80b01bb62
1 /*
2 * Copyright 2002-2007, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _FSSH_SYS_UIO_H
6 #define _FSSH_SYS_UIO_H
9 #include "fssh_types.h"
12 typedef struct fssh_iovec {
13 void *iov_base;
14 fssh_size_t iov_len;
15 } fssh_iovec;
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
22 fssh_ssize_t fssh_readv(int fd, const struct fssh_iovec *vector,
23 fssh_size_t count);
24 fssh_ssize_t fssh_readv_pos(int fd, fssh_off_t pos, const struct
25 fssh_iovec *vec, fssh_size_t count);
26 fssh_ssize_t fssh_writev(int fd, const struct fssh_iovec *vector,
27 fssh_size_t count);
28 fssh_ssize_t fssh_writev_pos(int fd, fssh_off_t pos,
29 const struct fssh_iovec *vec, fssh_size_t count);
31 #ifdef __cplusplus
33 #endif
35 #endif /* _FSSH_SYS_UIO_H */