Skip to content

Commit 9c2b839

Browse files
committed
Auto merge of #1498 - asomers:aio_listio_max, r=gnzlbg
Deprecate AIO_LISTIO_MAX This value can vary at runtime. Applications should instead use sysconf(3) with _SC_AIO_LISTIO_MAX.
2 parents f7de365 + 1be630f commit 9c2b839

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2818,6 +2818,10 @@ pub const SIGEV_THREAD: ::c_int = 3;
28182818
pub const AIO_CANCELED: ::c_int = 2;
28192819
pub const AIO_NOTCANCELED: ::c_int = 4;
28202820
pub const AIO_ALLDONE: ::c_int = 1;
2821+
#[deprecated(
2822+
since="0.2.64",
2823+
note="Can vary at runtime. Use sysconf(3) instead")
2824+
]
28212825
pub const AIO_LISTIO_MAX: ::c_int = 16;
28222826
pub const LIO_NOP: ::c_int = 0;
28232827
pub const LIO_WRITE: ::c_int = 2;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ cfg_if! {
239239
}
240240
}
241241

242+
#[deprecated(
243+
since="0.2.64",
244+
note="Can vary at runtime. Use sysconf(3) instead")
245+
]
242246
pub const AIO_LISTIO_MAX: ::c_int = 16;
243247
pub const AIO_CANCELED: ::c_int = 1;
244248
pub const AIO_NOTCANCELED: ::c_int = 2;

0 commit comments

Comments
 (0)