Skip to content

Commit

Permalink
Auto merge of #1498 - asomers:aio_listio_max, r=gnzlbg
Browse files Browse the repository at this point in the history
Deprecate AIO_LISTIO_MAX

This value can vary at runtime.  Applications should instead use
sysconf(3) with _SC_AIO_LISTIO_MAX.
  • Loading branch information
bors committed Sep 7, 2019
2 parents f7de365 + 1be630f commit 9c2b839
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2818,6 +2818,10 @@ pub const SIGEV_THREAD: ::c_int = 3;
pub const AIO_CANCELED: ::c_int = 2;
pub const AIO_NOTCANCELED: ::c_int = 4;
pub const AIO_ALLDONE: ::c_int = 1;
#[deprecated(
since="0.2.64",
note="Can vary at runtime. Use sysconf(3) instead")
]
pub const AIO_LISTIO_MAX: ::c_int = 16;
pub const LIO_NOP: ::c_int = 0;
pub const LIO_WRITE: ::c_int = 2;
Expand Down
4 changes: 4 additions & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ cfg_if! {
}
}

#[deprecated(
since="0.2.64",
note="Can vary at runtime. Use sysconf(3) instead")
]
pub const AIO_LISTIO_MAX: ::c_int = 16;
pub const AIO_CANCELED: ::c_int = 1;
pub const AIO_NOTCANCELED: ::c_int = 2;
Expand Down

0 comments on commit 9c2b839

Please sign in to comment.