@@ -73,7 +73,6 @@ libc_bitflags!(
73
73
O_ACCMODE ;
74
74
/// Use alternate I/O semantics.
75
75
#[ cfg( target_os = "netbsd" ) ]
76
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
77
76
O_ALT_IO ;
78
77
/// Open the file in append-only mode.
79
78
O_APPEND ;
@@ -82,7 +81,6 @@ libc_bitflags!(
82
81
target_os = "illumos" ,
83
82
target_os = "solaris" ,
84
83
target_os = "haiku" ) ) ) ]
85
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
86
84
O_ASYNC ;
87
85
/// Closes the file descriptor once an `execve` call is made.
88
86
///
@@ -96,25 +94,21 @@ libc_bitflags!(
96
94
target_os = "freebsd" ,
97
95
target_os = "linux" ,
98
96
target_os = "netbsd" ) ) ]
99
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
100
97
O_DIRECT ;
101
98
/// If the specified path isn't a directory, fail.
102
99
#[ cfg( not( any( target_os = "illumos" , target_os = "solaris" ) ) ) ]
103
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
104
100
O_DIRECTORY ;
105
101
/// Implicitly follow each `write()` with an `fdatasync()`.
106
102
#[ cfg( any( target_os = "android" ,
107
103
apple_targets,
108
104
target_os = "linux" ,
109
105
target_os = "netbsd" ,
110
106
target_os = "openbsd" ) ) ]
111
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
112
107
O_DSYNC ;
113
108
/// Error out if a file was not created.
114
109
O_EXCL ;
115
110
/// Open for execute only.
116
111
#[ cfg( target_os = "freebsd" ) ]
117
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
118
112
O_EXEC ;
119
113
/// Open with an exclusive file lock.
120
114
#[ cfg( any( target_os = "dragonfly" ,
@@ -123,7 +117,6 @@ libc_bitflags!(
123
117
target_os = "netbsd" ,
124
118
target_os = "openbsd" ,
125
119
target_os = "redox" ) ) ]
126
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
127
120
O_EXLOCK ;
128
121
/// Same as `O_SYNC`.
129
122
#[ cfg( any( target_os = "dragonfly" ,
@@ -133,37 +126,30 @@ libc_bitflags!(
133
126
target_os = "netbsd" ,
134
127
target_os = "openbsd" ,
135
128
target_os = "redox" ) ) ]
136
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
137
129
O_FSYNC ;
138
130
/// Allow files whose sizes can't be represented in an `off_t` to be opened.
139
131
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
140
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
141
132
O_LARGEFILE ;
142
133
/// Do not update the file last access time during `read(2)`s.
143
134
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
144
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
145
135
O_NOATIME ;
146
136
/// Don't attach the device as the process' controlling terminal.
147
137
#[ cfg( not( target_os = "redox" ) ) ]
148
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
149
138
O_NOCTTY ;
150
139
/// Same as `O_NONBLOCK`.
151
140
#[ cfg( not( any( target_os = "redox" , target_os = "haiku" ) ) ) ]
152
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
153
141
O_NDELAY ;
154
142
/// `open()` will fail if the given path is a symbolic link.
155
143
O_NOFOLLOW ;
156
144
/// When possible, open the file in nonblocking mode.
157
145
O_NONBLOCK ;
158
146
/// Don't deliver `SIGPIPE`.
159
147
#[ cfg( target_os = "netbsd" ) ]
160
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
161
148
O_NOSIGPIPE ;
162
149
/// Obtain a file descriptor for low-level access.
163
150
///
164
151
/// The file itself is not opened and other file operations will fail.
165
152
#[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "redox" ) ) ]
166
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
167
153
O_PATH ;
168
154
/// Only allow reading.
169
155
///
@@ -175,11 +161,9 @@ libc_bitflags!(
175
161
O_RDWR ;
176
162
/// Similar to `O_DSYNC` but applies to `read`s instead.
177
163
#[ cfg( any( target_os = "linux" , target_os = "netbsd" , target_os = "openbsd" ) ) ]
178
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
179
164
O_RSYNC ;
180
165
/// Skip search permission checks.
181
166
#[ cfg( target_os = "netbsd" ) ]
182
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
183
167
O_SEARCH ;
184
168
/// Open with a shared file lock.
185
169
#[ cfg( any( target_os = "dragonfly" ,
@@ -188,21 +172,17 @@ libc_bitflags!(
188
172
target_os = "netbsd" ,
189
173
target_os = "openbsd" ,
190
174
target_os = "redox" ) ) ]
191
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
192
175
O_SHLOCK ;
193
176
/// Implicitly follow each `write()` with an `fsync()`.
194
177
#[ cfg( not( target_os = "redox" ) ) ]
195
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
196
178
O_SYNC ;
197
179
/// Create an unnamed temporary file.
198
180
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
199
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
200
181
O_TMPFILE ;
201
182
/// Truncate an existing regular file to 0 length if it allows writing.
202
183
O_TRUNC ;
203
184
/// Restore default TTY attributes.
204
185
#[ cfg( target_os = "freebsd" ) ]
205
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
206
186
O_TTY_INIT ;
207
187
/// Only allow writing.
208
188
///
0 commit comments