@@ -272,14 +272,17 @@ libc_bitflags! {
272
272
/// Sends or requests out-of-band data on sockets that support this notion
273
273
/// (e.g., of type [`Stream`](enum.SockType.html)); the underlying protocol must also
274
274
/// support out-of-band data.
275
+ #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
275
276
MSG_OOB ;
276
277
/// Peeks at an incoming message. The data is treated as unread and the next
277
278
/// [`recv()`](fn.recv.html)
278
279
/// or similar function shall still return this data.
280
+ #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
279
281
MSG_PEEK ;
280
282
/// Receive operation blocks until the full amount of data can be
281
283
/// returned. The function may return smaller amount of data if a signal
282
284
/// is caught, an error or disconnect occurs.
285
+ #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
283
286
MSG_WAITALL ;
284
287
/// Enables nonblocking operation; if the operation would block,
285
288
/// `EAGAIN` or `EWOULDBLOCK` is returned. This provides similar
@@ -291,8 +294,10 @@ libc_bitflags! {
291
294
/// which will affect all threads in
292
295
/// the calling process and as well as other processes that hold
293
296
/// file descriptors referring to the same open file description.
297
+ #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
294
298
MSG_DONTWAIT ;
295
299
/// Receive flags: Control Data was discarded (buffer too small)
300
+ #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
296
301
MSG_CTRUNC ;
297
302
/// For raw ([`Packet`](addr/enum.AddressFamily.html)), Internet datagram
298
303
/// (since Linux 2.4.27/2.6.8),
@@ -302,15 +307,18 @@ libc_bitflags! {
302
307
/// domain ([unix(7)](https://linux.die.net/man/7/unix)) sockets.
303
308
///
304
309
/// For use with Internet stream sockets, see [tcp(7)](https://linux.die.net/man/7/tcp).
310
+ #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
305
311
MSG_TRUNC ;
306
312
/// Terminates a record (when this notion is supported, as for
307
313
/// sockets of type [`SeqPacket`](enum.SockType.html)).
314
+ #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
308
315
MSG_EOR ;
309
316
/// This flag specifies that queued errors should be received from
310
317
/// the socket error queue. (For more details, see
311
318
/// [recvfrom(2)](https://linux.die.net/man/2/recvfrom))
312
319
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
313
320
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
321
+ #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
314
322
MSG_ERRQUEUE ;
315
323
/// Set the `close-on-exec` flag for the file descriptor received via a UNIX domain
316
324
/// file descriptor using the `SCM_RIGHTS` operation (described in
@@ -326,6 +334,7 @@ libc_bitflags! {
326
334
target_os = "netbsd" ,
327
335
target_os = "openbsd" ) ) ]
328
336
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
337
+ #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
329
338
MSG_CMSG_CLOEXEC ;
330
339
/// Requests not to send `SIGPIPE` errors when the other end breaks the connection.
331
340
/// (For more details, see [send(2)](https://linux.die.net/man/2/send)).
@@ -340,6 +349,7 @@ libc_bitflags! {
340
349
target_os = "openbsd" ,
341
350
target_os = "solaris" ) ) ]
342
351
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
352
+ #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
343
353
MSG_NOSIGNAL ;
344
354
}
345
355
}
0 commit comments