Skip to content

Commit f19436d

Browse files
authored
Merge pull request #1880 from Thomasdezeeuw/io-max-consts
Add IOV_MAX and UIO_MAXIOV constants
2 parents 75ab4a0 + 41fb480 commit f19436d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/unix/bsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ pub const FIOGETOWN: ::c_ulong = 0x4004667b;
254254

255255
pub const PATH_MAX: ::c_int = 1024;
256256

257+
pub const IOV_MAX: ::c_int = 1024;
258+
257259
pub const SA_ONSTACK: ::c_int = 0x0001;
258260
pub const SA_SIGINFO: ::c_int = 0x0040;
259261
pub const SA_RESTART: ::c_int = 0x0002;

src/unix/linux_like/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,8 @@ pub const SS_DISABLE: ::c_int = 2;
847847

848848
pub const PATH_MAX: ::c_int = 4096;
849849

850+
pub const UIO_MAXIOV: ::c_int = 1024;
851+
850852
pub const FD_SETSIZE: usize = 1024;
851853

852854
pub const EPOLLIN: ::c_int = 0x1;

0 commit comments

Comments
 (0)