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

Side by Side Diff: fusl/include/stropts.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 _STROPTS_H 1 #ifndef _STROPTS_H
2 #define _STROPTS_H 2 #define _STROPTS_H
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #define __SID» » ('S' << 8) 8 #define __SID ('S' << 8)
9 9
10 #define I_NREAD»» (__SID | 1) 10 #define I_NREAD (__SID | 1)
11 #define I_PUSH» » (__SID | 2) 11 #define I_PUSH (__SID | 2)
12 #define I_POP» » (__SID | 3) 12 #define I_POP (__SID | 3)
13 #define I_LOOK» » (__SID | 4) 13 #define I_LOOK (__SID | 4)
14 #define I_FLUSH»» (__SID | 5) 14 #define I_FLUSH (__SID | 5)
15 #define I_SRDOPT» (__SID | 6) 15 #define I_SRDOPT (__SID | 6)
16 #define I_GRDOPT» (__SID | 7) 16 #define I_GRDOPT (__SID | 7)
17 #define I_STR» » (__SID | 8) 17 #define I_STR (__SID | 8)
18 #define I_SETSIG» (__SID | 9) 18 #define I_SETSIG (__SID | 9)
19 #define I_GETSIG» (__SID |10) 19 #define I_GETSIG (__SID | 10)
20 #define I_FIND» » (__SID |11) 20 #define I_FIND (__SID | 11)
21 #define I_LINK» » (__SID |12) 21 #define I_LINK (__SID | 12)
22 #define I_UNLINK» (__SID |13) 22 #define I_UNLINK (__SID | 13)
23 #define I_PEEK» » (__SID |15) 23 #define I_PEEK (__SID | 15)
24 #define I_FDINSERT» (__SID |16) 24 #define I_FDINSERT (__SID | 16)
25 #define I_SENDFD» (__SID |17) 25 #define I_SENDFD (__SID | 17)
26 #define I_RECVFD» (__SID |14) 26 #define I_RECVFD (__SID | 14)
27 #define I_SWROPT» (__SID |19) 27 #define I_SWROPT (__SID | 19)
28 #define I_GWROPT» (__SID |20) 28 #define I_GWROPT (__SID | 20)
29 #define I_LIST» » (__SID |21) 29 #define I_LIST (__SID | 21)
30 #define I_PLINK»» (__SID |22) 30 #define I_PLINK (__SID | 22)
31 #define I_PUNLINK» (__SID |23) 31 #define I_PUNLINK (__SID | 23)
32 #define I_FLUSHBAND» (__SID |28) 32 #define I_FLUSHBAND (__SID | 28)
33 #define I_CKBAND» (__SID |29) 33 #define I_CKBAND (__SID | 29)
34 #define I_GETBAND» (__SID |30) 34 #define I_GETBAND (__SID | 30)
35 #define I_ATMARK» (__SID |31) 35 #define I_ATMARK (__SID | 31)
36 #define I_SETCLTIME» (__SID |32) 36 #define I_SETCLTIME (__SID | 32)
37 #define I_GETCLTIME» (__SID |33) 37 #define I_GETCLTIME (__SID | 33)
38 #define I_CANPUT» (__SID |34) 38 #define I_CANPUT (__SID | 34)
39 39
40 #define FMNAMESZ» 8 40 #define FMNAMESZ 8
41 41
42 #define FLUSHR» » 0x01 42 #define FLUSHR 0x01
43 #define FLUSHW» » 0x02 43 #define FLUSHW 0x02
44 #define FLUSHRW»» 0x03 44 #define FLUSHRW 0x03
45 #define FLUSHBAND» 0x04 45 #define FLUSHBAND 0x04
46 46
47 #define S_INPUT»» 0x0001 47 #define S_INPUT 0x0001
48 #define S_HIPRI»» 0x0002 48 #define S_HIPRI 0x0002
49 #define S_OUTPUT» 0x0004 49 #define S_OUTPUT 0x0004
50 #define S_MSG» » 0x0008 50 #define S_MSG 0x0008
51 #define S_ERROR»» 0x0010 51 #define S_ERROR 0x0010
52 #define S_HANGUP» 0x0020 52 #define S_HANGUP 0x0020
53 #define S_RDNORM» 0x0040 53 #define S_RDNORM 0x0040
54 #define S_WRNORM» S_OUTPUT 54 #define S_WRNORM S_OUTPUT
55 #define S_RDBAND» 0x0080 55 #define S_RDBAND 0x0080
56 #define S_WRBAND» 0x0100 56 #define S_WRBAND 0x0100
57 #define S_BANDURG» 0x0200 57 #define S_BANDURG 0x0200
58 58
59 #define RS_HIPRI» 0x01 59 #define RS_HIPRI 0x01
60 60
61 #define RNORM» » 0x0000 61 #define RNORM 0x0000
62 #define RMSGD» » 0x0001 62 #define RMSGD 0x0001
63 #define RMSGN» » 0x0002 63 #define RMSGN 0x0002
64 #define RPROTDAT» 0x0004 64 #define RPROTDAT 0x0004
65 #define RPROTDIS» 0x0008 65 #define RPROTDIS 0x0008
66 #define RPROTNORM» 0x0010 66 #define RPROTNORM 0x0010
67 #define RPROTMASK» 0x001C 67 #define RPROTMASK 0x001C
68 68
69 #define SNDZERO»» 0x001 69 #define SNDZERO 0x001
70 #define SNDPIPE»» 0x002 70 #define SNDPIPE 0x002
71 71
72 #define ANYMARK»» 0x01 72 #define ANYMARK 0x01
73 #define LASTMARK» 0x02 73 #define LASTMARK 0x02
74 74
75 #define MUXID_ALL» (-1) 75 #define MUXID_ALL (-1)
76 76
77 #define MSG_HIPRI» 0x01 77 #define MSG_HIPRI 0x01
78 #define MSG_ANY»» 0x02 78 #define MSG_ANY 0x02
79 #define MSG_BAND» 0x04 79 #define MSG_BAND 0x04
80 80
81 #define MORECTL»» 1 81 #define MORECTL 1
82 #define MOREDATA» 2 82 #define MOREDATA 2
83 83
84 struct bandinfo { 84 struct bandinfo {
85 » unsigned char bi_pri; 85 unsigned char bi_pri;
86 » int bi_flag; 86 int bi_flag;
87 }; 87 };
88 88
89 struct strbuf { 89 struct strbuf {
90 » int maxlen; 90 int maxlen;
91 » int len; 91 int len;
92 » char *buf; 92 char* buf;
93 }; 93 };
94 94
95 struct strpeek { 95 struct strpeek {
96 » struct strbuf ctlbuf; 96 struct strbuf ctlbuf;
97 » struct strbuf databuf; 97 struct strbuf databuf;
98 » unsigned flags; 98 unsigned flags;
99 }; 99 };
100 100
101 struct strfdinsert { 101 struct strfdinsert {
102 » struct strbuf ctlbuf; 102 struct strbuf ctlbuf;
103 » struct strbuf databuf; 103 struct strbuf databuf;
104 » unsigned flags; 104 unsigned flags;
105 » int fildes; 105 int fildes;
106 » int offset; 106 int offset;
107 }; 107 };
108 108
109 struct strioctl { 109 struct strioctl {
110 » int ic_cmd; 110 int ic_cmd;
111 » int ic_timout; 111 int ic_timout;
112 » int ic_len; 112 int ic_len;
113 » char *ic_dp; 113 char* ic_dp;
114 }; 114 };
115 115
116 struct strrecvfd { 116 struct strrecvfd {
117 » int fd; 117 int fd;
118 » int uid; 118 int uid;
119 » int gid; 119 int gid;
120 » char __fill[8]; 120 char __fill[8];
121 }; 121 };
122 122
123 struct str_mlist { 123 struct str_mlist {
124 » char l_name[FMNAMESZ + 1]; 124 char l_name[FMNAMESZ + 1];
125 }; 125 };
126 126
127 struct str_list { 127 struct str_list {
128 » int sl_nmods; 128 int sl_nmods;
129 » struct str_mlist *sl_modlist; 129 struct str_mlist* sl_modlist;
130 }; 130 };
131 131
132 int isastream(int); 132 int isastream(int);
133 int ioctl(int, int, ...); 133 int ioctl(int, int, ...);
134 134
135 #ifdef __cplusplus 135 #ifdef __cplusplus
136 } 136 }
137 #endif 137 #endif
138 138
139 #endif 139 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698