@@ -73,7 +73,6 @@ libc_bitflags!(
7373 O_ACCMODE ;
7474 /// Use alternate I/O semantics.
7575 #[ cfg( target_os = "netbsd" ) ]
76- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
7776 O_ALT_IO ;
7877 /// Open the file in append-only mode.
7978 O_APPEND ;
@@ -82,7 +81,6 @@ libc_bitflags!(
8281 target_os = "illumos" ,
8382 target_os = "solaris" ,
8483 target_os = "haiku" ) ) ) ]
85- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
8684 O_ASYNC ;
8785 /// Closes the file descriptor once an `execve` call is made.
8886 ///
@@ -96,25 +94,21 @@ libc_bitflags!(
9694 target_os = "freebsd" ,
9795 target_os = "linux" ,
9896 target_os = "netbsd" ) ) ]
99- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
10097 O_DIRECT ;
10198 /// If the specified path isn't a directory, fail.
10299 #[ cfg( not( any( target_os = "illumos" , target_os = "solaris" ) ) ) ]
103- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
104100 O_DIRECTORY ;
105101 /// Implicitly follow each `write()` with an `fdatasync()`.
106102 #[ cfg( any( target_os = "android" ,
107103 apple_targets,
108104 target_os = "linux" ,
109105 target_os = "netbsd" ,
110106 target_os = "openbsd" ) ) ]
111- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
112107 O_DSYNC ;
113108 /// Error out if a file was not created.
114109 O_EXCL ;
115110 /// Open for execute only.
116111 #[ cfg( target_os = "freebsd" ) ]
117- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
118112 O_EXEC ;
119113 /// Open with an exclusive file lock.
120114 #[ cfg( any( target_os = "dragonfly" ,
@@ -123,7 +117,6 @@ libc_bitflags!(
123117 target_os = "netbsd" ,
124118 target_os = "openbsd" ,
125119 target_os = "redox" ) ) ]
126- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
127120 O_EXLOCK ;
128121 /// Same as `O_SYNC`.
129122 #[ cfg( any( target_os = "dragonfly" ,
@@ -133,37 +126,30 @@ libc_bitflags!(
133126 target_os = "netbsd" ,
134127 target_os = "openbsd" ,
135128 target_os = "redox" ) ) ]
136- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
137129 O_FSYNC ;
138130 /// Allow files whose sizes can't be represented in an `off_t` to be opened.
139131 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
140- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
141132 O_LARGEFILE ;
142133 /// Do not update the file last access time during `read(2)`s.
143134 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
144- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
145135 O_NOATIME ;
146136 /// Don't attach the device as the process' controlling terminal.
147137 #[ cfg( not( target_os = "redox" ) ) ]
148- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
149138 O_NOCTTY ;
150139 /// Same as `O_NONBLOCK`.
151140 #[ cfg( not( any( target_os = "redox" , target_os = "haiku" ) ) ) ]
152- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
153141 O_NDELAY ;
154142 /// `open()` will fail if the given path is a symbolic link.
155143 O_NOFOLLOW ;
156144 /// When possible, open the file in nonblocking mode.
157145 O_NONBLOCK ;
158146 /// Don't deliver `SIGPIPE`.
159147 #[ cfg( target_os = "netbsd" ) ]
160- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
161148 O_NOSIGPIPE ;
162149 /// Obtain a file descriptor for low-level access.
163150 ///
164151 /// The file itself is not opened and other file operations will fail.
165152 #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "redox" ) ) ]
166- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
167153 O_PATH ;
168154 /// Only allow reading.
169155 ///
@@ -175,11 +161,9 @@ libc_bitflags!(
175161 O_RDWR ;
176162 /// Similar to `O_DSYNC` but applies to `read`s instead.
177163 #[ cfg( any( target_os = "linux" , target_os = "netbsd" , target_os = "openbsd" ) ) ]
178- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
179164 O_RSYNC ;
180165 /// Skip search permission checks.
181166 #[ cfg( target_os = "netbsd" ) ]
182- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
183167 O_SEARCH ;
184168 /// Open with a shared file lock.
185169 #[ cfg( any( target_os = "dragonfly" ,
@@ -188,21 +172,17 @@ libc_bitflags!(
188172 target_os = "netbsd" ,
189173 target_os = "openbsd" ,
190174 target_os = "redox" ) ) ]
191- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
192175 O_SHLOCK ;
193176 /// Implicitly follow each `write()` with an `fsync()`.
194177 #[ cfg( not( target_os = "redox" ) ) ]
195- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
196178 O_SYNC ;
197179 /// Create an unnamed temporary file.
198180 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
199- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
200181 O_TMPFILE ;
201182 /// Truncate an existing regular file to 0 length if it allows writing.
202183 O_TRUNC ;
203184 /// Restore default TTY attributes.
204185 #[ cfg( target_os = "freebsd" ) ]
205- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
206186 O_TTY_INIT ;
207187 /// Only allow writing.
208188 ///
0 commit comments