Skip to content

Commit

Permalink
Merge pull request #1880 from Thomasdezeeuw/io-max-consts
Browse files Browse the repository at this point in the history
Add IOV_MAX and UIO_MAXIOV constants
  • Loading branch information
JohnTitor committed Sep 2, 2020
2 parents 75ab4a0 + 41fb480 commit f19436d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/bsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ pub const FIOGETOWN: ::c_ulong = 0x4004667b;

pub const PATH_MAX: ::c_int = 1024;

pub const IOV_MAX: ::c_int = 1024;

pub const SA_ONSTACK: ::c_int = 0x0001;
pub const SA_SIGINFO: ::c_int = 0x0040;
pub const SA_RESTART: ::c_int = 0x0002;
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,8 @@ pub const SS_DISABLE: ::c_int = 2;

pub const PATH_MAX: ::c_int = 4096;

pub const UIO_MAXIOV: ::c_int = 1024;

pub const FD_SETSIZE: usize = 1024;

pub const EPOLLIN: ::c_int = 0x1;
Expand Down

0 comments on commit f19436d

Please sign in to comment.