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

Side by Side Diff: fusl/include/mqueue.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 _MQUEUE_H 1 #ifndef _MQUEUE_H
2 #define _MQUEUE_H 2 #define _MQUEUE_H
3 #ifdef __cplusplus 3 #ifdef __cplusplus
4 extern "C" { 4 extern "C" {
5 #endif 5 #endif
6 6
7 #include <features.h> 7 #include <features.h>
8 8
9 #define __NEED_size_t 9 #define __NEED_size_t
10 #define __NEED_ssize_t 10 #define __NEED_ssize_t
11 #define __NEED_pthread_attr_t 11 #define __NEED_pthread_attr_t
12 #define __NEED_time_t 12 #define __NEED_time_t
13 #define __NEED_struct_timespec 13 #define __NEED_struct_timespec
14 #include <bits/alltypes.h> 14 #include <bits/alltypes.h>
15 15
16 typedef int mqd_t; 16 typedef int mqd_t;
17 struct mq_attr { 17 struct mq_attr {
18 » long mq_flags, mq_maxmsg, mq_msgsize, mq_curmsgs, __unused[4]; 18 long mq_flags, mq_maxmsg, mq_msgsize, mq_curmsgs, __unused[4];
19 }; 19 };
20 struct sigevent; 20 struct sigevent;
21 21
22 int mq_close(mqd_t); 22 int mq_close(mqd_t);
23 int mq_getattr(mqd_t, struct mq_attr *); 23 int mq_getattr(mqd_t, struct mq_attr*);
24 int mq_notify(mqd_t, const struct sigevent *); 24 int mq_notify(mqd_t, const struct sigevent*);
25 mqd_t mq_open(const char *, int, ...); 25 mqd_t mq_open(const char*, int, ...);
26 ssize_t mq_receive(mqd_t, char *, size_t, unsigned *); 26 ssize_t mq_receive(mqd_t, char*, size_t, unsigned*);
27 int mq_send(mqd_t, const char *, size_t, unsigned); 27 int mq_send(mqd_t, const char*, size_t, unsigned);
28 int mq_setattr(mqd_t, const struct mq_attr *__restrict, struct mq_attr *__restri ct); 28 int mq_setattr(mqd_t,
29 ssize_t mq_timedreceive(mqd_t, char *__restrict, size_t, unsigned *__restrict, c onst struct timespec *__restrict); 29 const struct mq_attr* __restrict,
30 int mq_timedsend(mqd_t, const char *, size_t, unsigned, const struct timespec *) ; 30 struct mq_attr* __restrict);
31 int mq_unlink(const char *); 31 ssize_t mq_timedreceive(mqd_t,
32 char* __restrict,
33 size_t,
34 unsigned* __restrict,
35 const struct timespec* __restrict);
36 int mq_timedsend(mqd_t, const char*, size_t, unsigned, const struct timespec*);
37 int mq_unlink(const char*);
32 38
33 #ifdef __cplusplus 39 #ifdef __cplusplus
34 } 40 }
35 #endif 41 #endif
36 #endif 42 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698