Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: fusl/include/sys/uio.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/include/sys/ucontext.h ('k') | fusl/include/sys/un.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef _SYS_UIO_H
2 #define _SYS_UIO_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <features.h>
9
10 #define __NEED_size_t
11 #define __NEED_ssize_t
12 #define __NEED_struct_iovec
13
14 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
15 #define __NEED_off_t
16 #endif
17
18 #ifdef _GNU_SOURCE
19 #define __NEED_pid_t
20 #endif
21
22 #include <bits/alltypes.h>
23
24 #define UIO_MAXIOV 1024
25
26 ssize_t readv (int, const struct iovec *, int);
27 ssize_t writev (int, const struct iovec *, int);
28
29 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
30 ssize_t preadv (int, const struct iovec *, int, off_t);
31 ssize_t pwritev (int, const struct iovec *, int, off_t);
32 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
33 #define preadv64 preadv
34 #define pwritev64 pwritev
35 #define off64_t off_t
36 #endif
37 #endif
38
39 #ifdef _GNU_SOURCE
40 ssize_t process_vm_writev(pid_t, const struct iovec *, unsigned long, const stru ct iovec *, unsigned long, unsigned long);
41 ssize_t process_vm_readv(pid_t, const struct iovec *, unsigned long, const struc t iovec *, unsigned long, unsigned long);
42 #endif
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif
OLDNEW
« no previous file with comments | « fusl/include/sys/ucontext.h ('k') | fusl/include/sys/un.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698