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

Side by Side Diff: fusl/include/aio.h

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 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
OLDNEW
1 #ifndef _AIO_H 1 #ifndef _AIO_H
2 #define _AIO_H 2 #define _AIO_H
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #include <features.h> 8 #include <features.h>
9 #include <signal.h> 9 #include <signal.h>
10 #include <time.h> 10 #include <time.h>
11 11
12 #define __NEED_ssize_t 12 #define __NEED_ssize_t
13 #define __NEED_off_t 13 #define __NEED_off_t
14 14
15 #include <bits/alltypes.h> 15 #include <bits/alltypes.h>
16 16
17 struct aiocb { 17 struct aiocb {
18 » int aio_fildes, aio_lio_opcode, aio_reqprio; 18 int aio_fildes, aio_lio_opcode, aio_reqprio;
19 » volatile void *aio_buf; 19 volatile void* aio_buf;
20 » size_t aio_nbytes; 20 size_t aio_nbytes;
21 » struct sigevent aio_sigevent; 21 struct sigevent aio_sigevent;
22 » void *__td; 22 void* __td;
23 » int __lock[2]; 23 int __lock[2];
24 » volatile int __err; 24 volatile int __err;
25 » ssize_t __ret; 25 ssize_t __ret;
26 » off_t aio_offset; 26 off_t aio_offset;
27 » void *__next, *__prev; 27 void *__next, *__prev;
28 » char __dummy4[32-2*sizeof(void *)]; 28 char __dummy4[32 - 2 * sizeof(void*)];
29 }; 29 };
30 30
31 #define AIO_CANCELED 0 31 #define AIO_CANCELED 0
32 #define AIO_NOTCANCELED 1 32 #define AIO_NOTCANCELED 1
33 #define AIO_ALLDONE 2 33 #define AIO_ALLDONE 2
34 34
35 #define LIO_READ 0 35 #define LIO_READ 0
36 #define LIO_WRITE 1 36 #define LIO_WRITE 1
37 #define LIO_NOP 2 37 #define LIO_NOP 2
38 38
39 #define LIO_WAIT 0 39 #define LIO_WAIT 0
40 #define LIO_NOWAIT 1 40 #define LIO_NOWAIT 1
41 41
42 int aio_read(struct aiocb *); 42 int aio_read(struct aiocb*);
43 int aio_write(struct aiocb *); 43 int aio_write(struct aiocb*);
44 int aio_error(const struct aiocb *); 44 int aio_error(const struct aiocb*);
45 ssize_t aio_return(struct aiocb *); 45 ssize_t aio_return(struct aiocb*);
46 int aio_cancel(int, struct aiocb *); 46 int aio_cancel(int, struct aiocb*);
47 int aio_suspend(const struct aiocb *const [], int, const struct timespec *); 47 int aio_suspend(const struct aiocb* const[], int, const struct timespec*);
48 int aio_fsync(int, struct aiocb *); 48 int aio_fsync(int, struct aiocb*);
49 49
50 int lio_listio(int, struct aiocb *__restrict const *__restrict, int, struct sige vent *__restrict); 50 int lio_listio(int,
51 struct aiocb* __restrict const* __restrict,
52 int,
53 struct sigevent* __restrict);
51 54
52 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) 55 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
53 #define aiocb64 aiocb 56 #define aiocb64 aiocb
54 #define aio_read64 aio_read 57 #define aio_read64 aio_read
55 #define aio_write64 aio_write 58 #define aio_write64 aio_write
56 #define aio_error64 aio_error 59 #define aio_error64 aio_error
57 #define aio_return64 aio_return 60 #define aio_return64 aio_return
58 #define aio_cancel64 aio_cancel 61 #define aio_cancel64 aio_cancel
59 #define aio_suspend64 aio_suspend 62 #define aio_suspend64 aio_suspend
60 #define aio_fsync64 aio_fsync 63 #define aio_fsync64 aio_fsync
61 #define lio_listio64 lio_listio 64 #define lio_listio64 lio_listio
62 #define off64_t off_t 65 #define off64_t off_t
63 #endif 66 #endif
64 67
65 #ifdef __cplusplus 68 #ifdef __cplusplus
66 } 69 }
67 #endif 70 #endif
68 71
69 #endif 72 #endif
OLDNEW
« fusl/arch/aarch64/atomic_arch.h ('K') | « fusl/crt/rcrt1.c ('k') | fusl/include/alloca.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698